diff options
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r-- | Source/Parallelization/GuardCellManager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index aa9d9f448..5c151412b 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -36,7 +36,7 @@ guardCellManager::Init ( const amrex::RealVect dx, const bool do_subcycling, const bool do_fdtd_nci_corr, - const bool do_nodal, + const short grid_type, const bool do_moving_window, const int moving_window_dir, const int nox, @@ -195,9 +195,9 @@ guardCellManager::Init ( // currents in the latter case). This does not seem to be necessary in x and y, // where it still seems fine to set half the number of guard cells of the nodal case. - int ngFFt_x = do_nodal ? nox_fft : nox_fft / 2; - int ngFFt_y = do_nodal ? noy_fft : noy_fft / 2; - int ngFFt_z = (do_nodal || galilean) ? noz_fft : noz_fft / 2; + int ngFFt_x = (grid_type == GridType::Collocated) ? nox_fft : nox_fft / 2; + int ngFFt_y = (grid_type == GridType::Collocated) ? noy_fft : noy_fft / 2; + int ngFFt_z = (grid_type == GridType::Collocated || galilean) ? noz_fft : noz_fft / 2; ParmParse pp_psatd("psatd"); utils::parser::queryWithParser(pp_psatd, "nx_guard", ngFFt_x); @@ -258,7 +258,7 @@ guardCellManager::Init ( } #else else { - if (do_nodal) { + if (grid_type == GridType::Collocated) { ng_FieldSolver = CartesianNodalAlgorithm::GetMaxGuardCell(); ng_FieldSolverF = CartesianNodalAlgorithm::GetMaxGuardCell(); ng_FieldSolverG = CartesianNodalAlgorithm::GetMaxGuardCell(); |