Details on the GROMACS package. How to access, and run the program.

Useful Links


GROMACS is open source software.


As it is open source software, the GROMACS source and binaries are available to all users.


To run GROMACS you need to add the correct module to your environment. You can load the default GROMACS module with:

module add gromacs

Once you have added the module you will have access to the GROMACS executables in your path. The executables are classified according to the suffix. The available suffices on ARCHER are:

  • _mpi_d - parallel, double-precision executables.
  • _mpi - parallel, single-precision executables.
  • _d - serial, double-precision executables.
  • *no suffix* - serial, single-precision executables.

Example Job Submission Script

An example GROMACS job submission script is shown below.

#!/bin/bash --login

# Select 128 nodes (maximum of 3072 cores)
#PBS -l select=128

#PBS -l walltime=00:05:00

# Replace this with your budget code
#PBS -A budget

# Move to directory that script was submitted from
export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)

# Load the GROMACS module 
module add gromacs

# Run GROMACS using default input and output file names
aprun -n 3072 mdrun_mpi


Compilation isntructions for older versions of GROMACS: