*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2018,2019,2020,2021, 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.
/* The number of zones including the home zone */
int n = 0;
/* The shift of the zones with respect to the home zone */
- ivec shift[DD_MAXZONE] = {};
+ std::array<ivec, DD_MAXZONE> shift;
/* The charge group boundaries for the zones */
- int cg_range[DD_MAXZONE + 1] = {};
+ std::array<int, DD_MAXZONE + 1> cg_range;
/* The pair interaction zone and atom ranges per each i-zone */
std::vector<DDPairInteractionRanges> iZones;
/* Boundaries of the zones */
- gmx_domdec_zone_size_t size[DD_MAXZONE];
+ std::array<gmx_domdec_zone_size_t, DD_MAXZONE> size;
/* The cg density of the home zone */
real dens_zone0 = 0;
};
static void make_dd_indices(gmx_domdec_t* dd, const int atomStart)
{
const int numZones = dd->comm->zones.n;
- const int* zone2cg = dd->comm->zones.cg_range;
+ const int* zone2cg = dd->comm->zones.cg_range.data();
const int* zone_ncg1 = dd->comm->zone_ncg1;
gmx::ArrayRef<const int> globalAtomGroupIndices = dd->globalAtomGroupIndices;
v_1 = ddbox->v[dim1];
}
- zone_cg_range = zones->cg_range;
+ zone_cg_range = zones->cg_range.data();
gmx::ArrayRef<cginfo_mb_t> cginfo_mb = fr->cginfo_mb;
zone_cg_range[0] = 0;