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

Method maxIndex

Src/Base/AMReX_MultiFab.cpp:1020–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1018}
1019
1020IntVect
1021MultiFab::maxIndex (int comp, int nghost) const
1022{
1023 BL_ASSERT(nghost >= 0 && n_grow.allGE(nghost));
1024 Real mx = this->max(comp, nghost, true);
1025 return indexFromValue(*this, comp, nghost, mx, MPI_MAXLOC);
1026}
1027
1028Real
1029MultiFab::norm0 (const iMultiFab& mask, int comp, int nghost, bool local) const

Callers

nothing calls this directly

Calls 3

maxMethod · 0.95
allGEMethod · 0.80
indexFromValueFunction · 0.70

Tested by

no test coverage detected