Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recalc cutoff on skin change #3003

4 changes: 2 additions & 2 deletions src/core/electrostatics_magnetostatics/coulomb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ double cutoff(const Utils::Vector3d &box_l) {
switch (coulomb.method) {
case COULOMB_MMM1D:
return std::numeric_limits<double>::infinity();
case COULOMB_MMM2D:
return 1e-40;
fweik marked this conversation as resolved.
Show resolved Hide resolved
#ifdef P3M
case COULOMB_ELC_P3M:
return std::max(elc_params.space_layer, p3m.params.r_cut_iL * box_l[0]);
case COULOMB_MMM2D:
return layer_h - skin;
case COULOMB_P3M_GPU:
case COULOMB_P3M:
/* do not use precalculated r_cut here, might not be set yet */
Expand Down