*
* Copyright (c) 2009,2010,2011,2012,2013 by the GROMACS development team.
* Copyright (c) 2014,2015,2016,2017,2018 by the GROMACS development team.
- * Copyright (c) 2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2019,2020,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.
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- mtopGetAtomAndResidueName(context.top, g->index[i], &molb, nullptr, &out->u.i[i], nullptr, nullptr);
+ mtopGetAtomAndResidueName(*context.top, g->index[i], &molb, nullptr, &out->u.i[i], nullptr, nullptr);
}
}
for (int i = 0; i < g->isize; ++i)
{
int resind;
- mtopGetAtomAndResidueName(context.top, g->index[i], &molb, nullptr, nullptr, nullptr, &resind);
+ mtopGetAtomAndResidueName(*context.top, g->index[i], &molb, nullptr, nullptr, nullptr, &resind);
out->u.i[i] = resind + 1;
}
}
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- out->u.i[i] = mtopGetMoleculeIndex(context.top, g->index[i], &molb) + 1;
+ out->u.i[i] = mtopGetMoleculeIndex(*context.top, g->index[i], &molb) + 1;
}
}
for (int i = 0; i < g->isize; ++i)
{
const char* atom_name;
- mtopGetAtomAndResidueName(context.top, g->index[i], &molb, &atom_name, nullptr, nullptr, nullptr);
+ mtopGetAtomAndResidueName(*context.top, g->index[i], &molb, &atom_name, nullptr, nullptr, nullptr);
out->u.s[i] = const_cast<char*>(atom_name);
}
}
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- const char* s = mtopGetAtomPdbInfo(context.top, g->index[i], &molb).atomnm;
+ const char* s = mtopGetAtomPdbInfo(*context.top, g->index[i], &molb).atomnm;
while (std::isspace(*s))
{
++s;
for (int i = 0; i < g->isize; ++i)
{
int atomIndexInMolecule;
- mtopGetMolblockIndex(context.top, g->index[i], &molb, nullptr, &atomIndexInMolecule);
+ mtopGetMolblockIndex(*context.top, g->index[i], &molb, nullptr, &atomIndexInMolecule);
const gmx_moltype_t& moltype = context.top->moltype[context.top->molblock[molb].type];
out->u.s[i] = *moltype.atoms.atomtype[atomIndexInMolecule];
}
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- out->u.s[i] = *mtopGetResidueInfo(context.top, g->index[i], &molb).name;
+ out->u.s[i] = *mtopGetResidueInfo(*context.top, g->index[i], &molb).name;
}
}
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- out->u.s[i][0] = mtopGetResidueInfo(context.top, g->index[i], &molb).ic;
+ out->u.s[i][0] = mtopGetResidueInfo(*context.top, g->index[i], &molb).ic;
}
}
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- out->u.s[i][0] = mtopGetResidueInfo(context.top, g->index[i], &molb).chainid;
+ out->u.s[i][0] = mtopGetResidueInfo(*context.top, g->index[i], &molb).chainid;
}
}
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- out->u.r[i] = mtopGetAtomMass(context.top, g->index[i], &molb);
+ out->u.r[i] = mtopGetAtomMass(*context.top, g->index[i], &molb);
}
}
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- out->u.r[i] = mtopGetAtomParameters(context.top, g->index[i], &molb).q;
+ out->u.r[i] = mtopGetAtomParameters(*context.top, g->index[i], &molb).q;
}
}
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- out->u.s[i][0] = mtopGetAtomPdbInfo(context.top, g->index[i], &molb).altloc;
+ out->u.s[i][0] = mtopGetAtomPdbInfo(*context.top, g->index[i], &molb).altloc;
}
}
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- out->u.r[i] = mtopGetAtomPdbInfo(context.top, g->index[i], &molb).occup;
+ out->u.r[i] = mtopGetAtomPdbInfo(*context.top, g->index[i], &molb).occup;
}
}
int molb = 0;
for (int i = 0; i < g->isize; ++i)
{
- out->u.r[i] = mtopGetAtomPdbInfo(context.top, g->index[i], &molb).bfac;
+ out->u.r[i] = mtopGetAtomPdbInfo(*context.top, g->index[i], &molb).bfac;
}
}