srenew(md->massT, md->nalloc);
srenew(md->invmass, md->nalloc);
srenew(md->chargeA, md->nalloc);
+ srenew(md->typeA, md->nalloc);
+ if (md->nPerturbed)
+ {
+ srenew(md->chargeB, md->nalloc);
+ srenew(md->typeB, md->nalloc);
+ }
if (bLJPME)
{
srenew(md->sqrt_c6A, md->nalloc);
srenew(md->sigmaA, md->nalloc);
srenew(md->sigma3A, md->nalloc);
- }
- if (md->nPerturbed)
- {
- srenew(md->chargeB, md->nalloc);
- if (bLJPME)
+ if (md->nPerturbed)
{
srenew(md->sqrt_c6B, md->nalloc);
srenew(md->sigmaB, md->nalloc);
srenew(md->sigma3B, md->nalloc);
}
}
- srenew(md->typeA, md->nalloc);
- if (md->nPerturbed)
- {
- srenew(md->typeB, md->nalloc);
- }
srenew(md->ptype, md->nalloc);
if (opts->ngtc > 1)
{