| 1264 | } |
| 1265 | |
| 1266 | void |
| 1267 | FabArrayBase::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 | |
| 1283 | void |
| 1284 | FabArrayBase::flushFBCache () |
nothing calls this directly
no test coverage detected