Editing
Savecalc
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
go back to [[Main Page]], [[Group Pages]], [[Núria López and Group]], [[Scripts_for_VASP]], [[rungen]] This script is designed to save the most important output files from a run, in case you need to do long ionic optimizations involving several runs. Advice: Use it as a security control in your run generator (see [[rungen]]), to avoid the accidental loss of information for submitting a job without previously moving the CONTCAR file into the new POSCAR. For more information: rgarcia@iciq.es == script == #!/bin/bash # Rodrigo García-Muelas. April 2013. if [ -e STOPCAR ] ; then rm STOPCAR ; fi # security comprobation if [ -e CONTCAR ] ; then # exist if [ -s CONTCAR ] ; then # nonzero lenght # do I need to account? if [ -e poscar_1 ] ; then # count i=0 j=0 while [ $j = 0 ] ; do i=$[$i+1] if <nowiki>[[ -e poscar_$i ]]</nowiki> ; then j=0 ; else j=1 ; fi done # save files mv POSCAR poscar_$i mv OUTCAR outcar_$i mv CONTCAR POSCAR mv OSZICAR oszicar_$i mv vasprun.xml vasprun_$i.xml else mv POSCAR poscar_1 mv OUTCAR outcar_1 mv CONTCAR POSCAR mv OSZICAR oszicar_1 mv vasprun.xml vasprun_1.xml fi else rm CONTCAR # if zero lenght fi fi
Summary:
Please note that all contributions to Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information