LAMMPS on DARWIN
A Slurm job submission script template for batch LAMMPS jobs is available at /opt/shared/templates/slurm/applications/lammps.qs. Copy and edit the template based on your job's resource needs; the comments in the template describe each Slurm option and environment variable present.
/opt/shared/templates/slurm/applications for changes in existing templates, or the addition of new templates, designed to provide the best performance for a particular version of LAMMPS on that cluster.
At the very least, the LAMMPS input file variable must be altered accordingly:
# # [EDIT] Indicate your LAMMPS input file (mandatory) # LAMMPS_INPUT="in.indent"
Also keep in mind, the default version of LAMMPS is loaded via VALET in the job submission script template and the default version may change over time based on new releases and bug fixes that indicate an older version should no longer be used. Below is the VALET command specified in the job submission script template
# # [EDIT] Load some version of LAMMPS into the job environment # vpkg_require lammps/default
Based on the versions of LAMMPS available from vpkg_versions lammps, we might see something like this
$ vpkg_versions lammps Available versions in package (* = default version): [/opt/shared/valet/2.1/etc/lammps.vpkg_yaml] lammps Large-scale Atomic/Molecular Massively Parallel Simulator 2Aug2023 compiled with Intel oneAPI compilers, MKL, Open MPI, and Python 3.8 * 29Oct2020 compiled with Intel compilers, MKL, Open MPI, and Python 2.7
if we want to specify the 2Aug2023 instead of the default version (29Oct2020) indicated by the *, then we would change the job submission script to the following
# # [EDIT] Load some version of LAMMPS into the job environment # vpkg_require lammps/2Aug20
The job submission script template sources an external script to complete the setup of the job environment. You should never delete parts of the template or comment out any option unless you see [EDIT] instructions.