-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing of the Marine DA jjobs (#234)
* blank ctests for jjobs * works but needs tidy * fname too long for fms ... * some code tidy * removed debug prints * replacing machine in config * copy bkg * manual merge of prep script * adjusted a few things related to jjob refactor ... * tidy ... some and local2hpc * code tidy and some shellcheck * bomb obs, fix yaml * clean exp
- Loading branch information
1 parent
9143acb
commit 98a8294
Showing
13 changed files
with
591 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# test for creating an experiment directory within the global-workflow | ||
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test/soca/gw/testrun) | ||
|
||
add_test(NAME test_gdasapp_setup_soca_cycled_exp | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/soca/gw/setup_workflow_exp.sh | ||
${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/soca/gw/testrun) | ||
|
||
add_test(NAME test_gdasapp_soca_bkg2comrot | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/soca/gw/bkg2comrot.sh | ||
${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/soca/gw/testrun) | ||
set_tests_properties(test_gdasapp_soca_bkg2comrot | ||
PROPERTIES | ||
DEPENDS "test_gdasapp_soca_cycled_exp") | ||
|
||
add_test(NAME test_gdasapp_soca_jjob_soca_prep | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/soca/gw/jjob_prep.sh | ||
${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/soca/gw/testrun) | ||
set_tests_properties(test_gdasapp_soca_jjob_soca_prep | ||
PROPERTIES | ||
DEPENDS "test_gdasapp_soca_cycled_exp;test_gdasapp_soca_bkg2comrot") | ||
|
||
add_test(NAME test_gdasapp_soca_jjob_soca_run | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/soca/gw/jjob_run.sh | ||
${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/soca/gw/testrun) | ||
set_tests_properties(test_gdasapp_soca_jjob_soca_run | ||
PROPERTIES | ||
DEPENDS "test_gdasapp_soca_cycled_exp;test_gdasapp_soca_bkg2comrot;test_gdasapp_soca_jjob_soca_prep") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
bindir=$1 | ||
srcdir=$2 | ||
|
||
# export env. var. | ||
source "${srcdir}/test/soca/gw/runtime_vars.sh" "${bindir}" "${srcdir}" | ||
|
||
# prepare background from previous cycle | ||
mkdir -p "${ROTDIR}/${PSLOT}/gdas.${PDY}/${gcyc}/ocean/" | ||
cp -r "${bindir}/test/soca/bkg/"* "${ROTDIR}/${PSLOT}/gdas.${PDY}/${gcyc}/ocean/" |
Oops, something went wrong.