Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleBash skripta
linenumberstrue
#!/bin/bash

#PBS -q cpu
#PBS -l select=16
#PBS -N orca

MPI_NUM_PROCESSES=$(cat ${PBS_NODEFILE} | wc -l)  cd

cd ${PBS_O_WORKDIR}

module load scientific/orca/5.0.4

# Prilagodi input datoteku za paralelno izvodjenje
sed -i "2i %PAL NPROCS ${MPI_NUM_PROCESSES} END" hydrolysis.inp

# Poziv aplikacije
${ORCA_ROOT}/orca hydrolysis.inp

# Resetiraj input datoteku
sed -i "2d" hydrolysis.inp

...