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

Method resize

Src/Base/AMReX_BoxArray.cpp:187–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void
188BARef::resize (Long n) {
189#ifdef AMREX_MEM_PROFILING
190 updateMemoryUsage_box(-1);
191 updateMemoryUsage_hash(-1);
192#endif
193 m_abox.resize(n);
194 hash.clear();
195 has_hashmap.store(false, std::memory_order_release);
196#ifdef AMREX_MEM_PROFILING
197 updateMemoryUsage_box(1);
198#endif
199}
200
201#ifdef AMREX_MEM_PROFILING
202void

Callers 2

intersectionsMethod · 0.45
readBoxArrayFunction · 0.45

Calls 2

clearMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected