Unverified Commit 4810bac7 authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #1924 from peastman/segfault

Fixed a segfault
parents 956df416 0fc3a50a
......@@ -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.
values = initialGlobalVariables;
return;
}
values.resize(numGlobalVariables);
for (int i = 0; i < numGlobalVariables; i++)
......
......@@ -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.
values = initialGlobalVariables;
return;
}
values.resize(numGlobalVariables);
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