real dt,
const ivec nFreeze[],
const real invmass[],
- const unsigned short ptype[],
+ const ParticleType ptype[],
const unsigned short cFREEZE[],
rvec v[],
const rvec f[],
for (d = 0; d < DIM; d++)
{
- if ((ptype[n] != eptShell) && !nFreeze[gf][d])
+ if ((ptype[n] != ParticleType::Shell) && !nFreeze[gf][d])
{
v[n][d] = mv1 * (mv1 * v[n][d] + 0.5 * (w_dt * mv2 * f[n][d]));
}
int nrend,
real dt,
const ivec nFreeze[],
- const unsigned short ptype[],
+ const ParticleType ptype[],
const unsigned short cFREEZE[],
const rvec x[],
rvec xprime[],
for (d = 0; d < DIM; d++)
{
- if ((ptype[n] != eptShell) && !nFreeze[gf][d])
+ if ((ptype[n] != ParticleType::Shell) && !nFreeze[gf][d])
{
xprime[n][d] = mr1 * (mr1 * x[n][d] + mr2 * dt * v[n][d]);
}
real dt,
const ivec nFreeze[],
const real invmass[],
- const unsigned short ptype[],
+ const ParticleType ptype[],
const unsigned short cFREEZE[],
const unsigned short cTC[],
const rvec x[],
for (int d = 0; d < DIM; d++)
{
- if ((ptype[n] != eptShell) && !nFreeze[freezeGroup][d])
+ if ((ptype[n] != ParticleType::Shell) && !nFreeze[freezeGroup][d])
{
if (updateType == SDUpdate::ForcesOnly)
{
const rvec* gmx_restrict f,
const ivec nFreeze[],
const real invmass[],
- const unsigned short ptype[],
+ const ParticleType ptype[],
const unsigned short cFREEZE[],
const unsigned short cTC[],
int seed,
const rvec* gmx_restrict f,
const ivec nFreeze[],
const real invmass[],
- const unsigned short ptype[],
+ const ParticleType ptype[],
const unsigned short cFREEZE[],
const unsigned short cTC[],
real friction_coefficient,
}
for (d = 0; (d < DIM); d++)
{
- if ((ptype[n] != eptShell) && !nFreeze[gf][d])
+ if ((ptype[n] != ParticleType::Shell) && !nFreeze[gf][d])
{
if (friction_coefficient != 0)
{