boutproject / xBOUT

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

Add "is_restart" to metadata when reloading old data #239

Closed johnomotani closed 2 years ago

johnomotani commented 2 years ago

If data was saved by xbout before "is_restart", etc., were implemented, then "is_restart" will be missing from its metadata, causing errors when calling apply_geometry(). Need to check if "is_restart" is present, and add it if not.