occupied by smaller molecules. The bug does not affect the single
domain case.
+Fix index handling of N-body virtual sites with domain decomposition
+""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
+Incorrect indexing would be used to handle N-body virtual sites in
+the domain decomposition code. This would usually lead to crashes
+due to illegal or incorrect memory usage.
+
+:issue:`3635`
Fixes for ``gmx`` tools
^^^^^^^^^^^^^^^^^^^^^^^
{
add_vsite(*dd->ga2la, index, rtil, ftype, nral, TRUE, i, i_gl, i_mol, iatoms.data(), idef);
}
- j += 1 + nral + 2;
}
else
{
(*nbonded_local)++;
}
}
- j += 1 + nral;
}
+ j += 1 + nral_rt(ftype);
}
}