diff options
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r-- | Source/Parallelization/GuardCellManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index 1b8d38f0c..85490f2e0 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -28,6 +28,7 @@ guardCellManager::Init( const int maxwell_solver_id, const int max_level, const amrex::Array<amrex::Real,3> v_galilean, + const amrex::Array<amrex::Real,3> v_comoving, const bool safe_guard_cells) { // When using subcycling, the particles on the fine level perform two pushes @@ -37,10 +38,9 @@ guardCellManager::Init( int ngy_tmp = (max_level > 0 && do_subcycling == 1) ? nox+1 : nox; int ngz_tmp = (max_level > 0 && do_subcycling == 1) ? nox+1 : nox; - if ((v_galilean[0]!=0) or - (v_galilean[1]!=0) or - (v_galilean[2]!=0)){ - // Add one guard cell in the case of the galilean algorithm + // Add one guard cell in the case of the Galilean or comoving algorithms + if (v_galilean[0] != 0. || v_galilean[1] != 0. || v_galilean[2] != 0. || + v_comoving[0] != 0. || v_comoving[1] != 0. || v_comoving[2] != 0. ) { ngx_tmp += 1; ngy_tmp += 1; ngz_tmp += 1; |