X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fposic.git;a=blobdiff_plain;f=vasp_tools%2Fvisualize_contcar;h=f25d1552efc6b5cc9475de17e54d6f27bed63c72;hp=d272d181ab23c450fc4978e6f2922d4696277c28;hb=db49cd6cbc99fbd7a0fe8821053f096de821ce6d;hpb=f5f06f39f0951cc5f1fcb199c2d5dc56094688a2 diff --git a/vasp_tools/visualize_contcar b/vasp_tools/visualize_contcar index d272d18..f25d155 100755 --- a/vasp_tools/visualize_contcar +++ b/vasp_tools/visualize_contcar @@ -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 "