From 05e4f436f824dbc6f78672470e17847555817102 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Sun, 6 Sep 2020 06:09:05 -0700 Subject: CKC: Use Enum instead consequently (#1299) Use the enums `MaxwellSolverAlgo` consequently for value of `WarpX::maxwell_solver_id`. --- Source/Parallelization/GuardCellManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Parallelization/GuardCellManager.cpp') 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 #include #include @@ -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 -- cgit v1.2.3