avgrst fix + introduced px,py,pz into moldyn (for future use)
[physik/posic.git] / runmd
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