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
a10eb91c
Commit
a10eb91c
authored
Dec 08, 2014
by
Thomas Jahns
🤸
Browse files
Simplify send of finalize command to PIO server.
parent
94fe8ade
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pio_interface.c
View file @
a10eb91c
...
@@ -886,17 +886,16 @@ void pioEndTimestepping ( void )
...
@@ -886,17 +886,16 @@ void pioEndTimestepping ( void )
void
pioFinalize
(
void
)
void
pioFinalize
(
void
)
{
{
int
collID
,
ibuffer
=
1111
;
xdebug
(
"%s"
,
"START"
);
xdebug
(
"%s"
,
"START"
);
/* pioNamespace_ is unchanged on I/O servers */
/* pioNamespace_ is unchanged on I/O servers */
if
(
pioNamespace_
==
-
1
)
if
(
pioNamespace_
==
-
1
)
return
;
return
;
namespaceDelete
(
pioNamespace_
);
namespaceDelete
(
pioNamespace_
);
for
(
collID
=
0
;
collID
<
commInqNProcsColl
();
collID
++
)
for
(
int
collID
=
0
;
collID
<
commInqNProcsColl
();
collID
++
)
{
{
xmpi
(
MPI_Send
(
&
ibuffer
,
1
,
MPI_INT
,
commInqNProcsModel
(),
xmpi
(
MPI_Send
(
NULL
,
0
,
MPI_INT
,
commInqNProcsModel
(),
FINALIZE
,
commInqCommsIO
(
collID
)));
FINALIZE
,
commInqCommsIO
(
collID
)));
xdebug
(
"%s"
,
"SENT MESSAGE WITH TAG
\"
FINALIZE
\"
"
);
xdebug
(
"%s"
,
"SENT MESSAGE WITH TAG
\"
FINALIZE
\"
"
);
}
}
modelWinCleanup
();
modelWinCleanup
();
...
...
src/pio_server.c
View file @
a10eb91c
...
@@ -1088,12 +1088,8 @@ void cdiPioServer(void (*postCommSetupActions)(void))
...
@@ -1088,12 +1088,8 @@ void cdiPioServer(void (*postCommSetupActions)(void))
switch
(
tag
)
switch
(
tag
)
{
{
case
FINALIZE
:
case
FINALIZE
:
{
xdebugMsg
(
tag
,
source
,
nfinished
);
int
i
;
xmpi
(
MPI_Recv
(
NULL
,
0
,
MPI_INT
,
source
,
tag
,
commCalc
,
&
status
));
xdebugMsg
(
tag
,
source
,
nfinished
);
xmpi
(
MPI_Recv
(
&
i
,
1
,
MPI_INTEGER
,
source
,
tag
,
commCalc
,
&
status
));
}
xdebug
(
"%s"
,
"RECEIVED MESSAGE WITH TAG
\"
FINALIZE
\"
"
);
xdebug
(
"%s"
,
"RECEIVED MESSAGE WITH TAG
\"
FINALIZE
\"
"
);
nfinished
++
;
nfinished
++
;
xdebug
(
"nfinished=%d, nProcsModel=%d"
,
nfinished
,
nProcsModel
);
xdebug
(
"nfinished=%d, nProcsModel=%d"
,
nfinished
,
nProcsModel
);
...
...
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