const t_atom* atom;
writeHeader(writer, "Simulation system", "subsection", writeFormattedText);
- aloop = gmx_mtop_atomloop_block_init(&top);
+ aloop = gmx_mtop_atomloop_block_init(top);
while (gmx_mtop_atomloop_block_next(aloop, &atom, &nmol))
{
if (atom->ptype == ParticleType::VSite)