-
Notifications
You must be signed in to change notification settings - Fork 8
/
softsusy_nmssmtools.x.in
58 lines (44 loc) · 1.4 KB
/
softsusy_nmssmtools.x.in
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
# directory of this script
BASEDIR=$(dirname $0)
# path to the NMSSMTools directory
NMSSMTOOLS_PATH="@NMSSMTOOLS_PATH@"
if test $# -ne 1 -o "x$1" != "xleshouches"; then
cat <<EOF > /dev/stderr
Usage: ./`basename $0` leshouches < slha-input-file
EOF
exit 1
fi
if ! test -d "${NMSSMTOOLS_PATH}"; then
echo "# Error: Cannot find NMSSMTools directory \"${nmssmtools_dir}\""
exit 1
fi
if ! test -x "${NMSSMTOOLS_PATH}/main/nmh_slhainp"; then
echo "# Error: Cannot find ${NMSSMTOOLS_PATH}/main/nmh_slhainp"
echo " Please run ./setup_nmssmtools.sh --nmssmtools-dir=/path/to/NMSSMTools --compile"
exit 1
fi
nmssmtools_input_file="${NMSSMTOOLS_PATH}/main/inp"
${BASEDIR}/softpoint.x leshouches < /dev/stdin | tee ${nmssmtools_input_file}
if test $? -ne 0; then
echo "# Error: invalid point in Softsusy"
exit 1
fi
(cd ${NMSSMTOOLS_PATH}/main/ && ./nmh_slhainp)
if test $? -ne 0; then
echo "# Error: NMSSMTools could not calculate the decays"
exit 1
fi
decay_output_file="${NMSSMTOOLS_PATH}/main/decay"
omega_output_file="${NMSSMTOOLS_PATH}/main/omega"
echo ""
if test -r "${decay_output_file}"; then
cat "${decay_output_file}"
else
echo "# Error: cannot open decay output file \"${decay_output_file}\""
fi
if test -r "${omega_output_file}"; then
cat "${omega_output_file}"
else
echo "# Error: cannot open micrOmegas output file \"${omega_output_file}\""
fi