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

Method AverageSync

Src/Base/AMReX_MultiFab.cpp:1546–1555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1544}
1545
1546void
1547MultiFab::AverageSync (const Periodicity& period)
1548{
1549 BL_PROFILE("MultiFab::AverageSync()");
1550
1551 if (ixType().cellCentered()) { return; }
1552 auto wgt = this->OverlapMask(period);
1553 wgt->invert(1.0, 0, 1);
1554 this->WeightedSync(*wgt, period);
1555}
1556
1557void
1558MultiFab::WeightedSync (const MultiFab& wgt, const Periodicity& period)

Callers 1

Calls 4

OverlapMaskMethod · 0.95
WeightedSyncMethod · 0.95
cellCenteredMethod · 0.80
invertMethod · 0.45

Tested by

no test coverage detected