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
567b01ce
Commit
567b01ce
authored
Nov 19, 2013
by
Thomas Jahns
🤸
Browse files
Join related parts of modelWinEnqueue.
parent
bd46e09b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pio_interface.c
View file @
567b01ce
...
...
@@ -490,9 +490,12 @@ modelWinEnqueue(int collID,
struct
winHeaderEntry
*
winDict
=
(
struct
winHeaderEntry
*
)
txWin
[
collID
].
buffer
;
int
targetEntry
;
if
(
header
.
id
>
0
||
header
.
id
==
PARTDESCMARKER
)
targetEntry
=
(
txWin
[
collID
].
dictDataUsed
)
++
;
else
targetEntry
=
txWin
[
collID
].
dictSize
-
++
(
txWin
[
collID
].
dictRPCUsed
);
if
(
header
.
id
>
0
)
{
targetEntry
=
(
txWin
[
collID
].
dictDataUsed
)
++
;
int
offset
=
header
.
offset
=
(
int
)
roundUpToMultiple
(
txWin
[
collID
].
head
-
txWin
[
collID
].
buffer
,
sizeof
(
double
));
...
...
@@ -503,7 +506,6 @@ modelWinEnqueue(int collID,
}
else
if
(
header
.
id
==
PARTDESCMARKER
)
{
targetEntry
=
(
txWin
[
collID
].
dictDataUsed
)
++
;
Xt_uid
uid
=
header
.
specific
.
partDesc
.
uid
;
int
offset
=
-
1
;
/* search if same uid entry has already been enqueued */
...
...
@@ -533,7 +535,6 @@ modelWinEnqueue(int collID,
}
else
{
targetEntry
=
txWin
[
collID
].
dictSize
-
++
(
txWin
[
collID
].
dictRPCUsed
);
int
position
=
header
.
offset
=
(
int
)(
txWin
[
collID
].
head
-
txWin
[
collID
].
buffer
);
MPI_Comm
comm
=
commInqCommsIO
(
collID
);
...
...
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