aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2022-06-08 14:51:16 -0700
committerGravatar GitHub <noreply@github.com> 2022-06-08 14:51:16 -0700
commitd4a3b6f0de6dc42a7d971680a653b7684afa6e3f (patch)
tree69a94459fe306e3600f67401814de422dcc1cb6f /Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp
parent1b812906b333b407b45f5bec015ba06e3faa5abd (diff)
downloadWarpX-d4a3b6f0de6dc42a7d971680a653b7684afa6e3f.tar.gz
WarpX-d4a3b6f0de6dc42a7d971680a653b7684afa6e3f.tar.zst
WarpX-d4a3b6f0de6dc42a7d971680a653b7684afa6e3f.zip
ABLASTR: Move Communication Utilities (#3167)
* Move: WarpXCommUtils to ABLASTR * Update Usage Locations * Refactor: `WarpX::do_single_precision_comms` Do not use a global from WarpX in ABLASTR routines.
Diffstat (limited to 'Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp')
-rw-r--r--Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp
index 6718c5833..a334bf534 100644
--- a/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp
+++ b/Source/Diagnostics/ComputeDiagFunctors/BackTransformFunctor.cpp
@@ -7,10 +7,11 @@
#include "BackTransformFunctor.H"
#include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H"
-#include "Parallelization/WarpXCommUtil.H"
#include "Utils/WarpXConst.H"
#include "WarpX.H"
+#include <ablastr/utils/Communication.H>
+
#include <AMReX_Array4.H>
#include <AMReX_BoxArray.H>
#include <AMReX_Config.H>
@@ -87,8 +88,10 @@ BackTransformFunctor::operator ()(amrex::MultiFab& mf_dst, int /*dcomp*/, const
// Parallel copy the lab-frame data from "slice" MultiFab with
// ncomp=10 and boosted-frame dmap to "tmp_slice_ptr" MultiFab with
// ncomp=10 and dmap of the destination Multifab, which will store the final data
- WarpXCommUtil::ParallelCopy(*tmp_slice_ptr, *slice, 0, 0, slice->nComp(),
- IntVect(AMREX_D_DECL(0, 0, 0)), IntVect(AMREX_D_DECL(0, 0, 0)));
+ ablastr::utils::communication::ParallelCopy(*tmp_slice_ptr, *slice, 0, 0, slice->nComp(),
+ IntVect(AMREX_D_DECL(0, 0, 0)),
+ IntVect(AMREX_D_DECL(0, 0, 0)),
+ WarpX::do_single_precision_comms);
// Now we will cherry pick only the user-defined fields from
// tmp_slice_ptr to dst_mf
const int k_lab = m_k_index_zlab[i_buffer];