Commit 67385273 authored by Saurabh Belsare's avatar Saurabh Belsare
Browse files

Fixed bug in getTotalDipoles in AmoebaCudaKernels.cpp

parent 18efc03e
...@@ -1819,7 +1819,7 @@ void CudaCalcAmoebaMultipoleForceKernel::getTotalDipoles(ContextImpl& context, v ...@@ -1819,7 +1819,7 @@ void CudaCalcAmoebaMultipoleForceKernel::getTotalDipoles(ContextImpl& context, v
dipoles.resize(numParticles); dipoles.resize(numParticles);
const vector<int>& order = cu.getAtomIndex(); const vector<int>& order = cu.getAtomIndex();
if (cu.getUseDoublePrecision()) { if (cu.getUseDoublePrecision()) {
vector<double> posqVec; vector<double4> posqVec;
vector<double> labDipoleVec; vector<double> labDipoleVec;
vector<double> inducedDipoleVec; vector<double> inducedDipoleVec;
vector<double> totalDipoleVecX(numParticles); vector<double> totalDipoleVecX(numParticles);
...@@ -1836,7 +1836,7 @@ void CudaCalcAmoebaMultipoleForceKernel::getTotalDipoles(ContextImpl& context, v ...@@ -1836,7 +1836,7 @@ void CudaCalcAmoebaMultipoleForceKernel::getTotalDipoles(ContextImpl& context, v
} }
} }
else { else {
vector<float> posqVec; vector<float4> posqVec;
vector<float> labFramePermanentDipolesVec; vector<float> labFramePermanentDipolesVec;
vector<float> inducedDipolesVec; vector<float> inducedDipolesVec;
vector<float> totalDipoleVecX(numParticles); vector<float> totalDipoleVecX(numParticles);
......
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