Skip to content

GROMACS 2026.4 with CP2K 2026.2 (QM/MM) container image

1. What this image is

firesimulations/gromacs:2026.4-cp2k2026.2-r1 has GROMACS 2026.4 and CP2K 2026.2 in one installation: gmx mdrun calls CP2K as a library (libcp2k) to compute the quantum (QM) part of a QM/MM simulation, and GROMACS does the classical (MM) part. It is CPU only and double precision, on Ubuntu 26.04, and also contains stand-alone cp2k.psmp from the same build. Linux amd64 only.

2. Tags and versions

Tag Contents
2026.4-cp2k2026.2-r1 GROMACS 2026.4 (double) linked to CP2K 2026.2, plus cp2k.psmp

Tag pattern: <GROMACS version>-<add-on><version>-r<N>.

A published tag never changes; a changed image gets the next -rN (tags and revisions). Digests and DOIs: release notes.

3. Get the image

docker pull firesimulations/gromacs:2026.4-cp2k2026.2-r1
docker pull firesimulations/gromacs@sha256:<digest of the release note>   # byte-exact; preferred in papers

Without Docker Hub, download the archive from the Zenodo record of the tag and follow load an image from Zenodo. See also verify an image.

4. Quick start

docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/work" -e OMP_NUM_THREADS=2 firesimulations/gromacs:2026.4-cp2k2026.2-r1 gmx mdrun -s run.tpr -deffnm run -ntmpi 1 -ntomp 2
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/work" -e OMP_NUM_THREADS=2 firesimulations/gromacs:2026.4-cp2k2026.2-r1 gmx mdrun -s run.tpr -deffnm run -ntmpi 1 -ntomp 2
docker run --rm -v "${PWD}:/work" -e OMP_NUM_THREADS=2 firesimulations/gromacs:2026.4-cp2k2026.2-r1 gmx mdrun -s run.tpr -deffnm run -ntmpi 1 -ntomp 2

There is no entrypoint: the command follows the image name. The working directory is /work. With the thread-MPI program only one rank can run QM/MM (-ntmpi 1); for several ranks use gmx_mpi (section 6). Programs: gmx (thread-MPI) and gmx_mpi (MPI), each at the SSE2 and AVX2_256 level; a launcher picks the best level (GMX_SIMD=SSE2 forces the portable one).

5. What is inside

Component Content
GROMACS 2026.4 double precision, static, GMX_CP2K=ON, no GPU, no hwloc; gmx and gmx_mpi at SSE2 and AVX2_256 (/gromacs/bin.SSE2, /gromacs/bin.AVX2_256; /gromacs/bin/gmx is the launcher)
CP2K 2026.2 /opt/cp2k (cp2k.psmp, libcp2k.so, data in share/cp2k/data, CP2K_DATA_DIR set)
Open MPI 5.0.10, OpenBLAS 0.3.33, ELPA the single copies both programs load (/opt/cp2k-toolchain/install/...)
FFTW 3.3.11 the CP2K build; GROMACS uses the FFTW symbols exported by libcp2k.so, so there is one FFTW in the process
CP2K features Libint (hybrid functionals), Libxc, ELPA, tblite (xTB), DFT-D4/D3 and others; generic x86-64 build
Not in the image compiler, GPU support, PLUMED

The complete package list is software-versions.txt in each Zenodo record; the SBOM is sbom.spdx.json.

6. Usage guide

Preparing and running a QM/MM simulation

  1. Prepare the system with the usual GROMACS tools and equilibrate it classically. The box must be orthogonal (GROMACS 2026.1 and later refuse other cells).
  2. Put the QM atoms in an index group (gmx make_ndx), for example QM.
  3. Add to the .mdp file:
qmmm-cp2k-active         = true
qmmm-cp2k-qmgroup        = QM
qmmm-cp2k-qmmethod       = PBE        ; or BLYP, or INPUT with  gmx grompp -qmi cp2k_input.inp
qmmm-cp2k-qmcharge       = 0
qmmm-cp2k-qmmultiplicity = 1
  1. gmx grompp -f md.mdp -c conf.gro -p topol.top -n index.ndx -o run.tpr, then mdrun. Covalent bonds across the QM/MM boundary get link atoms automatically.
  2. Next to the run files you get <tpr name>_cp2k.inp, .out and .pdb (CP2K input, output and the MM point charges). The energy file has a Quantum En. term. Start with a few steps and read the CP2K output.

