Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
bc399216
Commit
bc399216
authored
Aug 08, 2013
by
Thomas Jahns
🤸
Browse files
Replace literal 3 with named constant.
parent
2c1a398d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pio_interface.c
View file @
bc399216
...
...
@@ -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
;
}
}
...
...
src/pio_server.c
View file @
bc399216
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment