Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
cb8a2a1d
Commit
cb8a2a1d
authored
Nov 19, 2013
by
Thomas Jahns
🤸
Browse files
Eliminate unused variable components.
parent
578bd753
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/pio_comm.c
View file @
cb8a2a1d
...
...
@@ -15,8 +15,6 @@
typedef
struct
{
int
IOMode
;
int
maxIOMode
;
int
minIOModeWithSpecialProcs
;
int
nProcsIO
;
int
nProcsModel
;
int
isProcIO
;
...
...
@@ -59,8 +57,6 @@ static
void
pioInfoInit
(
pioInfo_t
*
p
)
{
p
->
IOMode
=
CDI_UNDEFID
;
p
->
maxIOMode
=
CDI_UNDEFID
;
p
->
minIOModeWithSpecialProcs
=
CDI_UNDEFID
;
p
->
nProcsIO
=
CDI_UNDEFID
;
p
->
nProcsModel
=
CDI_UNDEFID
;
p
->
isProcIO
=
CDI_UNDEFID
;
...
...
@@ -229,16 +225,10 @@ int commInqNProcsModel ( void )
}
void
commDefIOMode
(
int
IOMode
,
int
maxIOMode
,
int
minIOModeWithSpecialProcs
)
void
commDefIOMode
(
int
IOMode
)
{
xassert
(
info
!=
NULL
&&
IOMode
>=
0
&&
maxIOMode
>=
IOMode
&&
minIOModeWithSpecialProcs
>
0
&&
minIOModeWithSpecialProcs
<=
maxIOMode
);
xassert
(
info
!=
NULL
&&
IOMode
>=
PIO_MINIOMODE
&&
IOMode
<=
PIO_MAXIOMODE
);
info
->
IOMode
=
IOMode
;
info
->
maxIOMode
=
maxIOMode
;
info
->
minIOModeWithSpecialProcs
=
minIOModeWithSpecialProcs
;
}
...
...
@@ -447,7 +437,7 @@ void commDefCommNode ( void )
&
info
->
commNode
));
xmpi
(
MPI_Comm_size
(
info
->
commNode
,
&
info
->
sizeNode
));
xmpi
(
MPI_Comm_rank
(
info
->
commNode
,
&
info
->
rankNode
));
if
(
info
->
IOMode
>=
info
->
minIOModeWithSpecialProcs
)
if
(
info
->
IOMode
>=
PIO_MINIOMODEWITHSPECIALPROCS
)
info
->
specialRankNode
=
info
->
sizeNode
-
1
;
free
(
sortedHosts
);
...
...
@@ -796,8 +786,6 @@ void commPrint ( FILE * fp )
fprintf
(
fp
,
"######## pioinfo PE%d ###########
\n
"
,
info
->
rankGlob
);
fprintf
(
fp
,
"#
\n
"
);
fprintf
(
fp
,
"# IOMode = %d
\n
"
,
info
->
IOMode
);
fprintf
(
fp
,
"# maxIOMode = %d
\n
"
,
info
->
maxIOMode
);
fprintf
(
fp
,
"# minIOModeWithSpecialProcs = %d
\n
"
,
info
->
minIOModeWithSpecialProcs
);
fprintf
(
fp
,
"# nProcsIO = %d
\n
"
,
info
->
nProcsIO
);
fprintf
(
fp
,
"# nProcsModel = %d
\n
"
,
info
->
nProcsModel
);
fprintf
(
fp
,
"# isProcIO = %d
\n
"
,
info
->
isProcIO
);
...
...
src/pio_comm.h
View file @
cb8a2a1d
...
...
@@ -37,7 +37,7 @@ void commDefNProcsIO ( int );
int
commInqNProcsIO
(
void
);
int
commInqNProcsModel
(
void
);
int
commInqIsProcIO
(
void
);
void
commDefIOMode
(
int
,
int
,
int
);
void
commDefIOMode
(
int
);
int
commInqIOMode
(
void
);
void
commDefCommPio
(
void
);
...
...
src/pio_interface.c
View file @
cb8a2a1d
...
...
@@ -735,7 +735,7 @@ pioInit(MPI_Comm commGlob, int nProcsIO, int IOMode,
"nProcsIO=%d, sizeGlob=%d
\n
"
,
nProcsIO
,
sizeGlob
);
commDefNProcsIO
(
nProcsIO
);
commDefIOMode
(
IOMode
,
PIO_MAXIOMODE
,
PIO_MINIOMODEWITHSPECIALPROCS
);
commDefIOMode
(
IOMode
);
commDefCommPio
();
xassert
(
partInflate
>=
1
.
0
);
...
...
Write
Preview
Markdown
is supported
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