Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
faq:chimie:orca [2020/01/30 10:20] – [Submission script] tjiangfaq:chimie:orca [2022/03/03 16:30] (Version actuelle) – [Submission script] tjiang
Ligne 5: Ligne 5:
 #$ -S /bin/bash #$ -S /bin/bash
 #$ -N Orca #$ -N Orca
-#$ -cwd +#$ -cwd
 #$ -V #$ -V
 #$ -q  E5-2667v4deb256A,E5-2697Av4deb256,M6*,E5-2670deb256* #$ -q  E5-2667v4deb256A,E5-2697Av4deb256,M6*,E5-2670deb256*
 #$ -pe mpi32_debian 32 #$ -pe mpi32_debian 32
- 
  
 module use /home/tjiang/modules/lmod module use /home/tjiang/modules/lmod
 module load orca/4_0_1_2_linux_x86-64_openmpi202 module load orca/4_0_1_2_linux_x86-64_openmpi202
  
-input=RuExtrap.inp +input="RuExtrap.inp" 
-output=`basename $input .inp`.out +output=$(basename "${input}" .inp).out 
-export SCRATCHDIR=/scratch/Chimie/$USER/$JOB_ID + 
-#rm -rf $SCRATCHDIR +if [[ -d "/scratch/Chimie" ]] 
-mkdir -p $SCRATCHDIR+then 
 +    SCRATCHDIR="/scratch/Chimie/${USER}/${JOB_ID}/" 
 +elif [[ -d "/scratch/Lake" ]] 
 +then 
 +    SCRATCHDIR="/scratch/Lake/${USER}/${JOB_ID}/" 
 +elif [[ -d "/scratch/E5N" ]] 
 +then 
 +    SCRATCHDIR="/scratch/E5N/${USER}/${JOB_ID}/" 
 + 
 +else 
 +    echo "/scratch not found, cannot create ${SCRATCHDIR}" 
 +    exit 1 
 +fi 
 +echo "Creating scratch for this job: ${SCRATCHDIR}" 
 +mkdir -p "${SCRATCHDIR}"
  
-cd $SGE_O_WORKDIR +cd "${SGE_O_WORKDIR}" || { echo "cannot cd to ${SGE_O_WORKDIR}"; exit 1; } 
-cp $input  $SCRATCHDIR +cp "${input}"  "${SCRATCHDIR}" 
-cd  $SCRATCHDIR +cd  "${SCRATCHDIR}" || { echo "cannot cd to ${SCRATCHDIR}"; exit 1; } 
-orca $input > $SGE_O_WORKDIR/$output +/home/tjiang/softs/orca/4_0_1_2_linux_x86-64_openmpi202/orca "${input}" "${SGE_O_WORKDIR}/${output}" 
-cp $SGE_O_WORKDIR +cp -- outputfiles_only "${SGE_O_WORKDIR}" 
-cd $SGE_O_WORKDIR +cd "${SGE_O_WORKDIR}" || { echo "cannot cd to ${SGE_O_WORKDIR}"; exit 1; } 
-rm -rf $SCRATCHDIR/+rm -rf "${SCRATCHDIR}"
  
 </code> </code>
faq/chimie/orca.1580379600.txt.gz · Dernière modification : 2020/08/25 15:58 (modification externe)