diff options
author | 2017-11-28 09:43:45 -0800 | |
---|---|---|
committer | 2017-11-28 09:43:45 -0800 | |
commit | 6a4c55204da3daed6a09a0d738c091ff83b67e5c (patch) | |
tree | 858778a665d23d47e5133d9b4d86ab2ad2378917 /Source/PlasmaInjector.cpp | |
parent | c9edb0e8dc45a263e90aa8c9e358b7045a11b604 (diff) | |
download | WarpX-6a4c55204da3daed6a09a0d738c091ff83b67e5c.tar.gz WarpX-6a4c55204da3daed6a09a0d738c091ff83b67e5c.tar.zst WarpX-6a4c55204da3daed6a09a0d738c091ff83b67e5c.zip |
Correct number of particles per cell in 2d
Diffstat (limited to 'Source/PlasmaInjector.cpp')
-rw-r--r-- | Source/PlasmaInjector.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/PlasmaInjector.cpp b/Source/PlasmaInjector.cpp index a0e21448f..a0fa4b9b3 100644 --- a/Source/PlasmaInjector.cpp +++ b/Source/PlasmaInjector.cpp @@ -191,8 +191,7 @@ PlasmaInjector::PlasmaInjector(int ispecies, const std::string& name) num_particles_per_cell_each_dim.resize(3); pp.getarr("num_particles_per_cell_each_dim", num_particles_per_cell_each_dim); #if ( BL_SPACEDIM == 2 ) - num_particles_per_cell_each_dim[2] = num_particles_per_cell_each_dim[1]; - num_particles_per_cell_each_dim[1] = 1; + num_particles_per_cell_each_dim[2] = 1; #endif part_pos.reset(new RegularPosition(num_particles_per_cell_each_dim)); num_particles_per_cell = num_particles_per_cell_each_dim[0] * |