Vasp.sh: Difference between revisions

From Wiki
Jump to navigation Jump to search
New page: go back to Main Page, Computational Resources, Scripts, Scripts for VASP The script ''vasp.sh'' prepares and submits a .sub file to the queue you want to run it. '''Scri...
 
Maxgarcia (talk | contribs)
No edit summary
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
go back to [[Main Page]], [[Computational Resources]], [[Scripts]], [[Scripts for VASP]]
Go back to [[Main Page]], [[Computational Resources]], [[Scripts]], [[Scripts for VASP]]




The script ''vasp.sh'' prepares and submits a .sub file to the queue you want to run it.
The script '''''vasp.sh''''' is a very simple script that prepares and submits a ''.sub'' file to the queue where you want to run it.


'''Script Syntax''': ''vasp-job.sh jobname queuename number_of_processors''
 
                ''queue'' is the type of processor where you want to run the job
'''Script Syntax''': ''vasp.sh job queue proc''  
                ('''c0''':mono; q0:quad; c4m8:4cores with 8GB; c8m24:8cores with 24GB; c12m48ib:12cores with 48GB and Infini Band).
                ''proc'' is the number of processors do you want to use for the calculation.
                Available options: c0 q0 c4m8 c8m24
                ''proc'' is the number of processors
                  
                  
''job'' is the name of the job you want to run with VASP.


'''Example''':  you are in the directory ~/Trabajo/blabla and run  ''adjust.sh q0 16 '' ==> the scripts prepares a file called ''blabla.sub'' ready to be run with qsub on q0, 16 procs (tekla1).
''queue'' is the type of processor where you want to run the job.
 
      (Available Options: '''c0''':mono; '''q0''':quad; '''c4m8''':4cores with 8GB; '''c8m24''':8cores with 24GB; '''c12m48ib''':12cores with 48GB and Infini Band).
'''Output file''': ''dir.sub'' (where ''dir'' is the directory where you are)
 
'''Used files/subprograms''': ''proto1.sub, proto2.sub''
 


''proc'' is the number of processors you want to use for the calculation.               


'''Example''':  ''vasp.sh example c4m8 16''  ==>  the script prepares and submits a file called ''example.sub'' to the c4m8 queue using 16 procs (from ''tekla2'').


== INSTALLATION STEPS ==


== INSTALLATION STEPS ==




1) First of all, download the program:
1) Download and uncompress the script:


      [[Image:adjust.tgz]]
[[Image:vasp.tgz]]


and the files:
2) Edit the script vasp.sh and in lines 50 and 82 change ''maxgarcia'' by your ICIQ's e-mail account (I don't want to receive an e-mail every time you submit a job to the cluster!)


      [[Image:proto1.tgz]], [[Image:proto2.tgz]]
3) If you want to run this script from whatever directory you are working on, save it into a directory that exists in your $PATH (check it by typing: ''echo $PATH'').


and uncompress them. Place the files proto1.sub and proto2.sub in a directory of your choice, named for simplicity directory A.
4) Now you can run the script typing:


''vasp.sh job queue proc''


2) Go to line 35 of adjust.sh and change the path with the path of the directory A. For example:
 
dir=/hombe/lbellarosa/bin/scripts/VASP ===> dir=/home/nlopez/Trabajo/abracadabra/VASP


'''IMPORTANT NOTES:''' 


3) Now you can run the script typing:
- This script uses ''vasp_4.6'' for jobs to be run in ''tekla'' and ''vasp_5.2'' for those to be run in ''tekla2''.


      adjust.sh queue processors
- By default, this script removes the files WAVECAR, CHG and CHGCAR. If you need them, just remove from the line 66 and 103 of the script vasp.sh the following: ''rm CH* W*''

Latest revision as of 20:03, 25 September 2012

Go back to Main Page, Computational Resources, Scripts, Scripts for VASP


The script vasp.sh is a very simple script that prepares and submits a .sub file to the queue where you want to run it.


Script Syntax: vasp.sh job queue proc

job is the name of the job you want to run with VASP.
queue is the type of processor where you want to run the job.
      (Available Options: c0:mono; q0:quad; c4m8:4cores with 8GB; c8m24:8cores with 24GB; c12m48ib:12cores with 48GB and Infini Band).
proc is the number of processors you want to use for the calculation.                 

Example: vasp.sh example c4m8 16 ==> the script prepares and submits a file called example.sub to the c4m8 queue using 16 procs (from tekla2).


INSTALLATION STEPS[edit]

1) Download and uncompress the script:

File:Vasp.tgz

2) Edit the script vasp.sh and in lines 50 and 82 change maxgarcia by your ICIQ's e-mail account (I don't want to receive an e-mail every time you submit a job to the cluster!)

3) If you want to run this script from whatever directory you are working on, save it into a directory that exists in your $PATH (check it by typing: echo $PATH).

4) Now you can run the script typing:

vasp.sh job queue proc


IMPORTANT NOTES:

- This script uses vasp_4.6 for jobs to be run in tekla and vasp_5.2 for those to be run in tekla2.

- By default, this script removes the files WAVECAR, CHG and CHGCAR. If you need them, just remove from the line 66 and 103 of the script vasp.sh the following: rm CH* W*