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

Method flushCFinfo

Src/Base/AMReX_FabArrayBase.cpp:2283–2298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2281}
2282
2283void
2284FabArrayBase::flushCFinfo (bool no_assertion) const
2285{
2286 amrex::ignore_unused(no_assertion);
2287 BL_ASSERT(no_assertion || getBDKey() == m_bdkey);
2288 auto er_it = m_TheCrseFineCache.equal_range(m_bdkey);
2289 for (auto it = er_it.first; it != er_it.second; ++it)
2290 {
2291#ifdef AMREX_MEM_PROFILING
2292 m_CFinfo_stats.bytes -= it->second->bytes();
2293#endif
2294 m_CFinfo_stats.recordErase(it->second->m_nuse);
2295 delete it->second;
2296 }
2297 m_TheCrseFineCache.erase(er_it.first, er_it.second);
2298}
2299
2300void
2301FabArrayBase::Finalize ()

Callers

nothing calls this directly

Calls 3

bytesMethod · 0.80
recordEraseMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected