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

Function computeRefFac

Src/Particle/AMReX_ParticleUtil.cpp:6–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4{
5
6IntVect computeRefFac (const ParGDBBase* a_gdb, int src_lev, int lev)
7{
8 IntVect ref_fac(AMREX_D_DECL(1,1,1));
9 if (src_lev < lev) {
10 for (int l = src_lev; l < lev; ++l) {
11 ref_fac *= a_gdb->refRatio(l);
12 }
13 } else if (src_lev > lev) {
14 for (int l = src_lev; l > lev; --l) {
15 ref_fac *= a_gdb->refRatio(l-1);
16 }
17 ref_fac *= -1;
18 }
19 return ref_fac;
20}
21
22Vector<int> computeNeighborProcs (const ParGDBBase* a_gdb, int ngrow)
23{

Callers 5

GetCommTagsBoxMethod · 0.85
getNeighborTagsMethod · 0.85
buildNeighborListMethod · 0.85
computeNeighborProcsFunction · 0.85

Calls 1

refRatioMethod · 0.45

Tested by

no test coverage detected