aboutsummaryrefslogtreecommitdiff
path: root/Source/Initialization/WarpXInitData.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-09-30 18:12:58 +0200
committerGravatar Luca Fedeli <luca.fedeli@cea.fr> 2019-09-30 18:12:58 +0200
commit0c2d775fc16f1da5116c1ab198e2518dad5fcac4 (patch)
treec5f581e061fb8c9c78fc0019b9f2868c7bb64ac2 /Source/Initialization/WarpXInitData.cpp
parent309cbaf7dafc84d2ba721b94bbf190b29acaa069 (diff)
parentc636e0f71c6ca6a854ed45bf90f90b943b34fc58 (diff)
downloadWarpX-0c2d775fc16f1da5116c1ab198e2518dad5fcac4.tar.gz
WarpX-0c2d775fc16f1da5116c1ab198e2518dad5fcac4.tar.zst
WarpX-0c2d775fc16f1da5116c1ab198e2518dad5fcac4.zip
Merge remote-tracking branch 'upstream/dev' into qed_phys_part_with_lambda
Diffstat (limited to 'Source/Initialization/WarpXInitData.cpp')
-rw-r--r--Source/Initialization/WarpXInitData.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp
index 9c0cf2fd3..385993f78 100644
--- a/Source/Initialization/WarpXInitData.cpp
+++ b/Source/Initialization/WarpXInitData.cpp
@@ -197,9 +197,10 @@ WarpX::InitNCICorrector ()
// Initialize Godfrey filters
// Same filter for fields Ex, Ey and Bz
- nci_godfrey_filter_exeybz[lev].reset( new NCIGodfreyFilter(godfrey_coeff_set::Ex_Ey_Bz, cdtodz, WarpX::l_lower_order_in_v) );
+ const bool nodal_gather = (l_lower_order_in_v == 0);
+ nci_godfrey_filter_exeybz[lev].reset( new NCIGodfreyFilter(godfrey_coeff_set::Ex_Ey_Bz, cdtodz, nodal_gather) );
// Same filter for fields Bx, By and Ez
- nci_godfrey_filter_bxbyez[lev].reset( new NCIGodfreyFilter(godfrey_coeff_set::Bx_By_Ez, cdtodz, WarpX::l_lower_order_in_v) );
+ nci_godfrey_filter_bxbyez[lev].reset( new NCIGodfreyFilter(godfrey_coeff_set::Bx_By_Ez, cdtodz, nodal_gather) );
// Compute Godfrey filters stencils
nci_godfrey_filter_exeybz[lev]->ComputeStencils();
nci_godfrey_filter_bxbyez[lev]->ComputeStencils();