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

Method minIndex

Src/Base/AMReX_MultiFab.cpp:1012–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010}
1011
1012IntVect
1013MultiFab::minIndex (int comp, int nghost) const
1014{
1015 BL_ASSERT(nghost >= 0 && n_grow.allGE(nghost));
1016 Real mn = this->min(comp, nghost, true);
1017 return indexFromValue(*this, comp, nghost, mn, MPI_MINLOC);
1018}
1019
1020IntVect
1021MultiFab::maxIndex (int comp, int nghost) const

Callers

nothing calls this directly

Calls 3

minMethod · 0.95
allGEMethod · 0.80
indexFromValueFunction · 0.70

Tested by

no test coverage detected