Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Changed default to false for run_extdata and run_history in CapGridComp, and modified the necessary yaml files for all tests to pass
- unit tests for server initialization logic (#5214)
- Refactored server initialization (#5214)
- added tests
Expand Down
4 changes: 2 additions & 2 deletions gridcomps/cap/CapGridComp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ subroutine setServices(gridcomp, rc)
_GET_NAMED_PRIVATE_STATE(gridcomp, CapGridComp, PRIVATE_STATE, cap)

! Disable extdata or history
call MAPL_GridCompGetResource(gridcomp, keystring='run_extdata', value=cap%run_extdata, default=.true., _RC)
call MAPL_GridCompGetResource(gridcomp, keystring='run_history', value=cap%run_history, default=.true., _RC)
call MAPL_GridCompGetResource(gridcomp, keystring='run_extdata', value=cap%run_extdata, default=.false., _RC)
call MAPL_GridCompGetResource(gridcomp, keystring='run_history', value=cap%run_history, default=.false., _RC)

! Get Names of children
call MAPL_GridCompGetResource(gridcomp, keystring='extdata_name', value=cap%extdata_name, default='EXTDATA', _RC)
Expand Down
3 changes: 3 additions & 0 deletions gridcomps/cap/tests/basic_captest/cap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ cap:
history_name: &history HIST
root_name: &root GCM

run_extdata: true
run_history: true

mapl:
children:
*root :
Expand Down
3 changes: 3 additions & 0 deletions gridcomps/cap/tests/parent_child_captest/cap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ cap:
history_name: &history HIST
root_name: &root GCM

run_extdata: true
run_history: true

mapl:
children:
*root :
Expand Down
3 changes: 3 additions & 0 deletions gridcomps/cap/tests/write_restart/cap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ cap:
history_name: &history HIST
root_name: &root GCM

run_extdata: true
run_history: true

mapl:
children:
*root :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

run_times:
- '2004-01-15T21:00:00'
- '2004-02-15T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

mapl:
children:
GCM:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

run_times:
- '2004-01-15T21:00:00'
- '2004-02-15T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

run_times:
- '2007-10-25T21:00:00'
- '2007-11-25T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

run_times:
- '2004-01-15T21:00:00'
- '2004-02-15T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

run_times:
- '2007-10-25T21:00:00'
- '2007-11-25T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

run_times:
- '2004-04-15T21:00:00'
- '2004-04-16T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

run_times:
- '2004-04-16T09:00:00'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

run_times:
- '2004-04-15T21:00:00'
- '2004-04-16T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

run_times:
- '2004-04-16T09:00:00'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

mapl:
children:
GCM:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ cap:
history_name: HIST
root_name: GCM

run_extdata: true
run_history: true

run_times:
- '2006-12-31T12:00:00'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2004-01-15T00:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2006-12-17T00:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

mapl:
children:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2004-02-02T15:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2004-07-01T00:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

mapl:
children:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2004-01-15T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2006-02-25T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2006-01-15T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2005-02-25T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2007-01-15T00:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2008-02-29T12:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

mapl:
children:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2008-02-29T12:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

mapl:
children:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2006-03-29T12:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

mapl:
children:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2006-03-29T15:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

mapl:
children:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

mapl:
children:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2004-01-15T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

mapl:
children:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

mapl:
children:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

run_times:
- '2004-01-15T21:00:00'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ cap:
extdata_name: EXTDATA
history_name: HIST
root_name: GCM
run_extdata: true
run_history: true

mapl:
children:
Expand Down
Loading
Loading