aboutsummaryrefslogtreecommitdiff
path: root/Source/Initialization/PlasmaInjector.cpp
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2019-08-28 13:35:40 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2019-08-28 13:35:40 -0700
commitd40adc4e8caf3994bb24790960097b0fb779cd06 (patch)
tree71840504a193ecae8a86ec90bf6156b2f5ceb859 /Source/Initialization/PlasmaInjector.cpp
parent87e3e47542c32ef7576687d7809cf1eded5c045f (diff)
downloadWarpX-d40adc4e8caf3994bb24790960097b0fb779cd06.tar.gz
WarpX-d40adc4e8caf3994bb24790960097b0fb779cd06.tar.zst
WarpX-d40adc4e8caf3994bb24790960097b0fb779cd06.zip
Further changes of macro WARPX_DIM_2D to WARPX_DIM_XZ for clarity
Diffstat (limited to 'Source/Initialization/PlasmaInjector.cpp')
-rw-r--r--Source/Initialization/PlasmaInjector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Initialization/PlasmaInjector.cpp b/Source/Initialization/PlasmaInjector.cpp
index ce1258245..a65899902 100644
--- a/Source/Initialization/PlasmaInjector.cpp
+++ b/Source/Initialization/PlasmaInjector.cpp
@@ -147,7 +147,7 @@ PlasmaInjector::PlasmaInjector (int ispecies, const std::string& name)
// For 2D, only two are expected. The third is overwritten with 1.
num_particles_per_cell_each_dim.assign(3, 1);
pp.getarr("num_particles_per_cell_each_dim", num_particles_per_cell_each_dim);
-#if WARPX_DIM_2D
+#if WARPX_DIM_XZ
num_particles_per_cell_each_dim[2] = 1;
#endif
// Construct InjectorPosition from InjectorPositionRegular.