-
Notifications
You must be signed in to change notification settings - Fork 214
Refactoring of the marine B-matrix job #2749
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
Changes from 11 commits
17494de
58115a6
5438a47
ee36b5e
8ae7f79
ba665f4
6900fc4
2d21d3d
8e137d0
216df7f
612b456
c034653
2311b4f
faa84bf
4913ff9
c93a43b
0e2e05e
6ab9a5d
96db47e
f6aaf60
8a7b148
7cf347d
c8cbba0
75cfc93
112085f
4e69124
6e0e2dc
4da5791
a0a34d9
ee30556
a209510
65eb775
c05582b
bbc1fa0
017d191
4ba7dee
3e85a94
5a7dd31
6d3704c
507b62d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| #!/bin/bash | ||
|
|
||
| source "${HOMEgfs}/ush/preamble.sh" | ||
|
|
||
| export DATA=${DATA:-${DATAROOT}/${RUN}marinebmat_${cyc}} | ||
| # source config.base, config.ocnanal and config.marinebmat | ||
| # and pass marinebmat to ${machine}.env | ||
| source "${HOMEgfs}/ush/jjob_header.sh" -e "marinebmat" -c "base ocnanal marinebmat" | ||
|
|
||
| # If ensemble perturbations are used, save them in a DATAenspert directory that will | ||
| # exist throughout the DA cycle | ||
| if (( 10#${NMEM_ENS:-0} > 0 )); then | ||
| export DATAjob="${DATAROOT}/${RUN}marinebmat.${PDY:-}${cyc}" | ||
| export DATAenspert="${DATAjob}/enspert" | ||
| if [[ ! -d "${DATAenspert}" ]]; then mkdir -p "${DATAenspert}"; fi | ||
| fi | ||
|
guillaumevernieres marked this conversation as resolved.
Outdated
|
||
|
|
||
| ############################################## | ||
| # Set variables used in the script | ||
| ############################################## | ||
| # shellcheck disable=SC2153 | ||
| GDATE=$(date --utc +%Y%m%d%H -d "${PDY} ${cyc} - ${assim_freq} hours") | ||
| export GDATE | ||
| export gPDY=${GDATE:0:8} | ||
| export gcyc=${GDATE:8:2} | ||
| export GDUMP="gdas" | ||
| export GDUMP_ENS="enkf${GDUMP}" | ||
|
guillaumevernieres marked this conversation as resolved.
|
||
|
|
||
| ############################################## | ||
| # Begin JOB SPECIFIC work | ||
| ############################################## | ||
|
|
||
| # Generate COM variables from templates | ||
| RUN=${GDUMP} YMD=${gPDY} HH=${gcyc} declare_from_tmpl -rx \ | ||
| COMIN_OCEAN_HISTORY_PREV:COM_OCEAN_HISTORY_TMPL \ | ||
| COMIN_ICE_HISTORY_PREV:COM_ICE_HISTORY_TMPL | ||
|
|
||
| RUN=${GDUMP_ENS} YMD=${gPDY} HH=${gcyc} declare_from_tmpl -rx \ | ||
| COMIN_OCEAN_HISTORY_ENS_PREV:COM_OCEAN_HISTORY_TMPL \ | ||
| COMIN_ICE_HISTORY_ENS_PREV:COM_ICE_HISTORY_TMPL | ||
|
|
||
| YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \ | ||
| COMOUT_OCEAN_BMATRIX:COM_OCEAN_BMATRIX_TMPL \ | ||
| COMOUT_ICE_BMATRIX:COM_ICE_BMATRIX_TMPL | ||
|
|
||
| mkdir -p "${COMOUT_OCEAN_BMATRIX}" | ||
| mkdir -p "${COMOUT_ICE_BMATRIX}" | ||
|
|
||
| ############################################################### | ||
| # Run relevant script | ||
|
|
||
| EXSCRIPT=${GDASMARINEBMATRUNPY:-${SCRgfs}/exglobal_marine_bmat_run.py} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, will push the changes after I'm done testing |
||
| ${EXSCRIPT} | ||
| status=$? | ||
| [[ ${status} -ne 0 ]] && exit "${status}" | ||
|
|
||
| ############################################## | ||
| # End JOB SPECIFIC work | ||
| ############################################## | ||
|
|
||
| ############################################## | ||
| # Final processing | ||
| ############################################## | ||
| if [[ -e "${pgmout}" ]] ; then | ||
| cat "${pgmout}" | ||
| fi | ||
|
|
||
| exit 0 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #! /usr/bin/env bash | ||
|
|
||
| source "${HOMEgfs}/ush/preamble.sh" | ||
|
|
||
| ############################################################### | ||
| # Source UFSDA workflow modules | ||
| . "${HOMEgfs}/ush/load_ufsda_modules.sh" | ||
| status=$? | ||
| [[ "${status}" -ne 0 ]] && exit "${status}" | ||
|
|
||
| export job="marinebmat" | ||
| export jobid="${job}.$$" | ||
|
|
||
| ############################################################### | ||
| # setup python path for workflow utilities and tasks | ||
| wxflowPATH="${HOMEgfs}/ush/python:${HOMEgfs}/ush/python/wxflow/src" | ||
| socaToolsPATH="${HOMEgfs}/sorc/gdas.cd/ush/soca/tools" | ||
|
guillaumevernieres marked this conversation as resolved.
Outdated
|
||
| PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${wxflowPATH}:${socaToolsPATH}" | ||
| export PYTHONPATH | ||
|
|
||
| ############################################################### | ||
| # Execute the JJOB | ||
| "${HOMEgfs}"/jobs/JGLOBAL_MARINE_BMAT | ||
| status=$? | ||
|
|
||
| exit "${status}" | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/bash | ||
|
|
||
| ########## config.marinebmat ########## | ||
| # configuration for the marine B-matrix | ||
|
|
||
| echo "BEGIN: config.marinebmat" | ||
|
|
||
| # Get task specific resources | ||
| . "${EXPDIR}/config.resources" marinebmat | ||
|
|
||
| echo "END: config.marinebmat" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,22 +5,23 @@ | |
|
|
||
| echo "BEGIN: config.ocnanal" | ||
|
|
||
| export SOCA_FIX_YAML_TMPL="${PARMgfs}/gdas/soca/soca_fix_stage.yaml.j2" | ||
| export OBS_YAML_DIR="${HOMEgfs}/sorc/gdas.cd/parm/soca/obs/config" | ||
| export OBS_LIST=@SOCA_OBS_LIST@ | ||
| export OBS_YAML="${OBS_LIST}" | ||
| export FV3JEDI_STAGE_YAML="${HOMEgfs}/sorc/gdas.cd/test/soca/testinput/dumy.yaml" | ||
| export SOCA_INPUT_FIX_DIR=@SOCA_INPUT_FIX_DIR@ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This need not be this way. |
||
| export SOCA_VARS=tocn,socn,ssh | ||
| export SABER_BLOCKS_YAML=@SABER_BLOCKS_YAML@ | ||
| #export SOCA_VARS=tocn,socn,ssh | ||
| #export SABER_BLOCKS_YAML=@SABER_BLOCKS_YAML@ | ||
| export SOCA_NINNER=@SOCA_NINNER@ | ||
| export CASE_ANL=@CASE_ANL@ | ||
| #export CASE_ANL=@CASE_ANL@ | ||
| export DOMAIN_STACK_SIZE=116640000 #TODO: Make the stack size resolution dependent | ||
| export JEDI_BIN=${HOMEgfs}/sorc/gdas.cd/build/bin | ||
|
|
||
| export COMIN_OBS=@COMIN_OBS@ | ||
|
|
||
| # NICAS | ||
| export NICAS_RESOL=@NICAS_RESOL@ | ||
| export NICAS_GRID_SIZE=@NICAS_GRID_SIZE@ | ||
| #export NICAS_RESOL=@NICAS_RESOL@ | ||
| #export NICAS_GRID_SIZE=@NICAS_GRID_SIZE@ | ||
|
|
||
| echo "END: config.ocnanal" | ||
Uh oh!
There was an error while loading. Please reload this page.