*
* 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.
* Only needed in case of QM/MM optimizations
*/
FILE
- *out = NULL;
+ *out = nullptr;
int
- i, j, k, nrexcl = 0, *excluded = NULL, max_excl = 0;
+ i, j, k, nrexcl = 0, *excluded = nullptr, max_excl = 0;
out = fopen("QMMMexcl.dat", "w");
*/
gmx_groups_t *groups;
- int *qm_arr = NULL, vsite, ai, aj;
+ int *qm_arr = nullptr, vsite, ai, aj;
int qm_max = 0, qm_nr = 0, i, j, jmax, k, l, nrvsite2 = 0;
t_QMMMrec *qr;
t_MMrec *mm;
for (k = 0; k < qm_nr; k++)
{
int indexInMolecule;
- mtopGetMolblockIndex(mtop, qm_arr[k], &molb, NULL, &indexInMolecule);
+ mtopGetMolblockIndex(mtop, qm_arr[k], &molb, nullptr, &indexInMolecule);
t_atom *atom = &mtop->moltype[mtop->molblock[molb].type].atoms.atom[indexInMolecule];
atom->q = 0.0;
atom->qB = 0.0;
*/
for (i = 0; i < qm_nr; i++)
{
- mtopGetMolblockIndex(mtop, qm_arr[i], &molb, NULL, &a_offset);
+ mtopGetMolblockIndex(mtop, qm_arr[i], &molb, nullptr, &a_offset);
ilist_mol = mtop->moltype[mtop->molblock[molb].type].ilist;
nrvsite2 = ilist_mol[F_VSITE2].nr;
iatoms = ilist_mol[F_VSITE2].iatoms;
int
mm_max = 0, mm_nr = 0, mm_nr_new, i, j, is, k, shift;
t_j_particle
- *mm_j_particles = NULL, *qm_i_particles = NULL;
+ *mm_j_particles = nullptr, *qm_i_particles = nullptr;
t_QMMMrec
*qr;
t_nblist
t_pbc
pbc;
int
- *parallelMMarray = NULL;
+ *parallelMMarray = nullptr;
real
c12au, c6au;
t_QMrec
*qm, *qm2;
t_MMrec
- *mm = NULL;
+ *mm = nullptr;
rvec
- *forces = NULL, *fshift = NULL,
- *forces2 = NULL, *fshift2 = NULL; /* needed for multilayer ONIOM */
+ *forces = nullptr, *fshift = nullptr,
+ *forces2 = nullptr, *fshift2 = nullptr; /* needed for multilayer ONIOM */
int
i, j, k;
/* make a local copy the QMMMrec pointer