-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copying old metadata to new resized file #77
Comments
Yes, true. I believe it's not an issue in practice as only the evolving variables (which are probably |
I will have a go at it |
I don't think that is actually the case. If you look into in the reference code below you will see that BOUT++ reads other parameters from the BOUT.restart.*.nc files. I know this for a fact: when creating restart files with the boutdata.restart.create much of the metadata is missing (for example "MXG" - # guard cells in the x-direction). Older version of BOUT++ (version v4.3.0 for example) did not read these parameters but the current version of BOUT++ does and won't restart the simulation if restarting from a file created with boutdata.restart.create |
Ah, in that case you're right and the metadata definitely needs updating! |
Copying the metadata from a
BOUT.restart.*.nc
file to the resizedBOUT.restart.*.nc
file is a bad idea. I mean, you are resizing the grid and therefore parameters like "nx" (and others) should be obviously updated to match the size of the new grid.boutdata/boutdata/restart.py
Line 219 in 1cb6d08
The text was updated successfully, but these errors were encountered: