-
Notifications
You must be signed in to change notification settings - Fork 40
Switch global ocean forward steps to use graph.info from initial state, not mesh #203
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
Switch global ocean forward steps to use graph.info from initial state, not mesh #203
Conversation
This merge also switches to f-strings for better readability.
This means forward steps depend only in steps from the init test case, not the mesh test case, which should decrease dependencies when running cached versions of each test case.
| for file in ['initial_state.nc', 'init_mode_forcing_data.nc']: | ||
| for file in ['initial_state.nc', 'init_mode_forcing_data.nc', | ||
| 'graph.info']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one of two main change.
| work_dir_target='{}/culled_graph.info'.format(mesh_path)) | ||
| work_dir_target=f'{init.path}/initial_state/graph.info') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the other main change.
|
@mark-petersen, could you run a quick test on this before I merge and rebase #184? |
mark-petersen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! This works great!
compass setup -w $n/210810_pr_cache_3 -n 81c 82
Setting up test cases:
ocean/global_ocean/EC30to60/PHC/init
steps with cached outputs: initial_state
Downloading initial_state.210809.nc (1.8GiB)
to /usr/projects/regionalclimate/COMMON_MPAS/ocean/grids/compass_cache/global_ocean/EC30to60/PHC/init/initial_state
100% |################################################################################################################| Time: 0:02:50
initial_state.210809.nc done.
Downloading init_mode_forcing_data.210809.nc (14.5MiB)
to /usr/projects/regionalclimate/COMMON_MPAS/ocean/grids/compass_cache/global_ocean/EC30to60/PHC/init/initial_state
100% |################################################################################################################| Time: 0:00:01
init_mode_forcing_data.210809.nc done.
Downloading graph.210809.info (9.0MiB)
to /usr/projects/regionalclimate/COMMON_MPAS/ocean/grids/compass_cache/global_ocean/EC30to60/PHC/init/initial_state
100% |################################################################################################################| Time: 0:00:01
graph.210809.info done.
ocean/global_ocean/EC30to60/PHC/performance_test
target cores: 128
minimum cores: 36
I successfully set up and ran these combinations on grizzly:
compass setup -w $n/210810_pr_cache_3 -n 81c 82
Setting up test cases:
ocean/global_ocean/EC30to60/PHC/init
steps with cached outputs: initial_state
ocean/global_ocean/EC30to60/PHC/performance_test
target cores: 128
minimum cores: 36
$ compass setup -w $n/210810_pr_cache_2 -n 41c 42
Setting up test cases:
ocean/global_ocean/QU240/PHC/init
steps with cached outputs: initial_state
ocean/global_ocean/QU240/PHC/performance_test
target cores: 4
minimum cores: 1
$ compass setup -w $n/210810_pr_cache_1 -n 61c 62
Setting up test cases:
ocean/global_ocean/QUwISC240/PHC/init
steps with cached outputs: initial_state ssh_adjustment
ocean/global_ocean/QUwISC240/PHC/performance_test
target cores: 4
minimum cores: 4
and ran and they all worked great! I also set up everything on cori, and everything worked.
|
Thanks @mark-petersen! |
This merge also adds
graph.infoas an output in theinitial_statestep so it is available to subsequent test cases and steps.This change means that forward steps depend only in steps from the init test case, not the mesh test case, which should decrease dependencies when running cached versions of each test case (#184).
Various strings have also been switched from the less readable
.format()syntax to the more readable f-string syntax.