This improves performance of PME + p-coupling by about 5%.
With Ewald and virial, the nbnxn SIMD energy kernels were used
(some left-over development code). The plain-C code did not do this.
Change-Id: I039044fcb393bf0bcaa06f38498b2a57d60cf080
}}
}}
- /* With Ewald type electrostatics we the forces for excluded atom pairs
- * should not contribute to the virial sum. The exclusion forces
- * are not calculate in the energy kernels, but are in _noener.
- */
- if (!((force_flags & GMX_FORCE_ENERGY) ||
- (EEL_FULL(ic->eeltype) && (force_flags & GMX_FORCE_VIRIAL))))
+ if (!(force_flags & GMX_FORCE_ENERGY))
{{
/* Don't calculate energies */
p_nbk_noener[coult][nbat->comb_rule](nbl[nb], nbat,
out->f,
fshift_p);
}}
- else if (out->nV == 1 || !(force_flags & GMX_FORCE_ENERGY))
+ else if (out->nV == 1)
{{
/* No energy groups */
out->Vvdw[0] = 0;
}
}
- /* With Ewald type electrostatics we the forces for excluded atom pairs
- * should not contribute to the virial sum. The exclusion forces
- * are not calculate in the energy kernels, but are in _noener.
- */
- if (!((force_flags & GMX_FORCE_ENERGY) ||
- (EEL_FULL(ic->eeltype) && (force_flags & GMX_FORCE_VIRIAL))))
+ if (!(force_flags & GMX_FORCE_ENERGY))
{
/* Don't calculate energies */
p_nbk_noener[coult][nbat->comb_rule](nbl[nb], nbat,
out->f,
fshift_p);
}
- else if (out->nV == 1 || !(force_flags & GMX_FORCE_ENERGY))
+ else if (out->nV == 1)
{
/* No energy groups */
out->Vvdw[0] = 0;
}
}
- /* With Ewald type electrostatics we the forces for excluded atom pairs
- * should not contribute to the virial sum. The exclusion forces
- * are not calculate in the energy kernels, but are in _noener.
- */
- if (!((force_flags & GMX_FORCE_ENERGY) ||
- (EEL_FULL(ic->eeltype) && (force_flags & GMX_FORCE_VIRIAL))))
+ if (!(force_flags & GMX_FORCE_ENERGY))
{
/* Don't calculate energies */
p_nbk_noener[coult][nbat->comb_rule](nbl[nb], nbat,
out->f,
fshift_p);
}
- else if (out->nV == 1 || !(force_flags & GMX_FORCE_ENERGY))
+ else if (out->nV == 1)
{
/* No energy groups */
out->Vvdw[0] = 0;