diff options
author | 2019-09-12 12:44:36 -0700 | |
---|---|---|
committer | 2019-09-12 12:44:36 -0700 | |
commit | 47de4404bbb080e5ed53ab02cae039ca518731bf (patch) | |
tree | 964c1130262ffca42f8a38004a837a4e5bb924ce /Source/Parallelization/WarpXRegrid.cpp | |
parent | dd2c942ef02f75595cd1ec1f64cea3c43a046053 (diff) | |
parent | aa5098a48e808b63f2c96929e0517a795dc5d206 (diff) | |
download | WarpX-47de4404bbb080e5ed53ab02cae039ca518731bf.tar.gz WarpX-47de4404bbb080e5ed53ab02cae039ca518731bf.tar.zst WarpX-47de4404bbb080e5ed53ab02cae039ca518731bf.zip |
Merge branch 'dev' into PortingFortranPML_To_CPP_CUDA
Diffstat (limited to 'Source/Parallelization/WarpXRegrid.cpp')
-rw-r--r-- | Source/Parallelization/WarpXRegrid.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp index 9b3baafe1..5441755f5 100644 --- a/Source/Parallelization/WarpXRegrid.cpp +++ b/Source/Parallelization/WarpXRegrid.cpp @@ -18,7 +18,7 @@ WarpX::LoadBalance () const Real nprocs = ParallelDescriptor::NProcs(); const int nmax = static_cast<int>(std::ceil(nboxes/nprocs*load_balance_knapsack_factor)); const DistributionMapping newdm = (load_balance_with_sfc) - ? DistributionMapping::makeSFC(*costs[lev], false) + ? DistributionMapping::makeSFC(*costs[lev], false) : DistributionMapping::makeKnapSack(*costs[lev], nmax); RemakeLevel(lev, t_new[lev], boxArray(lev), newdm); } @@ -33,11 +33,11 @@ WarpX::RemakeLevel (int lev, Real time, const BoxArray& ba, const DistributionMa { if (ParallelDescriptor::NProcs() == 1) return; -#ifdef WARPX_DO_ELECTROSTATIC +#ifdef WARPX_DO_ELECTROSTATIC AMREX_ALWAYS_ASSERT(masks[lev] == nullptr); AMREX_ALWAYS_ASSERT(gather_masks[lev] == nullptr); #endif // WARPX_DO_ELECTROSTATIC - + // Fine patch const auto& period = Geom(lev).periodicity(); @@ -203,7 +203,7 @@ WarpX::RemakeLevel (int lev, Real time, const BoxArray& ba, const DistributionMa auto pmf = std::unique_ptr<iMultiFab>(new iMultiFab(current_buffer_masks[lev]->boxArray(), dm, current_buffer_masks[lev]->nComp(), ng)); // pmf->ParallelCopy(*current_buffer_masks[lev], 0, 0, current_buffer_masks[lev]->nComp(), ng, ng); - current_buffer_masks[lev] = std::move(pmf); + current_buffer_masks[lev] = std::move(pmf); } if (gather_buffer_masks[lev]) { @@ -211,7 +211,7 @@ WarpX::RemakeLevel (int lev, Real time, const BoxArray& ba, const DistributionMa auto pmf = std::unique_ptr<iMultiFab>(new iMultiFab(gather_buffer_masks[lev]->boxArray(), dm, gather_buffer_masks[lev]->nComp(), ng)); // pmf->ParallelCopy(*gather_buffer_masks[lev], 0, 0, gather_buffer_masks[lev]->nComp(), ng, ng); - gather_buffer_masks[lev] = std::move(pmf); + gather_buffer_masks[lev] = std::move(pmf); } } |