/* Ensure we have enough padding for aligned loads for each thread */
if (ncon_tot + li->ntask*simd_width > li->nc_alloc || li->nc_alloc == 0)
{
+ int old_alloc = li->nc_alloc;
li->nc_alloc = over_alloc_dd(ncon_tot + li->ntask*simd_width);
srenew(li->con_index, li->nc_alloc);
resize_real_aligned(&li->bllen0, li->nc_alloc);
srenew(li->blnr, li->nc_alloc + 1);
resize_real_aligned(&li->bllen, li->nc_alloc);
srenew(li->tmpv, li->nc_alloc);
+ /* Need to clear the SIMD padding */
+ for (int i = old_alloc; i < li->nc_alloc; i++)
+ {
+ clear_rvec(li->tmpv[i]);
+ }
if (DOMAINDECOMP(cr))
{
srenew(li->nlocat, li->nc_alloc);
if (MASTER(cr))
{
/* Copy stuff to the energy bin for easy printing etc. */
- matrix nullBox;
+ matrix nullBox = {};
upd_mdebin(mdebin, FALSE, FALSE, static_cast<double>(step),
mdatoms->tmass, enerd, nullptr, nullptr, nullptr, nullBox,
nullptr, nullptr, vir, pres, nullptr, mu_tot, constr);
fflush(stderr);
}
/* Store the new (lower) energies */
- matrix nullBox;
+ matrix nullBox = {};
upd_mdebin(mdebin, FALSE, FALSE, static_cast<double>(step),
mdatoms->tmass, enerd, nullptr, nullptr, nullptr, nullBox,
nullptr, nullptr, vir, pres, nullptr, mu_tot, constr);
if (MASTER(cr))
{
/* Copy stuff to the energy bin for easy printing etc. */
- matrix nullBox;
+ matrix nullBox = {};
upd_mdebin(mdebin, FALSE, FALSE, static_cast<double>(step),
mdatoms->tmass, enerd, nullptr, nullptr, nullptr, nullBox,
nullptr, nullptr, vir, pres, nullptr, mu_tot, constr);
fflush(stderr);
}
/* Store the new (lower) energies */
- matrix nullBox;
+ matrix nullBox = {};
upd_mdebin(mdebin, FALSE, FALSE, static_cast<double>(step),
mdatoms->tmass, enerd, nullptr, nullptr, nullptr, nullBox,
nullptr, nullptr, vir, pres, nullptr, mu_tot, constr);
if ( (count == 0) || (s_try->epot < s_min->epot) )
{
/* Store the new (lower) energies */
- matrix nullBox;
+ matrix nullBox = {};
upd_mdebin(mdebin, FALSE, FALSE, static_cast<double>(count),
mdatoms->tmass, enerd, nullptr, nullptr, nullptr,
nullBox, nullptr, nullptr, vir, pres, nullptr, mu_tot, constr);