Skip to content

Commit

Permalink
Merge pull request #149 from psychocoderHPC/fix-GridBufferEventBug
Browse files Browse the repository at this point in the history
fix uninitialized array
  • Loading branch information
f-schmitt-zih committed Jan 27, 2014
2 parents bb8faea + 4ca7a9e commit 1506bd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libPMacc/include/memory/buffers/GridBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ class GridBuffer
{
sendExchanges[i] = NULL;
receiveExchanges[i] = NULL;
/* fill array with valid empty events to avoid side effects if
* array is accessed without calling hasExchange() before usage */
receiveEvents[i]=EventTask();
sendEvents[i]=EventTask();
}
if (buildDeviceBuffer)
{
Expand Down

0 comments on commit 1506bd6

Please sign in to comment.