Skip to content
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

Continue previously unfinished runs #36

Closed
BramDr opened this issue Feb 29, 2024 · 1 comment
Closed

Continue previously unfinished runs #36

BramDr opened this issue Feb 29, 2024 · 1 comment
Labels
enhancement Enhancement request

Comments

@BramDr
Copy link
Contributor

BramDr commented Feb 29, 2024

When running long high-resolution PCR-GLOBWB simulations, it is often the case the the simulation time exceeds the time allowed by the slurm manager on external servers. Or, it may be that there is some other error that causes (longer) simulations to stop. It would be nice if we could continue previously unfinished runs, using the same output directory.

Currently, PCR-GLOBWB appends its outputs to the output NetCDFs per timestep and stores its states to the state pcraster maps per year. An argument should be added to the PCR-GLOBWB runner (e.g. --continue), where the model does not clean up the output directory. Rather it checks:

  1. If the output files already exist
  2. If the state files already exist
  3. The latest available state file

And than continues the previous run from the latest available state file, appending to the output files when necessary.

@BramDr
Copy link
Contributor Author

BramDr commented Apr 9, 2024

Added by pull request #41

@BramDr BramDr closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement request
Projects
None yet
Development

No branches or pull requests

1 participant