/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2008,2009,2010,2012,2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2008,2009,2010,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.
}
env = getenv("GMX_MAXRESRENUM");
- if (env != NULL)
+ if (env != nullptr)
{
sscanf(env, "%d", &mtop->maxres_renum);
}
gmx_bool gmx_mtop_atomloop_all_next(gmx_mtop_atomloop_all_t aloop,
int *at_global, const t_atom **atom)
{
- if (aloop == NULL)
+ if (aloop == nullptr)
{
gmx_incons("gmx_mtop_atomloop_all_next called without calling gmx_mtop_atomloop_all_init");
}
gmx_bool gmx_mtop_atomloop_block_next(gmx_mtop_atomloop_block_t aloop,
const t_atom **atom, int *nmol)
{
- if (aloop == NULL)
+ if (aloop == nullptr)
{
gmx_incons("gmx_mtop_atomloop_all_next called without calling gmx_mtop_atomloop_all_init");
}
gmx_bool gmx_mtop_ilistloop_next(gmx_mtop_ilistloop_t iloop,
t_ilist **ilist_mol, int *nmol)
{
- if (iloop == NULL)
+ if (iloop == nullptr)
{
gmx_incons("gmx_mtop_ilistloop_next called without calling gmx_mtop_ilistloop_init");
}
t_ilist **ilist_mol, int *atnr_offset)
{
- if (iloop == NULL)
+ if (iloop == nullptr)
{
gmx_incons("gmx_mtop_ilistloop_all_next called without calling gmx_mtop_ilistloop_all_init");
}
idef->atnr = ffp->atnr;
idef->functype = ffp->functype;
idef->iparams = ffp->iparams;
- idef->iparams_posres = NULL;
+ idef->iparams_posres = nullptr;
idef->iparams_posres_nalloc = 0;
- idef->iparams_fbposres = NULL;
+ idef->iparams_fbposres = nullptr;
idef->iparams_fbposres_nalloc = 0;
idef->fudgeQQ = ffp->fudgeQQ;
idef->cmap_grid = ffp->cmap_grid;
{
idef->il[ftype].nr = 0;
idef->il[ftype].nalloc = 0;
- idef->il[ftype].iatoms = NULL;
+ idef->il[ftype].iatoms = nullptr;
}
natoms = 0;