Several ranks (real MPI):

docker run --rm --shm-size=1g -u "$(id -u):$(id -g)" -v "$PWD:/work" firesimulations/gromacs:2026.4-cp2k2026.2-r1 mpirun -np 4 gmx_mpi mdrun -s run.tpr -deffnm run -pin off

As root add --allow-run-as-root. QM cost grows with the cube of the number of QM atoms. The default CP2K input GROMACS writes uses a 450 Ry grid, EPS_SCF 5e-8 and a 1 nm QM box (see <name>_cp2k.inp). The first QM step in a fresh container can be much slower than later steps on some machines.

7. Input and output conventions

Item Value
Working directory /work
Threads OMP_NUM_THREADS, -ntomp
Shared memory --shm-size=1g for several MPI ranks
Exit status non-zero on failure; SIGTERM stops mdrun, writes a checkpoint and a complete log

8. Performance and resources

Choose the layout explicitly and report it. QM/MM cost is dominated by CP2K. Results depend on the CP2K real-space grid position (see section 13).

9. Verification

docker run --rm firesimulations/gromacs:2026.4-cp2k2026.2-r1 gmx --version | grep -E 'GROMACS version|Precision|CP2K'

Expected: GROMACS 2026.4, double precision, CP2K support: enabled (version CP2K version 2026.2). Maintainers' checks before release (18–19 Nov 2026, Intel i7-13700): 69 of 69 checks as root and 64 of 64 as uid 4242 on a read-only root file system; a QM water reached −17.219026 Ha identically (1e-12 Ha) on thread-MPI and 1, 2 and 4 MPI ranks, and stand-alone CP2K on the same input agreed to 3.6e-6 Ha; one QM water in 1727 MM waters −17.237048 Ha with the same agreement; QM and MM forces matched finite differences (0.9 and 0.01 percent); an alanine dipeptide with link atoms ran with boundary forces within 0.2 to 4.6 percent of finite differences; a 400-step NVE run had total-energy RMSD 0.18 kJ/mol. GROMACS unit tests passed for every program and level (94 of 94 thread-MPI, 89 of 89 MPI, plus qmmm_applied_forces-test); the GROMACS regression suite (complex, essentialdynamics, double precision) 42 of 42 and 7 of 7; selected CP2K regression directories 99 of 99.

The release pipeline additionally ran the image's smoke test as the image user and as uid 4242 on a read-only root file system, scanned the image for fixable critical or high vulnerabilities and for embedded secrets, and recorded the results in the release note and in smoke-test-report.txt of the Zenodo record.

10. Reproducibility checklist for a paper

Record: the tag, the digest and the version DOI of the release note; the exact command lines; the SHA-256 of every input file; the .mdp file, the CP2K input written by GROMACS (*_cp2k.inp), the QM group definition, OMP_NUM_THREADS/-ntomp/rank counts and the SIMD level in the log header.

11. How to cite

Primary reference: this container image. If you use this image, cite its Zenodo record (the version DOI of the tag you used):

Noor, D. H. (2026). GROMACS 2026.4 with CP2K 2026.2 (QM/MM) container image (Version 2026.4-cp2k2026.2-r1+doc2) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.24628466

@software{scdoc_gromacs_cp2k_2026_4_cp2k2026_2_r1_doc2,
  author    = {Noor, Dilwar Hossain},
  title     = {GROMACS 2026.4 with CP2K 2026.2 (QM/MM) container image},
  version   = {2026.4-cp2k2026.2-r1+doc2},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24628466},
  url       = {https://doi.org/10.5281/zenodo.24628466}
}

All versions of this image line: concept DOI 10.5281/zenodo.24615978. Each Zenodo record also contains CITATION.cff and CITATION.bib; the release notes list every tag.

Secondary references: the programs inside this image. Please also cite the original publications of the programs you used:

  • GROMACS: Abraham, M. J. et al. (2015). SoftwareX 1–2, 19–25. https://doi.org/10.1016/j.softx.2015.06.001
  • CP2K: Kühne, T. D. et al. (2020). CP2K: An electronic structure and molecular dynamics software package – Quickstep: Efficient and accurate electronic structure calculations. J. Chem. Phys. 152, 194103. https://doi.org/10.1063/5.0007045
  • the QM/MM interface description in the GROMACS reference manual, and the force field and QM method you use.

