Wrong variable being used was the issue instead of increase by one.
Miscellaneous
^^^^^^^^^^^^^
+Fixes the unexpected change in molecule indexing in output after simulation
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
+Molecule indices of repeat molecules are now again numbered consecutively as
+expected (instead of all `1`).
+
+:issue:`3575`
+
Fix ``INTERFACE_INCLUDE_DIRECTORIES`` for ``libgromacs`` CMake target
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if (localAtomNumber_ >= atoms_->nr)
{
- if (atoms_->nres <= mtop_->maxresnr)
+ if (atoms_->nres <= mtop_->maxres_renum)
{
/* Single residue molecule, increase the count with one */
highestResidueNumber_ += atoms_->nres;