forked from ufs-community/land-DA_workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.environment
43 lines (36 loc) · 1.68 KB
/
release.environment
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#Common environment variable settings for LandDA release v1.0.0
#Set defaults
export LANDDAROOT=${LANDDAROOT:-`dirname $PWD`}
export LANDDA_INPUTS=${LANDDA_INPUTS:-${LANDDAROOT}/inputs}
export CYCLEDIR=$(pwd)
export LANDDA_EXPTS=${LANDDA_EXPTS:-${LANDDAROOT}/landda_expts}
if [[ ! $BASELINE =~ 'hera.internal' ]]; then
export PYTHON=`/usr/bin/which python`
fi
export BUILDDIR=${BUILDDIR:-${CYCLEDIR}/build}
#Change some variables if working with a container
if [[ ${USE_SINGULARITY} =~ yes ]]; then
EPICHOME=/opt
#use the python that is built into the container. It has all the pythonpaths set and can run the ioda converters
export PYTHON=$PWD/build/bin/python
#JEDI is installed under /opt in the container
export JEDI_INSTALL=/opt
#Scripts that launch containerized versions of the executables are in $PWD/singularity/bin They should be called
#from the host system to be run (e.g. mpiexec -n 6 $BUILDDIR/bin/fv3jedi_letkf.x )
export BUILDDIR=$PWD/build
export JEDI_EXECDIR=${CYCLEDIR}/build/bin
module try-load singularity
export SINGULARITYBIN=`/usr/bin/which singularity`
sed -i 's/singularity exec/${SINGULARITYBIN} exec/g' run_container_executable.sh
fi
#Location of observations for DA
export OBSDIR=${LANDDA_INPUTS}/DA
# temporary directory where experiment is run from
export WORKDIR=${WORKDIR:-${LANDDAROOT}/workdir}
# directory where output is saved
export OUTDIR=${LANDDA_EXPTS}/${exp_name}
# directory where ctest base dataset is located
export TEST_BASEDIR=${TEST_BASEDIR:-"${EPICHOME}/test_base/mem000/restarts/vector"}
# JEDI directories
export JEDI_EXECDIR=${JEDI_EXECDIR:-"${JEDI_INSTALL}/build/bin"}
export JEDI_STATICDIR=${JEDI_INSTALL}/jedi-bundle/fv3-jedi/test/Data