/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2009,2010,2014,2015,2018, by the GROMACS development team, led by
+ * Copyright (c) 2009,2010,2014,2015,2017,2018, 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.
}
}
- if (cr_sum != NULL)
+ if (cr_sum != nullptr)
{
for (d = 0; d < DIM; d++)
{
if (box[j][d] != 0)
{
ddbox->tric_dir[d] = 1;
- if (dd_nc != NULL && (*dd_nc)[j] > 1 && (*dd_nc)[d] == 1)
+ if (dd_nc != nullptr && (*dd_nc)[j] > 1 && (*dd_nc)[d] == 1)
{
gmx_fatal(FARGS, "Domain decomposition has not been implemented for box vectors that have non-zero components in directions that do not use domain decomposition: ncells = %d %d %d, box vector[%d] = %f %f %f",
(*dd_nc)[XX], (*dd_nc)[YY], (*dd_nc)[ZZ],
{
low_set_ddbox(ir, &dd->nc, box, bCalcUnboundedSize,
bMasterState ? cgs->nr : dd->ncg_home, cgs, x,
- bMasterState ? NULL : cr_sum,
+ bMasterState ? nullptr : cr_sum,
ddbox);
}
{
if (MASTER(cr))
{
- low_set_ddbox(ir, dd_nc, box, TRUE, cgs->nr, cgs, x, NULL, ddbox);
+ low_set_ddbox(ir, dd_nc, box, TRUE, cgs->nr, cgs, x, nullptr, ddbox);
}
gmx_bcast(sizeof(gmx_ddbox_t), ddbox, cr);