Skip to content

Commit

Permalink
fix time subsampling
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Nov 20, 2023
1 parent cf10579 commit 7f0b51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pysource/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def wavefield_subsampled(model, u, nt, t_sub, space_order=8):
if t_sub > 1:
time_subsampled = ConditionalDimension(name='t_sub', parent=model.grid.time_dim,
factor=t_sub)
nsave = (nt+t_sub-1)//t_sub
nsave = nt // t_sub + 1
else:
return None
wf_s = []
Expand Down

0 comments on commit 7f0b51e

Please sign in to comment.