aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/WarpXComm.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-09-05 08:27:39 -0600
committerGravatar GitHub <noreply@github.com> 2019-09-05 08:27:39 -0600
commitb034dce9cfcee02381d1f0ea37e41fad9c964937 (patch)
tree379c2eeecdd44871886ce5118b615843761e451d /Source/Parallelization/WarpXComm.cpp
parentc1897c4a682d5fc886ca810f26cccf75b7e25ee7 (diff)
parent3d262c819474c80357ca528c3249fb488af58c23 (diff)
downloadWarpX-b034dce9cfcee02381d1f0ea37e41fad9c964937.tar.gz
WarpX-b034dce9cfcee02381d1f0ea37e41fad9c964937.tar.zst
WarpX-b034dce9cfcee02381d1f0ea37e41fad9c964937.zip
Merge branch 'dev' into rz_multimode_regression
Diffstat (limited to 'Source/Parallelization/WarpXComm.cpp')
-rw-r--r--Source/Parallelization/WarpXComm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Parallelization/WarpXComm.cpp b/Source/Parallelization/WarpXComm.cpp
index 88adbc147..93fc12799 100644
--- a/Source/Parallelization/WarpXComm.cpp
+++ b/Source/Parallelization/WarpXComm.cpp
@@ -714,6 +714,8 @@ WarpX::AddRhoFromFineLevelandSumBoundary(int lev, int icomp, int ncomp)
void
WarpX::NodalSyncJ (int lev, PatchType patch_type)
{
+ if (override_sync_int <= 0 or istep[0] % override_sync_int != 0) return;
+
if (patch_type == PatchType::fine)
{
const auto& period = Geom(lev).periodicity();
@@ -733,6 +735,8 @@ WarpX::NodalSyncJ (int lev, PatchType patch_type)
void
WarpX::NodalSyncRho (int lev, PatchType patch_type, int icomp, int ncomp)
{
+ if (override_sync_int <= 0 or istep[0] % override_sync_int != 0) return;
+
if (patch_type == PatchType::fine && rho_fp[lev])
{
const auto& period = Geom(lev).periodicity();