Skip to content

Commit 1c10179

Browse files
committed
Fix Beam compare
1 parent ba0cf40 commit 1c10179

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

diag-test.ipynb

+9-10
Large diffs are not rendered by default.

lcode2dPy/push_solver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def step_dt(self, plasma_particles, plasma_fields, beam_source, beam_drain, t, d
9595

9696
# Every xi step diagnostics
9797
if diagnostics:
98-
diagnostics.dxi(t + self.config.getfloat('time-step'), layer_idx, plasma_particles, plasma_fields, rho_beam, beam_slice_to_move)
98+
diagnostics.dxi(t + self.config.getfloat('time-step'), layer_idx, plasma_particles, plasma_fields, rho_beam, stable_slice)
9999
else:
100100
if layer_idx % 100 == 0:
101101
print('xi={xi:.6f} Ez={Ez:e} N={N}'.format(xi=layer_idx * -self.xi_step_p, Ez=plasma_fields.E_z[0], N=steps))

0 commit comments

Comments
 (0)