User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tcr_sri002 [2020/04/26 21:40] tmatejuktcr_sri002 [2023/08/01 01:08] (current) – external edit 127.0.0.1
Line 36: Line 36:
 ==== sbatch example ==== ==== sbatch example ====
 Use Quantum Espresso 6.5. This description assumes that path to binaries is ''/home/users/${USER}/soft/qe-6.5/bin'' . Use bellow ''qe-test.sbatch'' file to run computation. Use Quantum Espresso 6.5. This description assumes that path to binaries is ''/home/users/${USER}/soft/qe-6.5/bin'' . Use bellow ''qe-test.sbatch'' file to run computation.
-  #!/bin/bash+  #!/bin/bash -l
   #SBATCH --job-name="qe-test_N2_n32"   #SBATCH --job-name="qe-test_N2_n32"
   #SBATCH --nodes=2                   # number of computing_nodes   #SBATCH --nodes=2                   # number of computing_nodes
Line 47: Line 47:
      
   WORKDIR="/home/users/${USER}/soft_tests/qe_run_`date +%s`_${RANDOM}/"   WORKDIR="/home/users/${USER}/soft_tests/qe_run_`date +%s`_${RANDOM}/"
-  mkdir -p ${WORKDIR} +  mkdir -p ${WORKDIR} 
 +  cd ${WORKDIR} 
 +  
   export BIN_DIR="/home/users/${USER}/soft/qe-6.5/bin"   export BIN_DIR="/home/users/${USER}/soft/qe-6.5/bin"
   export PATH=${BIN_DIR}:$PATH   export PATH=${BIN_DIR}:$PATH
   export PSEUDO_DIR=${WORKDIR}   export PSEUDO_DIR=${WORKDIR}
   export TMP_DIR="/tmp"   export TMP_DIR="/tmp"
-   +     
-  mkdir -p ${WORKDIR} +
-  cd ${WORKDIR} +
   #copy input files and pseudo files to ${WORKDIR}    #copy input files and pseudo files to ${WORKDIR} 
   cp /home/users/${USER}/downloads/quantum_espresso_input_files/* ${WORKDIR}   cp /home/users/${USER}/downloads/quantum_espresso_input_files/* ${WORKDIR}

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information