diff --git a/src/USER-FEP/fix_adapt_fep.cpp b/src/USER-FEP/fix_adapt_fep.cpp index 6d2efa44dc..8f3f974817 100644 --- a/src/USER-FEP/fix_adapt_fep.cpp +++ b/src/USER-FEP/fix_adapt_fep.cpp @@ -581,5 +581,5 @@ void FixAdaptFEP::restore_settings() } if (anypair) force->pair->reinit(); - if (chgflag && force->kspace) force->kspace->setup(); + if (chgflag && force->kspace) force->kspace->qsum_qsq(); } diff --git a/src/fix_adapt.cpp b/src/fix_adapt.cpp index 471485857e..bc6d4eeab8 100644 --- a/src/fix_adapt.cpp +++ b/src/fix_adapt.cpp @@ -552,5 +552,5 @@ void FixAdapt::restore_settings() } if (anypair) force->pair->reinit(); - if (chgflag && force->kspace) force->kspace->setup(); + if (chgflag && force->kspace) force->kspace->qsum_qsq(); }