*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2016, by the GROMACS development team, led by
+ * Copyright (c) 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.
int b, i, j;
real mvb, im1, im2, tmp0, tmp1, tmp2;
- if (invmass != NULL)
+ if (invmass != nullptr)
{
for (b = 0; b < ncons; b++)
{
int bi, b, i, j;
real mvb, im1, im2, tmp0, tmp1, tmp2;
- if (invmass != NULL)
+ if (invmass != nullptr)
{
for (bi = 0; bi < ncons; bi++)
{
* so we pass invmass=NULL, which results in the use of 1 for all atoms.
*/
lincs_update_atoms(lincsd, th, 1.0, sol, r,
- (econq != econqForce) ? invmass : NULL, fp);
+ (econq != econqForce) ? invmass : nullptr, fp);
if (bCalcDHDL)
{
/* Communicate the corrected non-local coordinates */
if (DOMAINDECOMP(cr))
{
- dd_move_x_constraints(cr->dd, box, xp, NULL, FALSE);
+ dd_move_x_constraints(cr->dd, box, xp, nullptr, FALSE);
}
}
#pragma omp barrier
}
/* nit*ncons*(37+9*nrec) flops */
- if (v != NULL)
+ if (v != nullptr)
{
/* Update the velocities */
lincs_update_atoms(lincsd, th, invdt, mlambda, r, invmass, v);
/* 16 ncons flops */
}
- if (nlocat != NULL && (bCalcDHDL || bCalcVir))
+ if (nlocat != nullptr && (bCalcDHDL || bCalcVir))
{
if (lincsd->bTaskDep)
{
done_blocka(&at2con);
- if (cr->dd == NULL)
+ if (cr->dd == nullptr)
{
/* Since the matrix is static, we should free some memory */
li->ncc_alloc = li->ncc;
srenew(li->tmpncc, li->ncc_alloc);
}
- if (DOMAINDECOMP(cr) && dd_constraints_nlocalatoms(cr->dd) != NULL)
+ if (DOMAINDECOMP(cr) && dd_constraints_nlocalatoms(cr->dd) != nullptr)
{
int *nlocat_dd;
}
else
{
- li->nlocat = NULL;
+ li->nlocat = nullptr;
}
if (debug)
r2 = norm2(dx);
len = r2*gmx::invsqrt(r2);
d = std::abs(len/bllen[b]-1);
- if (d > ma && (nlocat == NULL || nlocat[b]))
+ if (d > ma && (nlocat == nullptr || nlocat[b]))
{
ma = d;
im = b;
}
- if (nlocat == NULL)
+ if (nlocat == nullptr)
{
ssd2 += d*d;
count++;
* We can also easily check if any constraint length is changed,
* if not dH/dlambda=0 and we can also set the boolean to FALSE.
*/
- bCalcDHDL = (ir->efep != efepNO && dvdlambda != NULL);
+ bCalcDHDL = (ir->efep != efepNO && dvdlambda != nullptr);
- if (lincsd->nc == 0 && cr->dd == NULL)
+ if (lincsd->nc == 0 && cr->dd == nullptr)
{
if (bLog || bEner)
{
if (lincsd->ncg_flex)
{
/* Set the flexible constraint lengths to the old lengths */
- if (pbc != NULL)
+ if (pbc != nullptr)
{
for (i = 0; i < lincsd->nc; i++)
{