12. Licences and source offer

Component Licence
Combined work (GROMACS linked to CP2K) GPL-2.0-or-later (CP2K is GPL, GROMACS LGPL)
GROMACS 2026.4 LGPL-2.1-or-later
CP2K 2026.2 GPL-2.0-or-later
FFTW 3.3.11 GPL-2.0-or-later
Open MPI, OpenBLAS BSD-3-Clause
Other CP2K libraries (Libint, Libxc, ELPA, tblite, DFT-D4/D3 and others) their own licences, listed in THIRD_PARTY_LICENSES.txt and the Zenodo record; licence texts of GROMACS and CP2K are in the image under /usr/share/doc/gromacs-cp2k

Source offer. The same unmodified source archives are also preserved in the Zenodo record 10.5281/zenodo.24615769 (file list and checksums in its SOURCES.md). Unmodified upstream sources: GROMACS https://ftp.gromacs.org/gromacs/gromacs-2026.4.tar.gz (SHA-256 58eda60979b124fcf9dff8b1b63cedfbc72fdb36d99e921dc1bdc310571098b6); CP2K https://github.com/cp2k/cp2k/releases/download/v2026.2/cp2k-2026.2.tar.bz2 (SHA-256 f9bd86f580f57a53a0768c0045d1417f9f9a1d66d851ed7f662f496200043373); the CP2K dependencies were downloaded and checksum-verified by CP2K's own toolchain scripts (tools/toolchain of that release; versions in section 5 and in software-versions.txt). No patches were applied.

Build options.

  • CP2K toolchain: install_cp2k_toolchain.sh --install-all --mpi-mode=openmpi --math-mode=openblas --with-gcc=system --with-dbcsr with ACE, DeePMD, libtorch, SIRIUS, SpFFT, SpLA, libvdwxc, SMEAGOL, GauXC, GreenX, TREXIO, HDF5, LibFCI, PLUMED and COSMA turned off.
  • CP2K (CMake): -DCMAKE_BUILD_TYPE=Generic -DCP2K_USE_EVERYTHING=ON with the same optional packages switched off (and DLA-Future, PEXSI, openPMD, MiMiC).
  • GROMACS (CMake): -DCMAKE_BUILD_TYPE=Release -DGMX_SIMD=<SSE2|AVX2_256> -DGMX_USE_RDTSCP=OFF -DGMX_GPU=OFF -DGMX_DOUBLE=ON -DGMX_OPENMP=ON -DGMX_HWLOC=OFF -DBUILD_SHARED_LIBS=OFF -DGMXAPI=OFF -DGMX_FFT_LIBRARY=fftw3 -DGMX_BUILD_OWN_FFTW=OFF with the FFTW and BLAS/LAPACK of the CP2K build, -DGMX_CP2K=ON; thread-MPI build -DGMX_MPI=OFF -DGMX_THREAD_MPI=ON, MPI build -DGMX_MPI=ON -DGMX_THREAD_MPI=OFF -DGMX_BINARY_SUFFIX=_mpi -DGMX_LIBS_SUFFIX=_mpi.

On request to the maintainer, the corresponding source will be provided for three years from the release date. The build recipe itself is not distributed.

13. Known limits and troubleshooting

  • Grid position effect. The QM/MM energy with MM charges depends on the position of the system on CP2K's real-space grid: rigid shifts of 0.1 Å changed an embedded energy by up to 2e-4 Ha (0.5 kJ/mol) with the default 450 Ry grid. Compare energies from the same setup, not across translations. GROMACS and CP2K agree on the same files to 4e-6 Ha.
  • Only one rank with gmx (-ntmpi 1); more ranks need gmx_mpi.
  • Not covered by tests: production-length QM/MM runs, NPT (the QM/MM virial is ignored), multi-node MPI, QM methods other than PBE, CPUs other than the AVX2 test machine. The GROMACS regression suite has no QM/MM case.
  • The old 2023.12.03.cp2k tag (GROMACS and CP2K side by side, never linked) is a different, frozen image.

14. Changelog

Tag Date Change
2026.4-cp2k2026.2-r1 2026-11-28 first release