Skip to content

Commit

Permalink
Update Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Jan 26, 2024
1 parent 9512d80 commit b75e157
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/expanding_beam/analysis_expanding.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_moments(beam):
)

atol = 0.0 # ignored
rtol = 1.5 * num_particles**-0.5 # from random sampling of a smooth distribution
rtol = 1.6 * num_particles**-0.5 # from random sampling of a smooth distribution
print(f" rtol={rtol} (ignored: atol~={atol})")

assert np.allclose(
Expand Down
4 changes: 4 additions & 0 deletions examples/expanding_beam/input_expanding.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ algo.space_charge = true
# Space charge solver with one MR level
amr.max_level = 1
amr.n_cell = 16 16 20
amr.blocking_factor_x = 16
amr.blocking_factor_y = 16
amr.blocking_factor_z = 4

geometry.prob_relative = 3.0 1.1

# Space charger solver without MR
Expand Down

0 comments on commit b75e157

Please sign in to comment.