Skip to content

Commit

Permalink
remove scons options for the moment
Browse files Browse the repository at this point in the history
  • Loading branch information
covarell committed Nov 8, 2024
1 parent 9bfa2db commit d9e02dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
28 changes: 14 additions & 14 deletions bin/Powheg/Templates/runGetSource_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,20 @@ sed -i -e "s#FPE[ \t]*=[ \t]*#\#FPE=#g" Makefile
## FOR OpenLoops, CHANGE FORTRAN OPTIONS AND REMOVE SILLY BINARY NUMBERS
if [[ `grep OpenLoops Makefile` != "" ]]; then
sed -i -e "s#proclib ;#proclib f77_flags=-fallow-invalid-boz,-std=legacy,-ffixed-line-length-none,-fno-range-check f90_flags=-fallow-invalid-boz,-std=legacy,-ffixed-line-length-none,-fno-range-check ;#g" Makefile
cd ../OpenLoopsStuff/OpenLoops/lib_src/openloops/
sed -i -e "/case/ s=B\"00\"=0=g" */*.*90
sed -i -e "/case/ s=B\"01\"=1=g" */*.*90
sed -i -e "/case/ s=B\"10\"=2=g" */*.*90
sed -i -e "/case/ s=B\"11\"=3=g" */*.*90
sed -i -e "/case/ s=B\"1111\"=15=g" */*.*90
sed -i -e "/case/ s=B\"0110\"=6=g" */*.*90
sed -i -e "/case/ s=B\"0111\"=7=g" */*.*90
sed -i -e "/case/ s=B\"1001\"=9=g" */*.*90
sed -i -e "/case/ s=B\"1101\"=13=g" */*.*90
sed -i -e "/case/ s=B\"1110\"=14=g" */*.*90
sed -i -e "/case/ s=B\"1011\"=11=g" */*.*90
sed -i -e "/case/ s=B\"1010\"=10=g" */*.*90
sed -i -e "/case/ s=B\"0101\"=5=g" */*.*90
cd ../OpenLoopsStuff/
sed -i -e "/case/ s=B\"00\"=0=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"01\"=1=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"10\"=2=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"11\"=3=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"1111\"=15=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"0110\"=6=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"0111\"=7=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"1001\"=9=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"1101\"=13=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"1110\"=14=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"1011\"=11=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"1010\"=10=g" OpenLoop*/lib_src/openloops/*/*.*90
sed -i -e "/case/ s=B\"0101\"=5=g" OpenLoop*/lib_src/openloops/*/*.*90
cd -
fi

Expand Down
12 changes: 4 additions & 8 deletions bin/Powheg/Utilities/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,38 +144,34 @@ def runGetSource_patch_4(process) :
"bbH" : "# Use option O0 for bbH (O2 too long)\n \
sed -i -e \"s#O2#O0#g\" Makefile",
"HW_ew" : "# fix fortran options/linking to OpenLoops/missing libraries in VH_ew\n \
sed -i -e \"s#OL_process_src#OL_process_src f90_flags=-ffree-line-length-none#g\" Makefile\n \
sed -i -e \"s#\$(PWD)/\$(OBJ)#\$(OBJ)#g\" Makefile\n \
sed -i -e \"s#\$(OLPATH)/lib_src#lib_src#g\" Makefile\n \
sed -i -e \"s#cd \$(OLPATH)#cp -r \$(OLPATH)/* .;sed -i -e \"s/python2/python3/g\" scons-local/scons.py;./scons#g\" Makefile\n \
sed -i -e \"s#cd \$(OLPATH)#cp -r \$(OLPATH)/* .#g\" Makefile\n \
sed -i -e \"s#abspath(os.path.join(config#relpath(os.path.join(config#g\" ../OpenLoopsStuff/OpenLoops/SConstruct\n \
sed -i -e \"s#rpath=\$(PWD)/\$(OBJDIR) -L\$(PWD)/\$(OBJDIR)#rpath=\$(OBJDIR) -L\$(OBJDIR)#g\" Makefile\n \
sed -i -e \"s#PDFPACK=lhapdfif.o#PDFPACK=lhapdf6if.o lhapdf6ifcc.o#g\" Makefile\n \
cat ${patches_dir}/missing_lhapdf6.txt >> Makefile",
"HZ_ew" : "# fix fortran options/linking to OpenLoops/missing libraries in VH_ew\n \
sed -i -e \"s#OL_process_src#OL_process_src f90_flags=-ffree-line-length-none#g\" Makefile\n \
sed -i -e \"s#\$(PWD)/\$(OBJ)#\$(OBJ)#g\" Makefile\n \
sed -i -e \"s#\$(OLPATH)/lib_src#lib_src#g\" Makefile\n \
sed -i -e \"s#cd \$(OLPATH)#cp -r \$(OLPATH)/* .;sed -i -e \"s/python2/python3/g\" scons-local/scons.py;./scons#g\" Makefile\n \
sed -i -e \"s#cd \$(OLPATH)#cp -r \$(OLPATH)/* .#g\" Makefile\n \
sed -i -e \"s#abspath(os.path.join(config#relpath(os.path.join(config#g\" ../OpenLoopsStuff/OpenLoops/SConstruct\n \
sed -i -e \"s#rpath=\$(PWD)/\$(OBJDIR) -L\$(PWD)/\$(OBJDIR)#rpath=\$(OBJDIR) -L\$(OBJDIR)#g\" Makefile\n \
sed -i -e \"s#opencount.o#opencount.o sigequiv_hook.o#g\" Makefile\n \
sed -i -e \"s#PDFPACK=lhapdfif.o#PDFPACK=lhapdf6if.o lhapdf6ifcc.o#g\" Makefile\n \
cat ${patches_dir}/missing_lhapdf6.txt >> Makefile",
"HZJ_ew" : "# fix fortran options/linking to OpenLoops/missing libraries in VH_ew\n \
sed -i -e \"s#OL_process_src#OL_process_src f90_flags=-ffree-line-length-none#g\" Makefile\n \
sed -i -e \"s#\$(PWD)/\$(OBJ)#\$(OBJ)#g\" Makefile\n \
sed -i -e \"s#\$(OLPATH)/lib_src#lib_src#g\" Makefile\n \
sed -i -e \"s#cd \$(OLPATH)#cp -r \$(OLPATH)/* .;sed -i -e \"s/python2/python3/g\" scons-local/scons.py;./scons#g\" Makefile\n \
sed -i -e \"s#cd \$(OLPATH)#cp -r \$(OLPATH)/* .#g\" Makefile\n \
sed -i -e \"s#abspath(os.path.join(config#relpath(os.path.join(config#g\" ../OpenLoopsStuff/OpenLoops/SConstruct\n \
sed -i -e \"s#rpath=\$(PWD)/\$(OBJDIR) -L\$(PWD)/\$(OBJDIR)#rpath=\$(OBJDIR) -L\$(OBJDIR)#g\" Makefile\n \
sed -i -e \"s#OL_process_src#OL_process_src f90_flags=-ffree-line-length-none#g\" Makefile\n \
sed -i -e \"s#boostrot.o#boostrot.o boostrot4.o#g\" Makefile",
"HWJ_ew" : "# fix fortran options/linking to OpenLoops/missing libraries in VH_ew\n \
sed -i -e \"s#OL_process_src#OL_process_src f90_flags=-ffree-line-length-none#g\" Makefile\n \
sed -i -e \"s#\$(PWD)/\$(OBJ)#\$(OBJ)#g\" Makefile\n \
sed -i -e \"s#\$(OLPATH)/lib_src#lib_src#g\" Makefile\n \
sed -i -e \"s#cd \$(OLPATH)#cp -r \$(OLPATH)/* .;sed -i -e \"s/python2/python3/g\" scons-local/scons.py;./scons#g\" Makefile\n \
sed -i -e \"s#cd \$(OLPATH)#cp -r \$(OLPATH)/* .#g\" Makefile\n \
sed -i -e \"s#abspath(os.path.join(config#relpath(os.path.join(config#g\" ../OpenLoopsStuff/OpenLoops/SConstruct\n \
sed -i -e \"s#rpath=\$(PWD)/\$(OBJDIR) -L\$(PWD)/\$(OBJDIR)#rpath=\$(OBJDIR) -L\$(OBJDIR)#g\" Makefile\n \
sed -i -e \"s#opencount.o#opencount.o sigequiv_hook.o#g\" Makefile\n \
Expand Down

0 comments on commit d9e02dc

Please sign in to comment.