This commit is contained in:
Wassim Kabalan 2025-01-21 11:21:35 +01:00
parent 6aa2ccf7b5
commit d4f72c8244

View file

@ -105,8 +105,7 @@ def run_simulation(omega_c, sigma8, mesh_shape, box_size, halo_size,
halo_size=halo_size, halo_size=halo_size,
sharding=sharding) sharding=sharding)
ode_fn = ODETerm( ode_fn = ODETerm(make_diffrax_ode(mesh_shape, paint_absolute_pos=False))
make_diffrax_ode(mesh_shape, paint_absolute_pos=False))
# Choose solver # Choose solver
solver = LeapfrogMidpoint() if solver_choice == "leapfrog" else Dopri5() solver = LeapfrogMidpoint() if solver_choice == "leapfrog" else Dopri5()