#!/bin/csh #if ( $#argv == 0 || x"$1" == "x-h" ) then if ( x"$1" == "x-h" ) then cat - <! ${prefix}_ref.in echo ${prefix}_ref.in file created with 0 as reference energies. echo Type emc2tc -h for more help endif if ( ! -e ${prefix}_head.in ) then cat - >! ${prefix}_head.in <! ${prefix}_tc.out if ( "$energy" == "GMR" ) then awk '{print ((1+$4)/2), ($5+$2*$4)}' ${prefix}_mc.in | \ awk 'BEGIN {getline < "'${prefix}_ref.in'"; a=$1; b=$2} {print ($1), (($2-(1-$1)*a-($1*b))*96325)}' >> ${prefix}_tc.out else awk '{print ((1+$4)/2), ($3+$2*$4)}' ${prefix}_mc.in | \ awk 'BEGIN {getline < "'${prefix}_ref.in'"; a=$1; b=$2} {print ($1), (($2-(1-$1)*a-($1*b))*96325)}' >> ${prefix}_tc.out endif echo TABLE-END >> ${prefix}_tc.out