*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2012,2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2015,2016,2017, 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.
* Therefore, when adding code, the user should use something like:
* gprnrU1 = (md->cU1==NULL ? 0 : md->cU1[localatindex])
*/
- if (mtop->groups.grpnr[egcUser1] != NULL)
+ if (mtop->groups.grpnr[egcUser1] != nullptr)
{
srenew(md->cU1, md->nalloc);
}
- if (mtop->groups.grpnr[egcUser2] != NULL)
+ if (mtop->groups.grpnr[egcUser2] != nullptr)
{
srenew(md->cU2, md->nalloc);
}
real mA, mB, fac;
real c6, c12;
- if (index == NULL)
+ if (index == nullptr)
{
ag = i;
}
if (ir->bQMMM)
{
- if (groups->grpnr[egcQMMM] == 0 ||
+ if (groups->grpnr[egcQMMM] == nullptr ||
groups->grpnr[egcQMMM][ag] < groups->grps[egcQMMM].nr-1)
{
md->bQM[i] = TRUE;