* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2009-2018, The GROMACS development team.
- * Copyright (c) 2019, by the GROMACS development team, led by
+ * Copyright (c) 2019,2021, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
for (int m = 0; m < nrefat; ++m)
{
const int ai = index[m];
- const real mass = mtopGetAtomMass(top, ai, &molb);
+ const real mass = mtopGetAtomMass(*top, ai, &molb);
for (int j = 0; j < DIM; ++j)
{
xout[j] += mass * x[ai][j];
for (int m = 0; m < nrefat; ++m)
{
const int ai = index[m];
- const real mass = mtopGetAtomMass(top, ai, &molb);
+ const real mass = mtopGetAtomMass(*top, ai, &molb);
for (int j = 0; j < DIM; ++j)
{
fout[j] += f[ai][j] / mass;
for (int m = 0; m < nrefat; ++m)
{
const int ai = index[m];
- const real mass = mtopGetAtomMass(top, ai, &molb);
+ const real mass = mtopGetAtomMass(*top, ai, &molb);
for (int j = 0; j < DIM; ++j)
{
xout[j] += mass * x[ai][j];
{
rvec dx, xtest;
const int ai = index[m];
- const real mass = mtopGetAtomMass(top, ai, &molb) / mtot;
+ const real mass = mtopGetAtomMass(*top, ai, &molb) / mtot;
pbc_dx(pbc, x[ai], xout, dx);
rvec_add(xout, dx, xtest);
for (int j = 0; j < DIM; ++j)
for (int i = block->index[b]; i < block->index[b + 1]; ++i)
{
const int ai = index[i];
- const real mass = mtopGetAtomMass(top, ai, &molb);
+ const real mass = mtopGetAtomMass(*top, ai, &molb);
for (int d = 0; d < DIM; ++d)
{
xb[d] += mass * x[ai][d];
for (int i = block->index[b]; i < block->index[b + 1]; ++i)
{
const int ai = index[i];
- const real mass = mtopGetAtomMass(top, ai, &molb);
+ const real mass = mtopGetAtomMass(*top, ai, &molb);
for (int d = 0; d < DIM; ++d)
{
fb[d] += f[ai][d] / mass;