Skip to content

Commit 8b66049

Browse files
committed
Add another 2D/2.5D modification from ForceFromSelfFields.cpp.
1 parent 83de345 commit 8b66049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/particles/spacecharge/ForceFromSelfFields.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace impactx::particles::spacecharge
5656
auto scf_arr_y = space_charge_field[lev]["y"][mfi].array();
5757
auto scf_arr_z = space_charge_field[lev]["z"][mfi].array();
5858

59-
if (space_charge == SpaceChargeAlgo::True_2D) {
59+
if (space_charge == SpaceChargeAlgo::True_2D || space_charge == SpaceChargeAlgo::True_2p5D) {
6060
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(bx.size()[2] == 1,
6161
"2D space charge requires exactly 1 slice in z");
6262
amrex::ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int ) noexcept {

0 commit comments

Comments
 (0)