Commit 29a301b4 authored by Yutong Zhao's avatar Yutong Zhao
Browse files

Forgot message on last commit. This fixes write/create checkpoint for systems without a RNG.

parent eded2c6c
...@@ -933,7 +933,7 @@ void OpenCLIntegrationUtilities::createCheckpoint(ostream& stream) { ...@@ -933,7 +933,7 @@ void OpenCLIntegrationUtilities::createCheckpoint(ostream& stream) {
void OpenCLIntegrationUtilities::loadCheckpoint(istream& stream) { void OpenCLIntegrationUtilities::loadCheckpoint(istream& stream) {
if(random == NULL) if(random == NULL)
return; return;
stream.read((char*) &randomPos, sizeof(int)); stream.read((char*) &randomPos, sizeof(int));
vector<mm_float4> randomVec(random->getSize()); vector<mm_float4> randomVec(random->getSize());
stream.read((char*) &randomVec[0], sizeof(mm_float4)*random->getSize()); stream.read((char*) &randomVec[0], sizeof(mm_float4)*random->getSize());
......
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