Skip to content

Commit b80ef22

Browse files
committed
exit hashexe* with error if mom_type not set
1 parent 67d859d commit b80ef22

12 files changed

+25
-13
lines changed

hashexe-public.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ else
2424
fi
2525

2626
if [[ -z "${mom_type}" ]]; then
27-
export mom_type=ACCESS-OM-BGC
27+
echo "FATAL ERROR: mom_type not set. Need to do whichever of these is appropriate"
28+
echo " export mom_type=ACCESS-OM"
29+
echo "or"
30+
echo " export mom_type=ACCESS-OM-BGC"
31+
echo "taking into account the branches the control dirs are on:"
32+
for d in control/*; do cd $d; echo $d; git status | grep "On branch"; cd -; done
33+
exit 1
2834
fi
2935

3036
yatmpath=${ACCESS_OM_DIR}/src/libaccessom2/build/bin/yatm.exe

hashexe.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ if [[ -z "${ACCESS_OM_DIR}" ]]; then
1111
fi
1212

1313
if [[ -z "${mom_type}" ]]; then
14-
export mom_type=ACCESS-OM-BGC
14+
echo "FATAL ERROR: mom_type not set. Need to do whichever of these is appropriate"
15+
echo " export mom_type=ACCESS-OM"
16+
echo "or"
17+
echo " export mom_type=ACCESS-OM-BGC"
18+
echo "taking into account the branches the control dirs are on:"
19+
for d in control/*; do cd $d; echo $d; git status | grep "On branch"; cd -; done
20+
exit 1
1521
fi
1622

1723
yatmpath=${ACCESS_OM_DIR}/src/libaccessom2/build/bin/yatm.exe

install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ set -e
77

88
#Type of MOM installation
99

10-
#export mom_type=ACCESS-OM
11-
export mom_type=ACCESS-OM-BGC
10+
export mom_type=ACCESS-OM
11+
#export mom_type=ACCESS-OM-BGC
1212

1313
echo "MOM5 build is of type mom_type=${mom_type}"
1414
sleep 1

src/mom

Submodule mom updated 294 files

0 commit comments

Comments
 (0)