boutproject / xBOUT

Collects BOUT++ data from parallelized simulations into xarray.
https://xbout.readthedocs.io/en/latest/
Apache License 2.0
21 stars 8 forks source link

Fix int types when writing restart files #300

Closed johnomotani closed 8 months ago

johnomotani commented 8 months ago

BOUT++ expects to read a C 'int', while Python defaults to writing an int64, causing an error when reading xbout-produced restart files.

Unfortunately, there seems to be another error, possibly related to a _FillValue attribute.