Skip to content

Commit

Permalink
connect multigrid advanced settings to simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
proy30 committed Nov 20, 2024
1 parent f6eea78 commit 8233f2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/python/impactx/dashboard/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def run_simulation():
sim.blocking_factor_y = [state.blocking_factor_y]
sim.blocking_factor_z = [state.blocking_factor_z]

if state.poisson_solver == "multigrid":
sim.mlmg_relative_tolerance = state.mlmg_relative_tolerance
sim.mlmg_absolute_tolerance = state.mlmg_absolute_tolerance
sim.mlmg_max_iters = state.mlmg_max_iters
sim.mlmg_verbosity = state.mlmg_verbosity
# csr
if state.csr:
sim.csr = state.csr
Expand Down

0 comments on commit 8233f2c

Please sign in to comment.