clawpack / amrclaw

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

add output_format to fort.txxxx files and support binary32 format #275

Closed rjleveque closed 2 years ago

rjleveque commented 2 years ago

This goes along with https://github.com/clawpack/geoclaw/pull/533 and related PRs in other repositories. The output_format selected is now written to the fort.txxxx file, as required by modified routines in https://github.com/clawpack/pyclaw/pull/687 when reading in the solution.

Also now supports specifying output_format = 'binary32' for smaller file sizes, while 'binary64' agrees with the former 'binary' and outputs the full 8-bytes.