#Set the number of parallel cores and maximum memory utilized by each core (MB)
nprocs=20
maxcore=1000
#Set calculation level
level="r2SCAN-3c"
#Set parameters for other aspects
numset="tightscf noautostart"
cpcmset="epsilon=32.17 refrac=1.47"
#ORCA executable path
orcapath="..."
read atoms derivs charge spin < $2
if [ $derivs == "2" ] ; then
task="engrad freq"
elif [ $derivs == "1" ] ; then
task="engrad"
fi