{
real dvdl_rf_excl = 0;
enerd->term[F_RF_EXCL] =
- RF_excl_correction(fr, graph, md, excl, x, forceForUseWithShiftForces,
+ RF_excl_correction(fr, graph, md, excl, DOMAINDECOMP(cr),
+ x, forceForUseWithShiftForces,
fr->fshift, &pbc, lambda[efptCOUL], &dvdl_rf_excl);
enerd->dvdl_lin[efptCOUL] += dvdl_rf_excl;
const t_graph *g,
const t_mdatoms *mdatoms,
const t_blocka *excl,
+ bool usingDomainDecomposition,
rvec x[],
rvec f[],
rvec *fshift,
/* By default we turn SIMD kernels on, but it might be turned off further down... */
fr->use_simd_kernels = TRUE;
- fr->bDomDec = DOMAINDECOMP(cr);
-
if (check_box(ir->ePBC, box))
{
gmx_fatal(FARGS, check_box(ir->ePBC, box));
const t_graph *g,
const t_mdatoms *mdatoms,
const t_blocka *excl,
+ bool usingDomainDecomposition,
rvec x[],
rvec f[],
rvec *fshift,
AA = excl->a;
ki = CENTRAL;
- if (fr->bDomDec)
+ if (usingDomainDecomposition)
{
niat = excl->nr;
}
box_diag[ZZ] = box[ZZ][ZZ];
wallcycle_start(wcycle, ewcNS);
- if (!fr->bDomDec)
+ if (!DOMAINDECOMP(cr))
{
wallcycle_sub_start(wcycle, ewcsNBS_GRID_LOCAL);
nbnxn_put_on_grid(nbv->nbs.get(), fr->ePBC, box,
struct t_forcerec {
struct interaction_const_t *ic;
- /* Domain Decomposition */
- gmx_bool bDomDec;
-
/* PBC stuff */
int ePBC;
+ //! Whether PBC must be considered for bonded interactions.
gmx_bool bMolPBC;
int rc_scaling;
rvec posres_com;