Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix case setup r0 loading
  • Loading branch information
arturtoshev committed Oct 28, 2025
commit 090bdeaa253fc3c5710a436ed05fed22bc4a6b51
2 changes: 1 addition & 1 deletion jax_sph/case_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def initialize(self):
assert state[k][mask].shape == _state[k][_mask].shape, ValueError(
f"Shape mismatch for key {k} in state0 file."
)
state[k][mask] = _state[k][_mask]
state[k] = state[k].at[mask].set(_state[k][_mask])

# the following arguments are needed for dataset generation
cfg.case.c_ref, cfg.case.p_ref, cfg.case.p_bg = c_ref, p_ref, p_bg
Expand Down
Loading