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

Method AsyncWrite

Src/Base/AMReX_VisMF.cpp:2312–2326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2310
2311
2312void
2313VisMF::AsyncWrite (const FabArray<FArrayBox>& mf, const std::string& mf_name, bool valid_cells_only)
2314{
2315 if (AsyncOut::UseAsyncOut()) {
2316 AsyncWriteDoit(mf, mf_name, false, valid_cells_only);
2317 } else {
2318 if (valid_cells_only && mf.nGrowVect() != 0) {
2319 FabArray<FArrayBox> mf_tmp(mf.boxArray(), mf.DistributionMap(), mf.nComp(), 0);
2320 amrex::Copy(mf_tmp, mf, 0, 0, mf.nComp(), 0);
2321 Write(mf_tmp, mf_name);
2322 } else {
2323 Write(mf, mf_name);
2324 }
2325 }
2326}
2327
2328void
2329VisMF::AsyncWrite (FabArray<FArrayBox>&& mf, const std::string& mf_name, bool valid_cells_only) // NOLINT(cppcoreguidelines-rvalue-reference-param-not-moved)

Callers

nothing calls this directly

Calls 7

UseAsyncOutFunction · 0.85
CopyFunction · 0.85
DistributionMapMethod · 0.80
WriteFunction · 0.70
nGrowVectMethod · 0.45
boxArrayMethod · 0.45
nCompMethod · 0.45

Tested by

no test coverage detected