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

Method flushFBCache

Src/Base/AMReX_FabArrayBase.cpp:1283–1295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1281}
1282
1283void
1284FabArrayBase::flushFBCache ()
1285{
1286 for (auto const& it : m_TheFBCache)
1287 {
1288 m_FBC_stats.recordErase(it.second->m_nuse);
1289 delete it.second;
1290 }
1291 m_TheFBCache.clear();
1292#ifdef AMREX_MEM_PROFILING
1293 m_FBC_stats.bytes = 0L;
1294#endif
1295}
1296
1297const FabArrayBase::FB&
1298FabArrayBase::getFB (const IntVect& nghost, const Periodicity& period,

Callers

nothing calls this directly

Calls 2

recordEraseMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected