avgrst fix + introduced px,py,pz into moldyn (for future use)
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Tue, 29 Apr 2008 15:24:19 +0000 (17:24 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Tue, 29 Apr 2008 15:24:19 +0000 (17:24 +0200)
mdrun.c
moldyn.h
runmd
runmd_rx200

diff --git a/mdrun.c b/mdrun.c
index 8c5cf71..31abd1c 100644 (file)
--- a/mdrun.c
+++ b/mdrun.c
@@ -630,9 +630,9 @@ int chsattr(t_moldyn *moldyn,t_mdrun *mdrun) {
        }
        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;
index 0f37a35..cd7c5d0 100644 (file)
--- a/moldyn.h
+++ b/moldyn.h
@@ -145,6 +145,7 @@ typedef struct s_moldyn {
 
        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 */
 
diff --git a/runmd b/runmd
index c09780c..5db09fd 100755 (executable)
--- a/runmd
+++ b/runmd
@@ -12,6 +12,8 @@ fi
 
 ./clean $1
 
+cp -v config $1/config
+
 ./mdrun -c ./config -s $1
 
 if [ "$?" == "0" ]; then
@@ -30,8 +32,5 @@ 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
index 1bf24f8..9368141 100755 (executable)
@@ -7,8 +7,11 @@ if [ ! -f ./config ]; then
 fi
 
 [ ! -d $1 ] && mkdir $1
+
 ./clean $1
 
+cp -v config $1/config
+
 # create run file
 rf=`basename $1`
 cat > run_$rf <<-EOF
@@ -37,8 +40,5 @@ if [ "$?" == "0" ]; then
                # 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