GROMACS version:
GROMACS modification: Yes or No
Here post your question :
The *.gro file created by gmx has a problem.
(I’m using both gmx_mpi version 2023.3 and gmx 2024.2, and the bug appears the same.)
The third column of my_config.gro contains the atom number, say num_atom. When num_atom is 10000 to 99 999, it abuts the second column. Technically this is not yet a bug, because MatLab and Fortran could read this easily, but for CSV readers, this poses a complication because the number of columns appears to change from 9 to 8.
At num_atom 100 000 to 109 999, the atom numbering is wrong. It restarts at 0, 1, 2 …, leaving enough space for 9 columns again, but with wrong atom number. At 110 000 atoms, the columns join again. This pattern repeats.
Voila, I’ve reported this (perhaps harmless and well-known) bug.
It has become an issue because I’d like to read and edit gro files (in order to reconfigure the computational domain of a long simulation, Topic posted separately).
If I try to find and fix the c++ code that generates these problems in gro files, I’m afraid that that will break the routines that read these files.
Perhaps one of the developers could advice me if it would be sensible to modify the program that generates gro files ? At least on my laptop installation. (I’m not going to reinstall on the cray super computer I’m running gmx_mpi mdrun.) Would the read routines be robust to reading differently (simply with a bigger space between columns 2 and 3) formatted gro files ?