From 35c146f98c24f0a72a3c6f06f2f6a1a776c26f69 Mon Sep 17 00:00:00 2001 From: hackbard Date: Thu, 24 Sep 2009 18:45:18 +0200 Subject: [PATCH] check for existing stuff --- vasp_tools/stdvis | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vasp_tools/stdvis b/vasp_tools/stdvis index 2c1dd5a..c108a8d 100755 --- a/vasp_tools/stdvis +++ b/vasp_tools/stdvis @@ -15,6 +15,12 @@ if [ "$type" != "disp" ]; then for i in $1/video*; do + if [ -f $i/stdvis ]; then + echo "$i already visualized ..." + continue + else + touch $i/stdvis + fi # first unit cell in each direction without rotation if [ "$type" = "default" -o "$type" = "1" ]; then @@ -23,7 +29,7 @@ echo "type: 1 no rotation" -nll -0.20 -0.20 -0.50 -fur 1.20 1.20 1.20 \ -b 0.0 0.0 0.0 1.0 1.0 1.0 \ -c 0.8 -1.7 0.9 -L 0.5 -1.0 0.5 \ - -r 0.6 + -r 0.6 -A 193 1.9 fi # first unit cell in each direction without rotation displaying mirrored atoms @@ -33,7 +39,8 @@ echo "type: 1 no rotation, mirrored" -nll -0.20 -0.20 -0.50 -fur 1.20 1.20 1.20 \ -b 0.0 0.0 0.0 1.0 1.0 1.0 \ -c 0.8 -1.7 0.9 -L 0.5 -1.0 0.5 \ - -r 0.6 -m 3.0 0.0 0.0 0.0 3.0 0.0 0.0 0.0 3.0 + -r 0.6 -m 3.0 0.0 0.0 0.0 3.0 0.0 0.0 0.0 3.0 \ + -A 193 1.9 fi # three unit cells in each direction without rotation -- 2.39.2