Skip to content

Commit

Permalink
Add support to pass in ocean type (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 authored Oct 17, 2022
1 parent fd5e0f7 commit 76f9f64
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

## [1.15.0] - 2022-10-17

## Added

- Added `gcm_ocean_type` to GCM experiment to support MOM6 runs

## [1.14.0] - 2022-10-13

### Changed
Expand Down
7 changes: 6 additions & 1 deletion src/commands/create_gcm_expt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ parameters:
description: "Vertical resolution for gcm experiment"
type: integer
default: 72
gcm_ocean_type:
description: "Ocean type for gcm experiment"
type: enum
enum: ["o1", "MOM6"]
default: o1

steps:
- run:
Expand All @@ -29,5 +34,5 @@ steps:
TERM: dumb
command: |
cd ${CIRCLE_WORKING_DIRECTORY}/<< parameters.workspace_root >>/install-<< parameters.repo >>/bin
/TinyBCs-GitV10/scripts/create_expt.py << parameters.gcm_experiment_name >> --expdir ${CIRCLE_WORKING_DIRECTORY}/<< parameters.workspace_root >> --horz << parameters.gcm_horz_resolution >> --vert << parameters.gcm_vert_resolution >>
/TinyBCs-GitV10/scripts/create_expt.py << parameters.gcm_experiment_name >> --expdir ${CIRCLE_WORKING_DIRECTORY}/<< parameters.workspace_root >> --horz << parameters.gcm_horz_resolution >> --vert << parameters.gcm_vert_resolution >> --ocean << parameters.gcm_ocean_type >>
6 changes: 6 additions & 0 deletions src/jobs/run_gcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ parameters:
description: "Vertical resolution for gcm experiment"
type: integer
default: 72
gcm_ocean_type:
description: "Ocean type for gcm experiment"
type: enum
enum: ["o1", "MOM6"]
default: o1

executor:
name: << parameters.compiler >>-bcs
Expand All @@ -58,6 +63,7 @@ steps:
gcm_experiment_name: << parameters.gcm_experiment_name >>
gcm_horz_resolution: << parameters.gcm_horz_resolution >>
gcm_vert_resolution: << parameters.gcm_vert_resolution >>
gcm_ocean_type: << parameters.gcm_ocean_type >>
- run_makeoneday:
repo: << parameters.repo >>
workspace_root: << parameters.workspace_root >>
Expand Down

0 comments on commit 76f9f64

Please sign in to comment.