From b6985d24c36f5644c69b0773deb8ff14eb4a4097 Mon Sep 17 00:00:00 2001 From: Marco Garten Date: Mon, 20 Jun 2022 00:49:54 -0700 Subject: Remove temporary copy of MultiFab (#3190) Use template specification of amrex::FillBoundary directly with comm_float_type in case of single-precision communication. Leave out FillBoundaryAndSync for now because it requires AMReX changes. --- Source/ablastr/utils/Communication.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Source/ablastr/utils/Communication.cpp') diff --git a/Source/ablastr/utils/Communication.cpp b/Source/ablastr/utils/Communication.cpp index 1641a47c9..b78abb33c 100644 --- a/Source/ablastr/utils/Communication.cpp +++ b/Source/ablastr/utils/Communication.cpp @@ -65,16 +65,7 @@ void FillBoundary (amrex::MultiFab &mf, bool do_single_precision_comms, const am if (do_single_precision_comms) { - amrex::FabArray > mf_tmp(mf.boxArray(), - mf.DistributionMap(), - mf.nComp(), - mf.nGrowVect()); - - mixedCopy(mf_tmp, mf, 0, 0, mf.nComp(), mf.nGrowVect()); - - mf_tmp.FillBoundary(period); - - mixedCopy(mf, mf_tmp, 0, 0, mf.nComp(), mf.nGrowVect()); + mf.FillBoundary(period); } else { -- cgit v1.2.3