Commit 0c564d98 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Move zeroing of buffer to precede MPI_Win_start.

parent d7e3b5d6
......@@ -932,13 +932,14 @@ void getTimeStepData()
xdebug("%s", "START");
for ( modelID = 0; modelID < nProcsModel; modelID++ )
clearModelWinBuffer(modelID);
// todo put in correct lbs and ubs
xmpi(MPI_Win_start(groupModel, 0, getWin));
xmpi(MPI_Win_get_attr(getWin, MPI_WIN_BASE, &getWinBaseAddr, &attrFound));
xassert(attrFound);
for ( modelID = 0; modelID < nProcsModel; modelID++ )
{
clearModelWinBuffer(modelID);
xdebug("modelID=%d, nProcsModel=%d, rxWin[%d].size=%zu,"
" getWin=%p, sizeof(int)=%u",
modelID, nProcsModel, modelID, rxWin[modelID].size,
......
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