diff options
author | 2020-09-06 06:09:05 -0700 | |
---|---|---|
committer | 2020-09-06 06:09:05 -0700 | |
commit | 05e4f436f824dbc6f78672470e17847555817102 (patch) | |
tree | 72f22c33902e62b4b735a05071a04ed6d392a0fd /Source/Parallelization/GuardCellManager.cpp | |
parent | 32a185e79e810ff21347cbaa10970d70b910c3b9 (diff) | |
download | WarpX-05e4f436f824dbc6f78672470e17847555817102.tar.gz WarpX-05e4f436f824dbc6f78672470e17847555817102.tar.zst WarpX-05e4f436f824dbc6f78672470e17847555817102.zip |
CKC: Use Enum instead consequently (#1299)
Use the enums `MaxwellSolverAlgo` consequently for value of
`WarpX::maxwell_solver_id`.
Diffstat (limited to 'Source/Parallelization/GuardCellManager.cpp')
-rw-r--r-- | Source/Parallelization/GuardCellManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Parallelization/GuardCellManager.cpp b/Source/Parallelization/GuardCellManager.cpp index 05ea700d8..5635f5d83 100644 --- a/Source/Parallelization/GuardCellManager.cpp +++ b/Source/Parallelization/GuardCellManager.cpp @@ -6,6 +6,8 @@ */ #include "GuardCellManager.H" #include "Filter/NCIGodfreyFilter.H" +#include "Utils/WarpXAlgorithmSelection.H" + #include <AMReX_Print.H> #include <AMReX_ParmParse.H> #include <AMReX.H> @@ -91,7 +93,7 @@ guardCellManager::Init( // after pushing particle. int ng_alloc_F_int = (do_moving_window) ? 2 : 0; // CKC solver requires one additional guard cell - if (maxwell_solver_id == 1) ng_alloc_F_int = std::max( ng_alloc_F_int, 1 ); + if (maxwell_solver_id == MaxwellSolverAlgo::CKC) ng_alloc_F_int = std::max( ng_alloc_F_int, 1 ); ng_alloc_F = IntVect(AMREX_D_DECL(ng_alloc_F_int, ng_alloc_F_int, ng_alloc_F_int)); #ifdef WARPX_USE_PSATD |