| 1437 | } |
| 1438 | |
| 1439 | void |
| 1440 | BoxArray::clear_hash_bin () const |
| 1441 | { |
| 1442 | if (!m_ref->hash.empty()) |
| 1443 | { |
| 1444 | #ifdef AMREX_MEM_PROFILING |
| 1445 | m_ref->updateMemoryUsage_hash(-1); |
| 1446 | #endif |
| 1447 | m_ref->hash.clear(); |
| 1448 | m_ref->has_hashmap.store(false, std::memory_order_release); |
| 1449 | } |
| 1450 | } |
| 1451 | |
| 1452 | // |
| 1453 | // Currently this assumes your Boxes are cell-centered. |
nothing calls this directly
no test coverage detected