Commit 0fc3a50a authored by peastman's avatar peastman
Browse files

Fixed a segfault

parent 57f3be7e
...@@ -8021,6 +8021,7 @@ void CudaIntegrateCustomStepKernel::getGlobalVariables(ContextImpl& context, vec ...@@ -8021,6 +8021,7 @@ void CudaIntegrateCustomStepKernel::getGlobalVariables(ContextImpl& context, vec
// The data structures haven't been created yet, so just return the list of values that was given earlier. // The data structures haven't been created yet, so just return the list of values that was given earlier.
values = initialGlobalVariables; values = initialGlobalVariables;
return;
} }
values.resize(numGlobalVariables); values.resize(numGlobalVariables);
for (int i = 0; i < numGlobalVariables; i++) for (int i = 0; i < numGlobalVariables; i++)
......
...@@ -8380,6 +8380,7 @@ void OpenCLIntegrateCustomStepKernel::getGlobalVariables(ContextImpl& context, v ...@@ -8380,6 +8380,7 @@ void OpenCLIntegrateCustomStepKernel::getGlobalVariables(ContextImpl& context, v
// The data structures haven't been created yet, so just return the list of values that was given earlier. // The data structures haven't been created yet, so just return the list of values that was given earlier.
values = initialGlobalVariables; values = initialGlobalVariables;
return;
} }
values.resize(numGlobalVariables); values.resize(numGlobalVariables);
for (int i = 0; i < numGlobalVariables; i++) for (int i = 0; i < numGlobalVariables; i++)
......
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