Skip to content

Commit 2f7c5b1

Browse files
committed
Add line density weighting.
1 parent 3ff90aa commit 2f7c5b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/particles/spacecharge/GatherAndPush.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ namespace impactx::particles::spacecharge
8989
auto prob_lo_2D = gm.ProbLoArray();
9090
prob_lo_2D[2] = 0.0_rt;
9191

92-
/* if (space_charge == SpaceChargeAlgo::True_2p5D) {
92+
if (space_charge == SpaceChargeAlgo::True_2p5D) {
9393
// Calculate z-dependent scaling by current
9494
int tp5d_bins = 129;
9595
amrex::ParmParse pp_algo("algo.space_charge");
@@ -126,7 +126,7 @@ namespace impactx::particles::spacecharge
126126

127127
amrex::Real const * const beam_profile_slope = slopes.data();
128128
amrex::Real const * const beam_profile = charge_distribution.data();
129-
} */
129+
}
130130

131131
amrex::ParallelFor(np, [=] AMREX_GPU_DEVICE (int i) {
132132
// access SoA Real data

0 commit comments

Comments
 (0)