"test/vscode:/vscode.git/clone" did not exist on "42c7cdad7970039d236aab837b283aaf72655d3b"
Unverified Commit f477b106 authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Fixed an inconsistency in data type (#3330)

parent fd1cfdd6
......@@ -1146,7 +1146,7 @@ double CudaCalcNonbondedForceKernel::execute(ContextImpl& context, bool includeF
}
double energy = (includeReciprocal ? ewaldSelfEnergy : 0.0);
if (recomputeParams || hasOffsets) {
bool computeSelfEnergy = (includeEnergy && includeReciprocal);
int computeSelfEnergy = (includeEnergy && includeReciprocal);
int numAtoms = cu.getPaddedNumAtoms();
vector<void*> paramsArgs = {&cu.getEnergyBuffer().getDevicePointer(), &computeSelfEnergy, &globalParams.getDevicePointer(), &numAtoms,
&baseParticleParams.getDevicePointer(), &cu.getPosq().getDevicePointer(), &charges.getDevicePointer(), &sigmaEpsilon.getDevicePointer(),
......
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