Skip to content
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

Testing of the Marine DA jjobs #234

Merged
merged 16 commits into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from 6 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
6 changes: 2 additions & 4 deletions scripts/exgdas_global_marine_analysis_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
my_home = os.path.dirname(os.path.dirname(my_dir))
gdas_home = os.path.join(os.getenv('HOMEgfs'), 'sorc', 'gdas.cd')
sys.path.append(os.path.join(os.getenv('HOMEgfs', my_home), 'ush'))
print(f"sys.path={sys.path}")

sys.path.append(os.path.join(gdas_home, 'ush'))
CoryMartin-NOAA marked this conversation as resolved.
Show resolved Hide resolved

# import UFSDA utilities
import ufsda
Expand Down Expand Up @@ -149,8 +148,7 @@ def gen_bkg_list(window_begin=' ', bkg_path='.', file_type='gdas.t*.ocnf00[3-9]'
# create output directory for soca DA
anl_out = os.path.join(comout, 'ocnanal_'+os.getenv('CDATE'), 'Data')
ufsda.mkdir(anl_out)
ufsda.symlink(os.path.join(anl_dir, 'Data'), anl_out, remove=False)

ufsda.symlink(anl_out, os.path.join(anl_dir, 'Data'), remove=False)
CoryMartin-NOAA marked this conversation as resolved.
Show resolved Hide resolved

################################################################################
# fetch observations
Expand Down
5 changes: 5 additions & 0 deletions test/soca/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,8 @@ set_tests_properties(test_gdasapp_soca_ana_run
PROPERTIES
DEPENDS "test_gdasapp_soca_ana_prep"
)

# Test exgdas scripts from the global-worflow
if (WORKFLOW_TESTS)
add_subdirectory(gw)
endif()
17 changes: 17 additions & 0 deletions test/soca/gw/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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_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)

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)
Loading