Commit fda19f5f authored by Evans, Katherine's avatar Evans, Katherine
Browse files

path fix to generalize for rhea and cori

parent 28f9945c
...@@ -20,7 +20,9 @@ if [[ $(hostname -s) = rhea* ]]; then ...@@ -20,7 +20,9 @@ if [[ $(hostname -s) = rhea* ]]; then
year_start=1979 year_start=1979
year_end=2005 year_end=2005
base=/lustre/atlas1/$project/proj-shared/salil/archive base=/lustre/atlas1/$project/proj-shared/salil/archive
path=$base/$case/archive prebase=/lustre/atlas1/$project/proj-shared/salil/archive/$case/archive
# path=$base/$case/archive
path=/lustre/atlas1/$project/world-shared/$USER/$case
outpath=/lustre/atlas1/$project/world-shared/$USER/$case/postproc outpath=/lustre/atlas1/$project/world-shared/$USER/$case/postproc
# compute center settings # compute center settings
obspath=/lustre/atlas1/cli115/world-shared/4ue/obs_data obspath=/lustre/atlas1/cli115/world-shared/4ue/obs_data
...@@ -36,7 +38,7 @@ elif [[ $(hostname -s) = cori* ]]; then ...@@ -36,7 +38,7 @@ elif [[ $(hostname -s) = cori* ]]; then
year_start=0070 year_start=0070
year_end=0075 year_end=0075
#need to specify prebase if using data created by someone else until masks are written with sim output #need to specify prebase if using data created by someone else until masks are written with sim output
prebase=/global/cscratch1/sd/dcomeau/acme_scratch/edison/archive prebase=/global/cscratch1/sd/dcomeau/acme_scratch/edison/archive/$case
base=/global/cscratch1/sd/$USER/acme_scratch/edison base=/global/cscratch1/sd/$USER/acme_scratch/edison
path=$base/$case path=$base/$case
outpath=/global/cscratch1/sd/$USER/$case/postproc outpath=/global/cscratch1/sd/$USER/$case/postproc
...@@ -66,12 +68,12 @@ echo "$version" ...@@ -66,12 +68,12 @@ echo "$version"
atm=cam atm=cam
# this copy to local dir can be removed once masks are written with sim output # this copy to local dir can be removed once masks are written with sim output
if test -d $prebase/$case; then if test -d $prebase; then
echo "Creating user owned target path for output data" echo "Creating user owned target path for output data"
mkdir -p $base/$case/atm mkdir -p $path/atm
mkdir -p $base/$case/lnd mkdir -p $path/lnd
cp -uvr $prebase/$case/atm $path cp -uvr $prebase/atm $path
cp -uvr $prebase/$case/lnd $path cp -uvr $prebase/lnd $path
else else
exit exit
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment