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

Method clear_hash_bin

Src/Base/AMReX_BoxArray.cpp:1439–1450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1437}
1438
1439void
1440BoxArray::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.

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.45
clearMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected