{
if (IS_VSITE(ft))
{
- const InteractionList *il = &moltype->ilist[ft];
+ const InteractionList &il = moltype->ilist[ft];
- for (i = 0; i < il->size(); i += 1+NRAL(ft))
+ for (i = 0; i < il.size(); i += 1+NRAL(ft))
{
const t_iparams *ip;
real inv_mass, coeff, m_aj;
int a1;
- ip = &ffparams->iparams[il->iatoms[i]];
+ ip = &ffparams->iparams[il.iatoms[i]];
- a1 = il->iatoms[i+1];
+ a1 = il.iatoms[i+1];
if (ft != F_VSITEN)
{
assert(maxj <= 5);
for (j = 1; j < maxj; j++)
{
- int aj = il->iatoms[i + 1 + j];
+ int aj = il.iatoms[i + 1 + j];
cam[j] = getMass(moltype->atoms, aj, setMassesToOne);
if (cam[j] == 0)
{
/* Exact */
inv_mass = 0;
- for (j = 0; j < 3*ffparams->iparams[il->iatoms[i]].vsiten.n; j += 3)
+ for (j = 0; j < 3*ffparams->iparams[il.iatoms[i]].vsiten.n; j += 3)
{
- int aj = il->iatoms[i + j + 2];
- coeff = ffparams->iparams[il->iatoms[i+j]].vsiten.a;
+ int aj = il.iatoms[i + j + 2];
+ coeff = ffparams->iparams[il.iatoms[i+j]].vsiten.a;
if (moltype->atoms.atom[aj].ptype == eptVSite)
{
m_aj = vsite_m[aj];
for (ft = F_CONSTR; ft <= F_CONSTRNC; ft++)
{
- const InteractionList *il = &moltype.ilist[ft];
+ const InteractionList &il = moltype.ilist[ft];
- for (i = 0; i < il->size(); 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];
- a2 = il->iatoms[i+2];
+ ip = &mtop->ffparams.iparams[il.iatoms[i]];
+ a1 = il.iatoms[i+1];
+ a2 = il.iatoms[i+2];
real mass1 = getMass(*atoms, a1, setMassesToOne);
real mass2 = getMass(*atoms, a2, setMassesToOne);
if (mass2 > prop[a1].con_mass)
}
}
- const InteractionList *il = &moltype.ilist[F_SETTLE];
+ const InteractionList &il = moltype.ilist[F_SETTLE];
- for (i = 0; i < il->size(); 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];
- a2 = il->iatoms[i+2];
- a3 = il->iatoms[i+3];
+ ip = &mtop->ffparams.iparams[il.iatoms[i]];
+ a1 = il.iatoms[i+1];
+ a2 = il.iatoms[i+2];
+ a3 = il.iatoms[i+3];
/* Usually the mass of a1 (usually oxygen) is larger than a2/a3.
* If this is not the case, we overestimate the displacement,
* which leads to a larger buffer (ok since this is an exotic case).