MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / define

Method define

Tools/Postprocessing/C_Src/IntegrateComp.cpp:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34public:
35 AMReXMeshHierarchy() {}
36 void define(const AmrData& ad) {
37 finestLevel = ad.FinestLevel();
38 int nlevs = finestLevel + 1;
39 ba.resize(nlevs);
40 probSize = ad.ProbSize();
41 probDomain = ad.ProbDomain();
42 refRatio = ad.RefRatio();
43 for (int lev=0; lev<nlevs; ++lev) {
44 ba[lev] = &ad.boxArray(lev);
45 }
46 }
47 int FinestLevel() const {return finestLevel;}
48 const BoxArray &boxArray(int level) const {return *ba[level];}
49 const Vector<int> &RefRatio() const {return refRatio;}

Callers 15

test_assign_densityFunction · 0.45
build_meshFunction · 0.45
testAscentFunction · 0.45
testRedistributeFunction · 0.45
testRedistributeFunction · 0.45
testParallelContextFunction · 0.45
test_ghosts_and_virtualsFunction · 0.45
testParticleMeshFunction · 0.45
testSOAFunction · 0.45

Calls 5

ProbSizeMethod · 0.80
ProbDomainMethod · 0.80
FinestLevelMethod · 0.45
resizeMethod · 0.45
boxArrayMethod · 0.45

Tested by 15

test_assign_densityFunction · 0.36
test_ghosts_and_virtualsFunction · 0.36
test_async_ioFunction · 0.36
solveABecLaplacianMethod · 0.36
initDataMethod · 0.36
writePlotfileMethod · 0.36
initGridsMethod · 0.36
initDataMethod · 0.36
initDataMethod · 0.36