]> hackdaworld.org Git - physik/posic.git/commitdiff
check whether transformed selective dynamics are used and change offset
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Fri, 23 Oct 2009 12:22:17 +0000 (14:22 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Fri, 23 Oct 2009 12:22:17 +0000 (14:22 +0200)
vasp_tools/visualize_contcar

index d272d181ab23c450fc4978e6f2922d4696277c28..f25d1552efc6b5cc9475de17e54d6f27bed63c72 100755 (executable)
@@ -223,7 +223,14 @@ EOF
 
        # atoms
        ((count=1))
-       ((offset=8))
+       checktsd=`sed -n 7p $file | awk '{ print $1 }'`
+       if [ "$checktsd" = "Transformed" ]; then
+               ((offset=9))
+               echo "tsd: yes, offset = $offset"
+       else
+               ((offset=8))
+               echo "tsd: no, offset = $offset"
+       fi
        while [ "1" ]; do
 
        echo -en "$count "