}
}
- if (ir->vdwtype != evdwCUT)
+ if (!(ir->vdwtype == evdwCUT || ir->vdwtype == evdwPME))
{
- warning_error(wi, "With Verlet lists only cut-off LJ interactions are supported");
+ warning_error(wi, "With Verlet lists only cut-off and PME LJ interactions are supported");
}
if (!(ir->coulombtype == eelCUT ||
(EEL_RF(ir->coulombtype) && ir->coulombtype != eelRF_NEC) ||
}
}
- if (EVDW_PME(ir->vdwtype))
- {
- if (ir_vdw_might_be_zero_at_cutoff(ir))
- {
- sprintf(err_buf, "With vdwtype = %s, rvdw must be <= rlist",
- evdw_names[ir->vdwtype]);
- CHECK(ir->rvdw > ir->rlist);
- }
- else
- {
- sprintf(err_buf,
- "With vdwtype = %s, rvdw must be equal to rlist\n",
- evdw_names[ir->vdwtype]);
- CHECK(ir->rvdw != ir->rlist);
- }
- }
-
if (EEL_PME(ir->coulombtype) || EVDW_PME(ir->vdwtype))
{
if (ir->pme_order < 3)
sprintf(err_buf, "With switched vdw forces or potentials, rvdw-switch must be < rvdw");
CHECK(ir->rvdw_switch >= ir->rvdw);
}
- else if (ir->vdwtype == evdwCUT)
+ else if (ir->vdwtype == evdwCUT || ir->vdwtype == evdwPME)
{
if (ir->cutoff_scheme == ecutsGROUP && ir->vdw_modifier == eintmodNONE)
{
warning_note(wi, "You are using geometric combination rules in "
"LJ-PME, but your non-bonded C6 parameters do "
"not follow these rules. "
- "If your force field uses Lorentz-Berthelot combination rules this "
- "will introduce small errors in the forces and energies in "
- "your simulations. Dispersion correction will correct total "
- "energy and/or pressure, but not forces or surface tensions. "
- "Please check the LJ-PME section in the manual "
- "before proceeding further.");
+ "This will introduce very small errors in the forces and energies in "
+ "your simulations. Dispersion correction will correct total energy "
+ "and/or pressure for isotropic systems, but not forces or surface tensions.");
}
else
{
warning_note(wi, "You are using geometric combination rules in "
"LJ-PME, but your non-bonded C6 parameters do "
"not follow these rules. "
- "If your force field uses Lorentz-Berthelot combination rules this "
- "will introduce small errors in the forces and energies in "
- "your simulations. Consider using dispersion correction "
- "for the total energy and pressure. "
- "Please check the LJ-PME section in the manual "
- "before proceeding further.");
+ "This will introduce very small errors in the forces and energies in "
+ "your simulations. If your system is homogeneous, consider using dispersion correction "
+ "for the total energy and pressure.");
}
}
}