/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2009,2010,2011,2012,2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2009,2010,2011,2012,2013,2014,2015, 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.
srenew(pos->f, n);
}
}
- if (isize > 0)
+ if (isize >= 0)
{
gmx_ana_indexmap_reserve(&pos->m, n, isize);
}
{
if (bFirst)
{
- gmx_ana_pos_reserve(dest, src->count(), 0);
+ gmx_ana_pos_reserve(dest, src->count(), -1);
if (src->v)
{
gmx_ana_pos_reserve_velocities(dest);
pos->m.mapb.nra = 0;
pos->m.b.nr = 0;
pos->m.b.nra = 0;
- /* This should not really be necessary, but do it for safety... */
+ /* Initializing these should not really be necessary, but do it for
+ * safety... */
pos->m.mapb.index[0] = 0;
pos->m.b.index[0] = 0;
/* This function should only be used to construct all the possible