Skip to content

Commit c9b2d94

Browse files
Add new path variables.
Fixes ufs-community#772.
1 parent ebc063e commit c9b2d94

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

util/gdas_init/config

+5-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ OUTDIR=/lfs/h2/emc/stmp/$USER/gdas.init/output
7979
#---------------------------------------------------------
8080
# Dont touch anything below here.
8181
#---------------------------------------------------------
82+
83+
GDAS_INIT_DIR=$UFS_DIR/util/gdas_init
84+
EXEC_DIR=$UFS_DIR/exec
85+
8286
if [ "$use_v16retro" = "yes" ]; then
8387

8488
gfs_ver=v16retro
@@ -113,4 +117,4 @@ else
113117
fi
114118

115119
export EXTRACT_DIR yy mm dd hh UFS_DIR OUTDIR CRES_HIRES CRES_ENKF FRAC_ORO
116-
export LEVS gfs_ver
120+
export LEVS gfs_ver EXEC_DIR GDAS_INIT_DIR

util/gdas_init/run_v15.chgres.gfs.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ rm -fr $WORKDIR
2222
mkdir -p $WORKDIR
2323
cd $WORKDIR
2424

25-
source $UFS_DIR/util/gdas_init/set_fixed_files.sh
25+
source $GDAS_INIT_DIR/set_fixed_files.sh
2626

2727
cat << EOF > fort.41
2828
@@ -47,14 +47,14 @@ cat << EOF > fort.41
4747
/
4848
EOF
4949

50-
$APRUN $UFS_DIR/exec/chgres_cube
50+
$APRUN $EXEC_DIR/chgres_cube
5151
rc=$?
5252

5353
if [ $rc != 0 ]; then
5454
exit $rc
5555
fi
5656

57-
$UFS_DIR/util/gdas_init/copy_coldstart_files.sh gfs $OUTDIR $yy $mm $dd $hh $INPUT_DATA_DIR
57+
$GDAS_INIT_DIR/copy_coldstart_files.sh gfs $OUTDIR $yy $mm $dd $hh $INPUT_DATA_DIR
5858

5959
rm -fr $WORKDIR
6060

util/gdas_init/run_v15.chgres.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ rm -fr $WORKDIR
3838
mkdir -p $WORKDIR
3939
cd $WORKDIR
4040

41-
source $UFS_DIR/util/gdas_init/set_fixed_files.sh
41+
source $GDAS_INIT_DIR/set_fixed_files.sh
4242

4343
cat << EOF > fort.41
4444
@@ -66,14 +66,14 @@ cat << EOF > fort.41
6666
/
6767
EOF
6868

69-
$APRUN $UFS_DIR/exec/chgres_cube
69+
$APRUN $EXEC_DIR/chgres_cube
7070
rc=$?
7171

7272
if [ $rc != 0 ]; then
7373
exit $rc
7474
fi
7575

76-
$UFS_DIR/util/gdas_init/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $RADSTAT_DATA_DIR
76+
$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $RADSTAT_DATA_DIR
7777

7878
rm -fr $WORKDIR
7979

util/gdas_init/run_v16retro.chgres.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ rm -fr $WORKDIR
5656
mkdir -p $WORKDIR
5757
cd $WORKDIR
5858

59-
source $UFS_DIR/util/gdas_init/set_fixed_files.sh
59+
source $GDAS_INIT_DIR/set_fixed_files.sh
6060

6161
cat << EOF > fort.41
6262
@@ -84,14 +84,14 @@ cat << EOF > fort.41
8484
/
8585
EOF
8686

87-
$APRUN $UFS_DIR/exec/chgres_cube
87+
$APRUN $EXEC_DIR/chgres_cube
8888
rc=$?
8989

9090
if [ $rc != 0 ]; then
9191
exit $rc
9292
fi
9393

94-
$UFS_DIR/util/gdas_init/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $RADSTAT_DATA_DIR
94+
$GDAS_INIT_DIR/copy_coldstart_files.sh $MEMBER $OUTDIR $yy $mm $dd $hh $RADSTAT_DATA_DIR
9595

9696
rm -fr $WORKDIR
9797

0 commit comments

Comments
 (0)