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

Function copyMultiFabToMultiCutFab

Src/EB/AMReX_EB2_Level.cpp:522–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520
521namespace {
522 void copyMultiFabToMultiCutFab (MultiCutFab& dstmf, const MultiFab& srcmf)
523 {
524 const int ncomp = srcmf.nComp();
525#ifdef AMREX_USE_OMP
526#pragma omp parallel if (Gpu::notInLaunchRegion())
527#endif
528 for (MFIter mfi(dstmf.data()); mfi.isValid(); ++mfi)
529 {
530 if (dstmf.ok(mfi)) {
531 const auto dstfab = dstmf.array(mfi);
532 const auto srcfab = srcmf.const_array(mfi);
533 const Box& box = mfi.fabbox();
534 AMREX_HOST_DEVICE_PARALLEL_FOR_4D (box,ncomp,i,j,k,n,
535 {
536 dstfab(i,j,k,n) = srcfab(i,j,k,n);
537 });
538 }
539 }
540 }
541}
542
543void

Callers 7

fillCentroidMethod · 0.85
fillBndryAreaMethod · 0.85
fillBndryCentMethod · 0.85
fillBndryNormMethod · 0.85
fillAreaFracMethod · 0.85
fillFaceCentMethod · 0.85
fillEdgeCentMethod · 0.85

Calls 7

nCompMethod · 0.45
dataMethod · 0.45
isValidMethod · 0.45
okMethod · 0.45
arrayMethod · 0.45
const_arrayMethod · 0.45
fabboxMethod · 0.45

Tested by

no test coverage detected