Skip to content

Conversation

@xylar
Copy link
Collaborator

@xylar xylar commented Aug 9, 2021

This merge also adds graph.info as an output in the initial_state step 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.

xylar added 2 commits August 9, 2021 22:04
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.
@xylar xylar added ocean clean-up python package DEPRECATED: PRs and Issues involving the python package (master branch) labels Aug 9, 2021
@xylar xylar requested a review from mark-petersen August 9, 2021 20:44
@xylar xylar self-assigned this Aug 9, 2021
Comment on lines -136 to +135
for file in ['initial_state.nc', 'init_mode_forcing_data.nc']:
for file in ['initial_state.nc', 'init_mode_forcing_data.nc',
'graph.info']:
Copy link
Collaborator Author

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.

Comment on lines -118 to +116
work_dir_target='{}/culled_graph.info'.format(mesh_path))
work_dir_target=f'{init.path}/initial_state/graph.info')
Copy link
Collaborator Author

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.

@xylar
Copy link
Collaborator Author

xylar commented Aug 9, 2021

@mark-petersen, could you run a quick test on this before I merge and rebase #184?

Copy link
Collaborator

@mark-petersen mark-petersen left a 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.

@xylar
Copy link
Collaborator Author

xylar commented Aug 10, 2021

Thanks @mark-petersen!

@xylar xylar merged commit 1f2616f into MPAS-Dev:master Aug 10, 2021
@xylar xylar deleted the pass_graph_info_through_initial_state branch August 10, 2021 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean-up ocean python package DEPRECATED: PRs and Issues involving the python package (master branch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants