*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2012,2013,2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2015,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 i, j, prec;
size_t sz;
- if (full_matrix != NULL && sparse_matrix != NULL)
+ if (full_matrix != nullptr && sparse_matrix != nullptr)
{
gmx_fatal(FARGS, "Both full AND sparse matrix specified to gmx_mtxio_write().\n");
}
gmx_fio_do_int(fio, nrow);
gmx_fio_do_int(fio, ncol);
- if (full_matrix != NULL)
+ if (full_matrix != nullptr)
{
/* Full matrix storage format */
i = GMX_MTXIO_FULL_MATRIX;
gmx_fio_do_int(fio, i);
- if (i == GMX_MTXIO_FULL_MATRIX && NULL != full_matrix)
+ if (i == GMX_MTXIO_FULL_MATRIX && nullptr != full_matrix)
{
printf("Full matrix storage format, nrow=%d, ncols=%d\n", *nrow, *ncol);
snew((*full_matrix), sz);
gmx_fio_ndo_real(fio, (*full_matrix), sz);
}
- else if (NULL != sparse_matrix)
+ else if (nullptr != sparse_matrix)
{
/* Sparse storage */
printf("Sparse matrix storage format, nrow=%d, ncols=%d\n", *nrow, *ncol);