"...src/FreeEnergySerializationProxyRegistration.cpp" did not exist on "1b99afd78bb34113991744c3c89ed947f9c35daa"
Commit 11ef1e01 authored by peastman's avatar peastman
Browse files

DrudeForce was ignoring force groups (see bug 2012)

parent 25ea315c
...@@ -141,6 +141,7 @@ void DrudeForceImpl::initialize(ContextImpl& context) { ...@@ -141,6 +141,7 @@ 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) {
if ((groups&(1<<owner.getForceGroup())) != 0)
return kernel.getAs<CalcDrudeForceKernel>().execute(context, includeForces, includeEnergy); return kernel.getAs<CalcDrudeForceKernel>().execute(context, includeForces, includeEnergy);
} }
......
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