diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Filter/NCIGodfreyFilter.H | 2 | ||||
-rw-r--r-- | Source/WarpX.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Source/Filter/NCIGodfreyFilter.H b/Source/Filter/NCIGodfreyFilter.H index b2d86edac..a53039dfa 100644 --- a/Source/Filter/NCIGodfreyFilter.H +++ b/Source/Filter/NCIGodfreyFilter.H @@ -17,6 +17,8 @@ public: void getGodfreyCoeffs(godfrey_coeff_set coeff_set_in); + static constexpr int stencil_width = 4; + private: godfrey_coeff_set coeff_set; diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index eb943ae6a..75908ac38 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -633,7 +633,7 @@ WarpX::AllocLevelData (int lev, const BoxArray& ba, const DistributionMapping& d int ngz_nonci = (ngz_tmp % 2) ? ngz_tmp+1 : ngz_tmp; // Always even number int ngz; if (WarpX::use_fdtd_nci_corr) { - int ng = ngz_tmp + 4; + int ng = ngz_tmp + NCIGodfreyFilter::stencil_width; ngz = (ng % 2) ? ng+1 : ng; } else { ngz = ngz_nonci; |