/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2010,2011,2012,2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 2010,2011,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.
for (i = 0; i < egcNR; i++)
{
- if (groups->grpnr[i] != NULL)
+ if (groups->grpnr[i] != nullptr)
{
groups->ngrpnr[i] = state->natoms;
snew(new_egrp[i], state->natoms);
{
for (j = 0; j < egcNR; j++)
{
- if (groups->grpnr[j] != NULL)
+ if (groups->grpnr[j] != nullptr)
{
new_egrp[j][i-rm] = groups->grpnr[j][i];
}
for (i = 0; i < egcNR; i++)
{
- if (groups->grpnr[i] != NULL)
+ if (groups->grpnr[i] != nullptr)
{
sfree(groups->grpnr[i]);
groups->grpnr[i] = new_egrp[i];
if (buf[0] != ';')
{
strcpy(buf2, buf);
- if ((temp = strchr(buf2, '\n')) != NULL)
+ if ((temp = strchr(buf2, '\n')) != nullptr)
{
temp[0] = '\0';
}
if (buf2[0] == '[')
{
buf2[0] = ' ';
- if ((temp = strchr(buf2, '\n')) != NULL)
+ if ((temp = strchr(buf2, '\n')) != nullptr)
{
temp[0] = '\0';
}
int i, rm_bonded_at, fr_id, fr_i = 0, tmp_id, warn = 0;
int ng, j, max_lip_rm, ins_grp_id, ntype, lip_rm;
real prot_area;
- rvec *r_ins = NULL;
+ rvec *r_ins = nullptr;
t_block *ins_at, *rest_at;
pos_ins_t *pos_ins;
mem_t *mem_p;
gmx_bool bExcl = FALSE;
t_atoms atoms;
t_pbc *pbc;
- char **piecename = NULL;
- gmx_membed_t *membed = NULL;
+ char **piecename = nullptr;
+ gmx_membed_t *membed = nullptr;
/* input variables */
const char *membed_input;