Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11222081
main_sub.bat
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Subscribers
None
main_sub.bat
View Options
#!/bin/bash
#------------------------------------------------------
# This script is used when comparing my code and Oliver's code.
#------------------------------------------------------
# These parameters need to be set:
#------------------------------------------------------
# need to put the paths to the two codes that will be compared:
KWcodedir=
"/home/Karina/Work/HiggsBounds/HBsvn/HiggsBounds/trunk/HiggsBounds_KW"
OBcodedir=
"/home/Karina/Work/HiggsBounds/OB_code/email_02.02.11/HiggsBounds-f77_ed"
#if change nHneut or nHplus here, need to also change them in HBsubroutines_0-*.F as well
nHneut='4'
nHplus='2'
#------------------------------------------------------
naddit='0' #keep naddit='0'
startdir=
"$PWD"
echo
'compile and make my version'
echo
$KWcodedir
cd
$KWcodedir
./configure
make libHB
cd
$startdir
echo
'compile and make Olivers version'
echo
$OBcodedir
cd
$OBcodedir
./configure
make libHB
cd
$startdir
resultsfile=
"output/cc_results_sub.txt"
echo
'results from main_sub.bat'
>
$resultsfile
echo
'nHneut='
"$nHneut"
>>
$resultsfile
echo
'nHplus='
"$nHplus"
>>
$resultsfile
echo
'naddit='
"$naddit"
>>
$resultsfile
echo
$KWcodedir
>>
$resultsfile
echo
$OBcodedir
>>
$resultsfile
rm 'sub_HiggsBounds_results.dat'
rm 'SM_results.dat'
rm 'Key.dat'
rm 'HBsub_input.dat'
rm 'debug_channels.txt'
for
whichinput in 'part' 'effC' 'hadr'; do
#for whichinput in 'hadr';
do
for
whichexpt in 'LandH' 'onlyL' 'onlyH' 'onlyP'; do
# for whichexpt in 'onlyL';
do
rm
"$startdir"
'/output/HiggsBounds_results_KW.dat'
rm
"$startdir"
'/output/SM_results_KW.dat'
rm
"$startdir"
'/output/Key_KW.dat'
rm
"$startdir"
'/output/HiggsBounds_results_OB.dat'
rm
"$startdir"
'/output/SM_results_OB.dat'
rm
"$startdir"
'/output/Key_OB.dat'
rm
"$startdir"
'/output/debug_channels.txt'
#gfortran ./HBsubroutines_0-3.f90 -o ./HBsubroutines_0-3.exe -L$KWcodedir -lHB
gfortran ./HBsubroutines_0-6.F -ffixed-line-length-none -o ./HBsubroutines_0-6.exe -L$KWcodedir -lHB
echo
'started running with KW subroutines and' $whichexpt $whichinput 'at' $(date)
#./HBsubroutines_0-5.exe $whichexpt $whichinput
&>
output/temp1.txt
./HBsubroutines_0-6.exe $whichexpt $whichinput
#the nH is a dummy too
echo
'finished running with KW subroutines and' $whichexpt $whichinput 'at' $(date)
mv 'sub_HiggsBounds_results.dat'
"$startdir"
'/output/HiggsBounds_results_KW.dat'
mv 'SM_results.dat'
"$startdir"
'/output/SM_results_KW.dat'
mv 'Key.dat'
"$startdir"
'/output/Key_KW.dat'
mv 'HBsub_input.dat'
"$startdir"
'/output/HBsub_input_KW.dat'
mv
"$startdir"
'/debug_channels.txt'
"$startdir"
'/output/debug_channels.txt'
mv
"$startdir"
'/debug_predratio.txt'
"$startdir"
'/output/debug_predratio.txt'
gfortran ./HBsubroutines_0-6.F -ffixed-line-length-none -o ./HBsubroutines_0-6.exe -L$OBcodedir -lHB
echo
'started running with OB subroutines and' $whichexpt $whichinput 'at' $(date)
./HBsubroutines_0-6.exe $whichexpt $whichinput
>
output/temp.txt
echo
'finished running with OB subroutines and' $whichexpt $whichinput 'at' $(date)
mv 'sub_HiggsBounds_results.dat'
"$startdir"
'/output/HiggsBounds_results_OB.dat'
mv 'SM_results.dat'
"$startdir"
'/output/SM_results_OB.dat'
mv 'Key.dat'
"$startdir"
'/output/Key_OB.dat'
mv 'HBsub_input.dat'
"$startdir"
'/output/HBsub_input_OB.dat'
echo
'*' $whichinput $whichexpt '*'
>>
$resultsfile
##could be useful for debugging:
#echo 'is the input the same?'
#diff
"$startdir"
'/output/HBsub_input_KW.dat'
"$startdir"
'/output/HBsub_input_OB.dat'
gfortran extra_for_compare_code_results.f90 compare_code_results_0-7.f90 -o compare_code_results_0-7.exe
echo
'about to do'
echo
"$nHneut $nHplus $naddit $whichexpt >> $resultsfile"
./compare_code_results_0-7.exe $nHneut $nHplus $naddit $whichexpt
>>
$resultsfile
done
done
echo
"need to compare SM_results.dat also :do diff "
$startdir
"/output/SM_results_KW.dat "
$startdir
"/output/SM_results_OB.dat"
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Wed, May 14, 11:22 AM (16 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5009970
Default Alt Text
main_sub.bat (3 KB)
Attached To
rHIGGSBOUNDSSVN higgsboundssvn
Event Timeline
Log In to Comment