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

Method norm2

Src/Base/AMReX_MultiFab.cpp:1064–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062}
1063
1064Real
1065MultiFab::norm2 (int comp) const
1066{
1067 BL_ASSERT(ixType().cellCentered());
1068
1069 Real nm2 = MultiFab::Dot(*this, comp, 1, 0);
1070 nm2 = std::sqrt(nm2);
1071 return nm2;
1072}
1073
1074Real
1075MultiFab::norm2 (int comp, int numcomp) const

Callers 8

writePlotfileMethod · 0.45
solveMethod · 0.45
solveMethod · 0.45
amrex_fi_multifab_norm2Function · 0.45
main_mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 14

OverlapMaskFunction · 0.85
inLaunchRegionFunction · 0.85
ParReduceFunction · 0.85
CommunicatorSubFunction · 0.85
cellCenteredMethod · 0.80
tileboxMethod · 0.80
DotFunction · 0.70
SumFunction · 0.70
const_arraysMethod · 0.45
isValidMethod · 0.45
const_arrayMethod · 0.45
sizeMethod · 0.45

Tested by 4

writePlotfileMethod · 0.36
solveMethod · 0.36
solveMethod · 0.36