int *n_nonlin_vsite)
{
int ft, i;
- const t_ilist *il;
*n_nonlin_vsite = 0;
{
if (IS_VSITE(ft))
{
- il = &moltype->ilist[ft];
+ const InteractionList *il = &moltype->ilist[ft];
- for (i = 0; i < il->nr; i += 1+NRAL(ft))
+ for (i = 0; i < il->size(); i += 1+NRAL(ft))
{
const t_iparams *ip;
real inv_mass, coeff, m_aj;
verletbuf_atomtype_t *att;
int natt;
int ft, i, a1, a2, a3, a;
- const t_ilist *il;
const t_iparams *ip;
atom_nonbonded_kinetic_prop_t *prop;
real *vsite_m;
for (ft = F_CONSTR; ft <= F_CONSTRNC; ft++)
{
- il = &moltype.ilist[ft];
+ const InteractionList *il = &moltype.ilist[ft];
- for (i = 0; i < il->nr; i += 1+NRAL(ft))
+ for (i = 0; i < il->size(); i += 1+NRAL(ft))
{
ip = &mtop->ffparams.iparams[il->iatoms[i]];
a1 = il->iatoms[i+1];
}
}
- il = &moltype.ilist[F_SETTLE];
+ const InteractionList *il = &moltype.ilist[F_SETTLE];
- for (i = 0; i < il->nr; i += 1+NRAL(F_SETTLE))
+ for (i = 0; i < il->size(); i += 1+NRAL(F_SETTLE))
{
ip = &mtop->ffparams.iparams[il->iatoms[i]];
a1 = il->iatoms[i+1];