Commit 351563b5 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed a compilation error under Windows

parent 0180a46c
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "CudaKernelFactory.h" #include "CudaKernelFactory.h"
#include "CudaKernels.h" #include "CudaKernels.h"
#include "openmm/internal/OpenMMContextImpl.h" #include "openmm/internal/OpenMMContextImpl.h"
#include "openmm/OpenMMException.h"
using namespace OpenMM; using namespace OpenMM;
...@@ -63,4 +64,6 @@ KernelImpl* CudaKernelFactory::createKernelImpl(std::string name, const Platform ...@@ -63,4 +64,6 @@ KernelImpl* CudaKernelFactory::createKernelImpl(std::string name, const Platform
return new CudaCalcKineticEnergyKernel(name, platform); return new CudaCalcKineticEnergyKernel(name, platform);
if (name == RemoveCMMotionKernel::Name()) if (name == RemoveCMMotionKernel::Name())
return new CudaRemoveCMMotionKernel(name, platform, data); return new CudaRemoveCMMotionKernel(name, platform, data);
else
throw OpenMMException((std::string("Tried to create kernel with illegal kernel name '")+name+"'").c_str());
} }
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