-
Notifications
You must be signed in to change notification settings - Fork 1
/
Install_noomp
executable file
·87 lines (76 loc) · 2.19 KB
/
Install_noomp
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
# first configure the makefile
# Insert the location of Cernlib on your system (if desired)
CERNLIB=
# Insert the location of LHAPDF on your system (if desired)
LHAPDFLIB=
if [[ $CERNLIB == '' ]]; then
echo 'Warning: no directory specified for CERNLIB'
else
echo 'CERNLIB directory: '$CERNLIB
fi
if [[ $LHAPDFLIB == '' ]]; then
echo 'Warning: no directory specified for LHAPDF'
else
echo 'LHAPDFLIB directory: '$LHAPDFLIB
ln -s $LHAPDFLIB/PDFsets Bin/PDFsets
fi
echo '# Makefile routine.' > makefile.new
echo '' >> makefile.new
echo '# Replace this with the location of Cernlib on your system (if desired)' >> makefile.new
echo 'CERNLIB = '$CERNLIB >> makefile.new
echo '# Replace this with the location of LHAPDF on your system (if desired)' >> makefile.new
echo 'LHAPDFLIB = '$LHAPDFLIB >> makefile.new
echo '' >> makefile.new
#echo 'MCFMHOME = '`pwd` >> makefile.new
#echo 'SOURCEDIR = '`pwd`'/src' >> makefile.new
tail -n +8 makefile >> makefile.new
mv makefile makefile.orig
mv makefile.new makefile
# Produce LaTeX manual
mkdir -p obj/
cd Doc
latex mcfm > latex.out
latex mcfm > latex.out
cd ..
# Link FF data files into Bin directory
if [ ! -h Bin/ffwarn.dat ]; then
ln -s ../QCDLoop/ff/fferr.dat Bin
ln -s ../QCDLoop/ff/ffperm5.dat Bin
ln -s ../QCDLoop/ff/ffwarn.dat Bin
fi
# Compile QCDLoop libraries if necessary
mkdir -p QCDLoop/ff/obj
mkdir -p QCDLoop/ql/obj
if [ ! -e QCDLoop/ql/libqcdloop.a ]; then
ls
echo 'Compiling QCDLoop library'
cd QCDLoop
make
cd ..
fi
# Compile TensorReduction libraries if necessary
mkdir -p TensorReduction/ov/obj
mkdir -p TensorReduction/pv/obj
mkdir -p TensorReduction/recur/smallF/obj
mkdir -p TensorReduction/recur/smallG/obj
mkdir -p TensorReduction/recur/smallP/obj
mkdir -p TensorReduction/recur/smallY/obj
if [ ! -e TensorReduction/pv/libpv.a ]; then
ls
echo 'Compiling TensorReduction library'
cd TensorReduction
make
cd ..
fi
# Compile JetVHeto library if necessary
if [ ! -e JetVHeto/libjetvheto.a ]; then
ls
echo 'Compiling JetVHeto library'
cd JetVHeto
make
cd ..
fi
echo ''
echo 'Installation complete. You may now compile MCFM by'
echo 'ensuring that USEOMP = NO in the makefile and running make.'