clawpack / amrclaw

AMR version of Clawpack
http://www.clawpack.org
BSD 3-Clause "New" or "Revised" License
26 stars 46 forks source link

close fort.b and fort.a files properly in valout #255

Closed rjleveque closed 4 years ago

rjleveque commented 4 years ago

Previously fort.b file wasn't properly closed until next frame written. If trying to plot interactively as frames are computed, this caused Iplotclaw to throw an error when trying to read an open file.

Note: in geoclaw this was already done properly, with a different unit binary_unit rather than using out_unit + 1, which is cleaner.