Commit bc399216 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Replace literal 3 with named constant.

parent 2c1a398d
......@@ -376,14 +376,15 @@ modelWinDefBufferSizes(void)
+ sizeof (Xt_int) * collIDchunk * 3;
}
// memory required for the 3 function calls streamOpen, streamDefVlist, streamClose
// memory required for the function calls encoded
// for remote execution
// once per stream and timestep for all collprocs only on the modelproc root
if ( rankGlob == root )
for ( collID = 0; collID < nProcsColl; collID++ )
{
collIndex[collID].numRPCRecords += 3;
collIndex[collID].numRPCRecords += numRPCFuncs;
txWin[collID].size +=
3 * sizeof (union winHeaderEntry)
numRPCFuncs * sizeof (union winHeaderEntry)
+ MAXDATAFILENAME;
}
}
......
......@@ -126,9 +126,9 @@ collDefBufferSizes()
}
// space required for the 3 function calls streamOpen, streamDefVlist, streamClose
// once per stream and timestep for all collprocs only on the modelproc root
rxWin[root].size += 3 * sizeof (union winHeaderEntry)
rxWin[root].size += numRPCFuncs * sizeof (union winHeaderEntry)
+ MAXDATAFILENAME;
rxWin[root].dictSize += 3;
rxWin[root].dictSize += numRPCFuncs;
}
free ( streamIndexList );
......
Supports Markdown
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