When using masses to determine the weights of the spread amplitudes,
massA instead of the correct massT was used. This commit fixes this
behavior.
refs #2282
Change-Id: I58deb14b4b45c122ab3c9caf3f6b76c89f9ae739
}
std::transform(std::begin(localIndex), std::end(localIndex), std::begin(amplitude_),
- [&atoms](gmx::index index) { return atoms.massA[index]; });
+ [&atoms](gmx::index index) { return atoms.massT[index]; });
return amplitude_;
}
DensityFittingAmplitudeLookupTest()
{
atoms_.nr = numberOfAtoms_;
- atoms_.massA = masses_.data();
+ atoms_.massT = masses_.data();
atoms_.chargeA = charges_.data();
}
protected: