Skip to content

Commit

Permalink
less dumps for dispersion
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan committed Aug 2, 2024
1 parent cd88daa commit 90c19bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/functional/alfven_wave/alfven_wave1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def vthz(x):

ph.ElectronModel(closure="isothermal", Te=0.0)

timestamps = [0, int(final_time / 2), final_time]
timestamps = np.arange(0, sim.final_time, sim.final_time / 10)

for quantity in ["E", "B"]:
ph.ElectromagDiagnostics(quantity=quantity, write_timestamps=timestamps)
Expand Down
8 changes: 6 additions & 2 deletions tests/functional/dispersion/dispersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,14 @@ def vthz(x):
timestamps = np.arange(0, sim.final_time + sim.time_step, sim.time_step)

for quantity in ["E", "B"]:
ph.ElectromagDiagnostics(quantity=quantity, write_timestamps=timestamps)
ph.ElectromagDiagnostics(
quantity=quantity, write_timestamps=timestamps, flush_every=0
)

for quantity in ["density", "bulkVelocity"]:
ph.FluidDiagnostics(quantity=quantity, write_timestamps=timestamps)
ph.FluidDiagnostics(
quantity=quantity, write_timestamps=timestamps, flush_every=0
)

return sim

Expand Down

0 comments on commit 90c19bb

Please sign in to comment.