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

Add a gefs test #1774

Merged
merged 7 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from 4 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
16 changes: 16 additions & 0 deletions ci/cases/C48_S2SA_gefs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
experiment:
type: gefs

arguments:
pslot: ${pslot}
app: S2SA
resdet: 48
resens: 48
nens: 2
gfs_cyc: 1
comrot: ${RUNTESTS}/COMROT
expdir: ${RUNTESTS}/EXPDIR
icsdir: ${ICSDIR_ROOT}/C48C48mx500
idate: 2021032312
edate: 2021032312
yaml: ${HOMEgfs_PR}/ci/platforms/gfs_defaults_ci-updates.yaml
12 changes: 11 additions & 1 deletion workflow/setup_expt.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,15 @@ def fill_COMROT_forecasts(host, inputs):
"""
Implementation of 'fill_COMROT' for forecast-only mode
"""
print('forecast-only mode treats ICs differently and cannot be staged here')
if inputs.system in ['gfs']:
print('forecast-only mode treats ICs differently and cannot be staged here')
elif inputs.system in ['gefs']: # Temporarily copy ICs from icsdir into COM for testing
print('temporary hack to stage gefs ICs for testing')
comrot = os.path.join(inputs.comrot, inputs.pslot)
idatestr = datetime_to_YMDH(inputs.idate)
current_cycle_dir = f"gefs.{idatestr[:8]}"
cmd = f"cp -as {inputs.icsdir}/{current_cycle_dir} {comrot}/{current_cycle_dir}"
os.system(cmd)
return


Expand Down Expand Up @@ -455,6 +463,8 @@ def input_args(*argv):
default=os.path.join(_top, 'parm/config/gefs'))
gefs.add_argument('--yaml', help='Defaults to substitute from', type=str, required=False,
default=os.path.join(_top, 'parm/config/gefs/yaml/defaults.yaml'))
gefs.add_argument('--icsdir', help='full path to initial condition directory [temporary hack in place for testing]',
type=str, required=False, default=None)

return parser.parse_args(argv[0][0] if len(argv[0]) else None)

Expand Down