Commit 0637a4ce authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation error on Windows

parent 133c1a52
...@@ -905,9 +905,11 @@ template <class Real, class Real4, class Mixed, class Mixed4> ...@@ -905,9 +905,11 @@ template <class Real, class Real4, class Mixed, class Mixed4>
void CudaContext::reorderAtomsImpl(bool enforcePeriodic) { void CudaContext::reorderAtomsImpl(bool enforcePeriodic) {
// Find the range of positions and the number of bins along each axis. // Find the range of positions and the number of bins along each axis.
vector<Real4> oldPosq(paddedNumAtoms, (Real4) {0, 0, 0, 0}); Real4 padding = {0, 0, 0, 0};
vector<Real4> oldPosqCorrection(paddedNumAtoms, (Real4) {0, 0, 0, 0}); vector<Real4> oldPosq(paddedNumAtoms, padding);
vector<Mixed4> oldVelm(paddedNumAtoms, (Mixed4) {0, 0, 0, 0}); vector<Real4> oldPosqCorrection(paddedNumAtoms, padding);
Mixed4 paddingMixed = {0, 0, 0, 0};
vector<Mixed4> oldVelm(paddedNumAtoms, paddingMixed);
posq->download(oldPosq); posq->download(oldPosq);
velm->download(oldVelm); velm->download(oldVelm);
if (useMixedPrecision) if (useMixedPrecision)
......
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