Skip to content


CASTEP is software for calculating the properties of materials. It models various properties including energetics, atomic structure, vibrational properties, electronic response etc.

CASTEP is available as a module on Apocrita. Both serial (castep.serial) and MPI versions (castep.mpi) are available.


CASTEP requires avx2 instructions and therefore must be run on SDV or NXV nodes. This can be achieved using the -l avx2 option in your job script. For InfiniBand jobs the -l infiniband= setting will select the appropriate nodes for you (either sdv-i,sdv-ii or nxv).

module load castep
castep <seedname>                : Run files <seedname>.cell [and <seedname>.param]
  "    [-d|--dryrun] <seedname>  : Perform a dryrun calculation on files <seedname>.cell
  "    [-s|--search] <text>      : print list of keywords with <text> match in description
  "    [-v|--version]            : print version information
  "    [-h|--help] <keyword>     : describe specific keyword in <>.cell or <>.param
  "         "      all           : print list of all keywords
  "         "      basic         : print list of basic-level keywords
  "         "      inter         : print list of intermediate-level keywords
  "         "      expert        : print list of expert-level keywords
  "         "      dummy         : print list of dummy keywords


To use castep you must contact us and provide evidence that you have a licence to use the software.

Example jobs

Note the use of ${NSLOTS} in the parallel example to ensure that cores are used properly.

Serial job

Here is an example job running on 4 cores:

#$ -cwd
#$ -j y
#$ -pe smp 4
#$ -l h_rt=1:0:0
#$ -l h_vmem=2G
#$ -l avx2

module load castep/18.1-intel
castep.serial diamond

Parallel job

Here is an example job running on 64 cores (2 nxv hosts using MPI):

#$ -cwd
#$ -j y
#$ -pe parallel 64
#$ -l infiniband=nxv
#$ -l h_rt=1:0:0

module load castep/18.1-intel
mpirun -np ${NSLOTS} castep.mpi hex