"wrappers/python/vscode:/vscode.git/clone" did not exist on "4ab137687489b9bc8a08e4e2e0a61cb038421bbd"
Commit 11ef1e01 authored by peastman's avatar peastman
Browse files

DrudeForce was ignoring force groups (see bug 2012)

parent 25ea315c
...@@ -141,7 +141,8 @@ void DrudeForceImpl::initialize(ContextImpl& context) { ...@@ -141,7 +141,8 @@ void DrudeForceImpl::initialize(ContextImpl& context) {
} }
double DrudeForceImpl::calcForcesAndEnergy(ContextImpl& context, bool includeForces, bool includeEnergy, int groups) { double DrudeForceImpl::calcForcesAndEnergy(ContextImpl& context, bool includeForces, bool includeEnergy, int groups) {
return kernel.getAs<CalcDrudeForceKernel>().execute(context, includeForces, includeEnergy); if ((groups&(1<<owner.getForceGroup())) != 0)
return kernel.getAs<CalcDrudeForceKernel>().execute(context, includeForces, includeEnergy);
} }
std::vector<std::string> DrudeForceImpl::getKernelNames() { std::vector<std::string> DrudeForceImpl::getKernelNames() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment