Skip to content

Commit bbbbb8d

Browse files
authored
Relax tolerance in analysis_fodo_2d_sc.py
1 parent 20ff802 commit bbbbb8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/fodo_space_charge/analysis_fodo_2d_sc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_moments(beam):
8080
)
8181

8282
atol = 0.0 # ignored
83-
rtol = 4.0 * num_particles**-0.5 # from random sampling of a smooth distribution
83+
rtol = 5.0 * num_particles**-0.5 # from random sampling of a smooth distribution
8484
print(f" rtol={rtol} (ignored: atol~={atol})")
8585

8686
assert np.allclose(

0 commit comments

Comments
 (0)