boutproject / BOUT-dev

BOUT++: Plasma fluid finite-difference simulation code in curvilinear coordinate systems
http://boutproject.github.io/
GNU Lesser General Public License v3.0
182 stars 95 forks source link

Add `output:flush_frequency` for `OptionsNetCDF` #2934

Open ZedThree opened 3 months ago

ZedThree commented 3 months ago

Sort of fixes #2878

Two things:

These two together can significantly cut the time spent in IO:

Figure_1

(absolute time from the io timer for conduction example for 500 timesteps, rolling average over 100 steps)

The red line is basically current next

I'm a bit concerned that we still get an increase over time, but this seems to unavoidable.

This PR also includes some drive-by fixes for some minor OptionsIO issues.