Skip to content

Commit

Permalink
Bugfix/coupled crow (#47)
Browse files Browse the repository at this point in the history
* bug fix, POSTGRB2TBL undefined

* clean up unused schema
move default value into defaults/

* move all default values into /defaults from /schema

It's better if we have one place to manage default values
for configurable variables other than two

Default values only for reference.

Please throughly test to make sure it could reproduce.

* bug fix: imp_physics="11" instead of 11
         default field table change to match current selection

* update sandbox environment to enable FIX_SCRUB settings.
  • Loading branch information
JianKuang-Intelsat authored Mar 27, 2020
1 parent f1d166d commit 2b2f8c0
Showing 1 changed file with 14 additions and 37 deletions.
51 changes: 14 additions & 37 deletions workflow/platforms/_sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,8 @@ platform: !Platform

# DMPDIR - location of the global dump data. This is used by the observation
# processing scripts, which are not included in the public release.
DMPDIR: !calc doc.user_places.EXPROOT
DMPDIR: !calc doc.user_places.COMROOT
#"/Users/jiankuang/Documents/Eclipse_workspace/ecfutils_007"
#DMPDIR: !FirstTrue
# - do: "/gpfs/gp1/emc/globaldump"
# when: !calc tools.isdir(do)
# - do: "/gpfs/tp1/emc/globaldump"
# when: !calc tools.isdir(do)
# - otherwise: !error "Cannot find globaldump directory."

# RTMFIX - location of the CRTM fixed data files used by the GSI data
# assimilation. The data assimilation is not included in this public release
Expand Down Expand Up @@ -147,39 +141,22 @@ platform: !Platform
# Path to mmlsquota, the program used to get GPFS disk usage information:
#mmlsquota: "/usr/lpp/mmfs/bin/mmlsquota"

# Automatically detect the least used scrub area the user can access:
#least_used_ptmp: !Immediate
# - !FirstMax
# - do: /gpfs/hps3/ptmp
# when: !calc ( int(tools.can_write(do)) * tools.gpfs_gb(do,"hps3-ptmp","hps3",mmlsquota) )
# message: Use {do} for long-term temp.
# - do: /gpfs/hps/ptmp
# when: !calc ( int(tools.can_write(do)) * tools.gpfs_gb(do,"hps-ptmp","hps",mmlsquota) )
# message: Use {do} for long-term temp.
# - do: /gpfs/hps2/ptmp
# when: !calc ( int(tools.can_write(do)) * tools.gpfs_gb(do,"hps2-ptmp","hps2",mmlsquota) )
# message: Use {do} for long-term temp.
#least_used_stmp: !Immediate
# - !FirstMax
# - do: /gpfs/hps/stmp
# when: !calc ( int(tools.can_write(do)) * tools.gpfs_gb(do,"hps-stmp","hps",mmlsquota) )
# message: Use {do} for short-term temp.
# - do: /gpfs/hps2/stmp
# when: !calc ( int(tools.can_write(do)) * tools.gpfs_gb(do,"hps2-stmp","hps2",mmlsquota) )
# message: Use {do} for short-term temp.
# - do: /gpfs/hps3/stmp
# when: !calc ( int(tools.can_write(do)) * tools.gpfs_gb(do,"hps3-stmp","hps3",mmlsquota) )
# message: Use {do} for short-term temp.

# long_term_temp - area for storage of data that must be passed
# between jobs or shared with programs external to this workflow.
long_term_temp: !calc doc.user_places.EXPROOT
#!expand "{least_used_ptmp}/{tools.env('USER')}"
long_term_temp: !calc doc.user_places.COMROOT

# short_term_temp - area for data that is only needed within one job:
short_term_temp: !calc doc.user_places.EXPROOT
#!expand "{least_used_stmp}/{tools.env('USER')}"
short_term_temp: !calc doc.user_places.DATAROOT

COMROOT: !FirstTrue
- do: !expand "{doc.user_places.COMROOT}"
when: !calc doc.user_places.FIX_SCRUB
- otherwise: !expand "{doc.platform.least_used_temp}/{tools.env('USER')}"

# short_term_temp - area for data that is only needed within one job:
DATAROOT: !FirstTrue
- do: !expand "{doc.user_places.DATAROOT}"
when: !calc doc.user_places.FIX_SCRUB
- otherwise: !expand "{doc.platform.least_used_temp}/{tools.env('USER')}"

# EXPROOT - Parent directory of the expdir (experiment directory)
EXPROOT: !calc doc.user_places.EXPROOT
#!expand "{doc.user_places.EXPROOT}/noscrub/{tools.env('USER')}"

0 comments on commit 2b2f8c0

Please sign in to comment.