Skip to content

Commit

Permalink
[lhe] madgraph5#563 in madX.sh print out how many good/total heliciti…
Browse files Browse the repository at this point in the history
…es exist
  • Loading branch information
valassi committed Dec 11, 2022
1 parent 69e69fe commit 1b0433d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions epochX/cudacpp/tmad/madX.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,15 @@ function runmadevent()
$timecmd $cmd < ${tmpin} > ${tmp}
if [ "$?" != "0" ]; then echo "ERROR! '$timecmd $cmd < ${tmpin} > ${tmp}' failed"; tail -10 $tmp; exit 1; fi
omp=$(cat ${tmp} | grep --binary-files=text 'omp_get_max_threads() =' | awk '{print $NF}')
nghel=$(cat ${tmp} | grep --binary-files=text 'NGOODHEL =' | awk '{print $NF}')
ncomb=$(cat ${tmp} | grep --binary-files=text 'NCOMB =' | awk '{print $NF}')
fbm=$(cat ${tmp} | grep --binary-files=text 'FBRIDGE_MODE =' | awk '{print $NF}')
nbp=$(cat ${tmp} | grep --binary-files=text 'VECSIZE_USED =' | awk '{print $NF}')
mch=$(cat ${tmp} | grep --binary-files=text 'MULTI_CHANNEL =' | awk '{print $NF}')
conf=$(cat ${tmp} | grep --binary-files=text 'Running Configuration Number:' | awk '{print $NF}')
chid=$(cat ${tmp} | grep --binary-files=text 'CHANNEL_ID =' | awk '{print $NF}')
echo " [OPENMPTH] omp_get_max_threads/nproc = ${omp}/$(nproc)"
echo " [NGOODHEL] ngoodhel/ncomb = ${nghel}/${ncomb}"
echo " [XSECTION] VECSIZE_USED = ${nbp}"
echo " [XSECTION] MultiChannel = ${mch}"
echo " [XSECTION] Configuration = ${conf}"
Expand Down

0 comments on commit 1b0433d

Please sign in to comment.