# PATHSAMPLE + OPTIM + ORCA: several OPTIM jobs at once (SLURM keyword)

CHECKMIN 1 4 on an N6 GFN2-xTB database at wB97X-D3/cc-pVDZ, with 2 OPTIM jobs side by side (`--ntasks=2`),
each with 3 ORCA cores (`--cpus-per-task=3`).
`SLURM` makes PATHSAMPLE read `nodes.info` (written by job.sh) and start each OPTIM job as
`srun -n1 -N1 --exclusive -c3` in its own `<id>-tempcopyfiles` folder, so ORCA's fixed file names don't collide.
`CPUS` is ignored with SLURM. Without SLURM, CPUS > 1 runs all OPTIM jobs in one folder (they overwrite each other).
CYCLES x (jobs at once) must be >= the number of points checked (job.sh checks this).
Run: `sbatch job.sh` (~10 min). Output: `output`, `OPTIM.checksp.*`, `convcheck.*`, `min.data.info.*`.
Expected: nodes.info line 1 "2 3"; "Running on 2 processors for distributed memory SLURM setup"; 4/4 converged.

ORCA and MPI: job.sh swaps the Open MPI 5.0.5 of module orca/6.1.1 for 4.1.7 (5.0.5 now and then segfaults inside
ORCA; the "reloaded with a version change" message in slurm-*.out is expected) and turns core binding off.
The ORCA line of the odata files runs `./orca_retry.sh`, which runs ORCA and reruns a failed call (up to 3 times);
COPYFILES in pathdata puts a copy in every OPTIM job folder, with or without RUNLOCAL. Failures are logged in
`orca_failures/failures.log` in this folder, and job.sh prints a NOTE if that file exists. A hung call is not caught.

`expected_output/`: output and nodes.info from a run of this folder (Pat, 5 Nov 2026; user and node names replaced).
