Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
cb06947a
Commit
cb06947a
authored
4 years ago
by
Thomas Jahns
Committed by
Sergey Kosukhin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Eliminate unused temporaries.
parent
a51a0a4c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!34
Version 2.2.0
,
!13
Consolidation with CDI-PIO (develop)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pio_server.c
+9
-12
9 additions, 12 deletions
src/pio_server.c
with
9 additions
and
12 deletions
src/pio_server.c
+
9
−
12
View file @
cb06947a
...
...
@@ -1018,12 +1018,12 @@ cdiPioCloseFileOnRank(int rank)
static
void
cdiPioServerCdfDefVars
(
stream_t
*
streamptr
)
{
int
rank
,
rankOpen
=
cdiPioStream2Owner
(
streamptr
->
self
);
int
rankOpen
=
cdiPioStream2Owner
(
streamptr
->
self
);
if
(
commInqIOMode
()
==
PIO_NONE
#ifdef HAVE_PARALLEL_NC4
||
rankOpen
==
CDI_PIO_COLLECTIVE_OPEN
#endif
||
(
rank
=
commInqRankColl
()
)
==
rankOpen
)
||
commInqRankColl
()
==
rankOpen
)
cdfDefCoordinateVars
(
streamptr
);
}
...
...
@@ -1728,12 +1728,12 @@ getMaxNumStreamWrites(stream_t *streamptr)
case
CDI_FILETYPE_NC4
:
case
CDI_FILETYPE_NC4C
:
{
int
rank
,
rankOpen
=
cdiPioStream2Owner
(
streamptr
->
self
);
int
rankOpen
=
cdiPioStream2Owner
(
streamptr
->
self
);
if
(
commInqIOMode
()
==
PIO_NONE
#ifdef HAVE_PARALLEL_NC4
||
rankOpen
==
CDI_PIO_COLLECTIVE_OPEN
#endif
||
(
(
rank
=
commInqRankColl
()
)
==
rankOpen
))
||
(
commInqRankColl
()
==
rankOpen
))
maxNumStreamWrites
=
(
numVars
+
numColl
-
1
)
/
numColl
;
}
break
;
...
...
@@ -1770,12 +1770,12 @@ cdiPioServerStreamClose(stream_t *streamptr, int recordBufIsToBeDeleted)
#ifdef HAVE_LIBNETCDF
case
CDI_FILETYPE_NETCDF
:
{
int
rank
,
rankOpen
=
cdiPioStream2Owner
(
streamptr
->
self
);
int
rankOpen
=
cdiPioStream2Owner
(
streamptr
->
self
);
if
(
commInqIOMode
()
==
PIO_NONE
#ifdef HAVE_PARALLEL_NC4
||
rankOpen
==
CDI_PIO_COLLECTIVE_OPEN
#endif
||
((
rank
=
commInqRankColl
()
)
==
rankOpen
)
)
||
commInqRankColl
()
==
rankOpen
)
cdiStreamCloseDefaultDelegate
(
streamptr
,
recordBufIsToBeDeleted
);
#ifdef HAVE_PARALLEL_NC4
if
(
rankOpen
!=
CDI_PIO_COLLECTIVE_OPEN
)
...
...
@@ -1804,12 +1804,12 @@ cdiPioServerStreamClose(stream_t *streamptr, int recordBufIsToBeDeleted)
static
void
cdiPioCdfDefTimestep
(
stream_t
*
streamptr
,
int
tsID
)
{
int
rank
,
streamID
=
streamptr
->
self
,
rankOpen
=
cdiPioStream2Owner
(
streamID
);
int
streamID
=
streamptr
->
self
,
rankOpen
=
cdiPioStream2Owner
(
streamID
);
if
(
commInqIOMode
()
==
PIO_NONE
#ifdef HAVE_PARALLEL_NC4
||
rankOpen
==
CDI_PIO_COLLECTIVE_OPEN
#endif
||
(
rank
=
commInqRankColl
()
)
==
rankOpen
)
||
commInqRankColl
()
==
rankOpen
)
cdfDefTimestep
(
streamptr
,
tsID
);
}
#endif
...
...
@@ -1866,9 +1866,6 @@ static void
cdiPioCdfGridAccess
(
int
streamID
,
int
vlistID
)
{
int
filetype
=
streamInqFiletype
(
streamID
);
#ifdef HAVE_PARALLEL_NC4
int
rankOpen
;
#endif
switch
(
filetype
)
{
case
CDI_FILETYPE_NC
:
...
...
@@ -1876,7 +1873,7 @@ cdiPioCdfGridAccess(int streamID, int vlistID)
case
CDI_FILETYPE_NC4
:
case
CDI_FILETYPE_NC4C
:
#ifdef HAVE_PARALLEL_NC4
if
(
(
rankOpen
=
cdiPioStream2Owner
(
streamID
)
)
!=
CDI_PIO_COLLECTIVE_OPEN
)
if
(
cdiPioStream2Owner
(
streamID
)
!=
CDI_PIO_COLLECTIVE_OPEN
)
#endif
{
int
nGrids
=
vlistNgrids
(
vlistID
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment