}
if(csp->type&CHSATTR_AVGRST) {
if(csp->avgrst)
- mdrun->sattr|=CHSATTR_AVGRST;
+ mdrun->sattr|=SATTR_AVGRST;
else
- mdrun->sattr&=(~(CHSATTR_AVGRST));
+ mdrun->sattr&=(~(SATTR_AVGRST));
}
if(csp->type&CHSATTR_RSTEPS) {
mdrun->relax_steps=csp->rsteps;
double p_ref; /* reference pressure */
double p; /* actual pressure (computed by virial) */
+ double px,py,pz; /* components of pressure */
double p_sum; /* sum over all p */
double p_avg; /* average value of p */
./clean $1
+cp -v config $1/config
+
./mdrun -c ./config -s $1
if [ "$?" == "0" ]; then
# old rasmol
#rasmol -32 -nodisplay < $1/visualize.scr > /dev/null 2>&1
./ppm2avi $1
-
- # copy config
- cp -v config $1/config
fi
fi
fi
[ ! -d $1 ] && mkdir $1
+
./clean $1
+cp -v config $1/config
+
# create run file
rf=`basename $1`
cat > run_$rf <<-EOF
# old rasmol
#rasmol -32 -nodisplay < $1/visualize.scr > /dev/null 2>&1
#./ppm2avi $1
-
- # copy config and main prog
- cp -v config $1/config
fi
fi