Skip to content

Conversation

@aidanheerdegen
Copy link
Collaborator

Closes #629

ROMS reads from and writes to the same restart file, so added a copy restarts flag as the simplest and easiest solution.

@coveralls
Copy link

Coverage Status

coverage: 60.373% (+0.1%) from 60.224%
when pulling 35c42f1 on aidanheerdegen/issue629
into a662f10 on master.

@aidanheerdegen
Copy link
Collaborator Author

aidanheerdegen commented Sep 17, 2025

I haven't added any tests, but I have run 5 cycles of the upwelling roms test case and it works as expected: a new restart file is created each time and used correctly in subsequent runs:

$ md5sum archive/restart00?/roms_rst.nc
c91b781a4a241ab80d1f7e50fa0f098c  archive/restart000/roms_rst.nc
6d41d1ebb7eccff5b6b9990389075b7a  archive/restart001/roms_rst.nc
5db062f00903347876457375c2670754  archive/restart002/roms_rst.nc
910af540519ad3ba3078355e5d0a7fd0  archive/restart003/roms_rst.nc
a1c4cdd63b0781a4ff553033c9483011  archive/restart004/roms_rst.nc

and the checksums match those in the manifest/restart.yaml

@aidanheerdegen
Copy link
Collaborator Author

This is a diff showing the restart files being picked up in the manifests

$ git diff HEAD^ manifests/restart.yaml
diff --git a/manifests/restart.yaml b/manifests/restart.yaml
index d4700cf..b205b05 100644
--- a/manifests/restart.yaml
+++ b/manifests/restart.yaml
@@ -3,7 +3,7 @@ version: 1.0
 ---
 work/roms_rst.nc:
   copy: true
-  fullpath: /scratch/xxXX/xxxXXX/roms/archive/roms-upwelling-release-upwelling+testcase-f4a04601/restart002/roms_rst.nc
+  fullpath: /scratch/xxXX/xxxXXX/roms/archive/roms-upwelling-release-upwelling+testcase-f4a04601/restart003/roms_rst.nc
   hashes:
-    binhash: 7c0dcd63936ddac5d02ea53adcdd1580
-    md5: 5db062f00903347876457375c2670754
+    binhash: edbcaa6317cb8d3862e98e189787d727
+    md5: 910af540519ad3ba3078355e5d0a7fd0

Note that copy: true because the restart manifest is copied, not symlinked.

Copy link
Collaborator

@helenmacdonald helenmacdonald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aidanheerdegen - looks good to me

Copy link
Collaborator

@phellipecouto phellipecouto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aidanheerdegen I'm happy with that solution and can see this working well, based on the results you obtained with the upwelling test run, for hindcast and forecast simulations. Thank you.

@aidanheerdegen aidanheerdegen merged commit d026d1e into master Sep 19, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ROMS driver does not support automatic restarts

5 participants