-
Notifications
You must be signed in to change notification settings - Fork 1
/
Install
executable file
·87 lines (76 loc) · 2.28 KB
/
Install
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_omp/
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_omp
mkdir -p QCDLoop/ql/obj_omp
if [ ! -e QCDLoop/ql/libqcdloop_omp.a ]; then
ls
echo 'Compiling OMP QCDLoop library'
cd QCDLoop
make -f makefile_omp
cd ..
fi
# Compile TensorReduction libraries if necessary
mkdir -p TensorReduction/ov/obj_omp
mkdir -p TensorReduction/pv/obj_omp
mkdir -p TensorReduction/recur/smallF/obj_omp
mkdir -p TensorReduction/recur/smallG/obj_omp
mkdir -p TensorReduction/recur/smallP/obj_omp
mkdir -p TensorReduction/recur/smallY/obj_omp
if [ ! -e TensorReduction/pv/libpv_omp.a ]; then
ls
echo 'Compiling OMP TensorReduction library'
cd TensorReduction
make -f makefile_omp
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 OMP MCFM by'
echo 'ensuring that USEOMP = YES in the makefile and running make.'