]> hackdaworld.org Git - physik/posic.git/blob - runmd
optional elment and brand type in fill cmd now
[physik/posic.git] / runmd
1 if [ -z "$1" ]; then
2         echo "specify a directory for logging and save files"
3         exit
4 fi
5
6 if [ ! -f ./config ]; then
7         echo "no config file found"
8         exit
9 fi
10
11 [ ! -d $1 ] && mkdir $1
12
13 ./clean $1
14
15 cp -v config $1/config
16
17 time ./mdrun -c ./config -s $1
18
19 if [ "$?" == "0" ]; then
20         #./perms
21         if [ "$1" ] ; then
22                 # whole simulation cell
23                 #./visualize -w 640 -h 480 -d $1
24
25                 # center unit cell
26                 ./visualize -w 640 -h 480 -d $1 \
27                             -nll -0.56 -0.56 -0.56 -fur 0.56 0.56 0.56 \
28                             -b -0.5 -0.5 -0.5 0.5 0.5 0.5 \
29                             -c -0.2 -2.0 0.6 -L 0 0 -0.1 \
30                             -r 0.6 -B 0.1
31
32                 # old rasmol
33                 #rasmol -32 -nodisplay < $1/visualize.scr > /dev/null 2>&1
34                 ./ppm2avi $1
35         fi
36 fi