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

Method flushFB

Src/Base/AMReX_FabArrayBase.cpp:1266–1281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1264}
1265
1266void
1267FabArrayBase::flushFB (bool no_assertion) const
1268{
1269 amrex::ignore_unused(no_assertion);
1270 BL_ASSERT(no_assertion || getBDKey() == m_bdkey);
1271 std::pair<FBCacheIter,FBCacheIter> er_it = m_TheFBCache.equal_range(m_bdkey);
1272 for (auto it = er_it.first; it != er_it.second; ++it)
1273 {
1274#ifdef AMREX_MEM_PROFILING
1275 m_FBC_stats.bytes -= it->second->bytes();
1276#endif
1277 m_FBC_stats.recordErase(it->second->m_nuse);
1278 delete it->second;
1279 }
1280 m_TheFBCache.erase(er_it.first, er_it.second);
1281}
1282
1283void
1284FabArrayBase::flushFBCache ()

Callers

nothing calls this directly

Calls 3

bytesMethod · 0.80
recordEraseMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected