for (s = 0; s < ns; s++)
{
/* PME slab s spreads atoms between box frac. s/ns and (s+1)/ns */
- pme_boundary = (real)s/ns;
+ pme_boundary = static_cast<real>(s)/ns;
while (sh + 1 < ns &&
((s - (sh + 1) >= 0 &&
cellFrac[xmax[s - (sh + 1) ] + 1] + range > pme_boundary) ||
{
sh++;
}
- pme_boundary = (real)(s+1)/ns;
+ pme_boundary = static_cast<real>(s+1)/ns;
while (sh + 1 < ns &&
((s + (sh + 1) < ns &&
cellFrac[xmin[s + (sh + 1) ] ] - range < pme_boundary) ||
relative_to_absolute_cell_bounds(dd, ddbox, d1);
}
/* Convert the communicated shift from float to int */
- comm.ddpme[0].maxshift = (int)(cellFracRow[pos++] + 0.5);
+ comm.ddpme[0].maxshift = static_cast<int>(cellFracRow[pos++] + 0.5);
if (d >= 1)
{
- comm.ddpme[1].maxshift = (int)(cellFracRow[pos++] + 0.5);
+ comm.ddpme[1].maxshift = static_cast<int>(cellFracRow[pos++] + 0.5);
}
}