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
005999d0
Commit
005999d0
authored
3 years ago
by
Thomas Jahns
Committed by
Sergey Kosukhin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix incorrect preprocessor conditional and variable scope.
parent
a606fea8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pio_server.c
+9
-2
9 additions, 2 deletions
src/pio_server.c
with
9 additions
and
2 deletions
src/pio_server.c
+
9
−
2
View file @
005999d0
...
...
@@ -1810,8 +1810,9 @@ cdiPioServerStreamClose(stream_t *streamptr, int recordBufIsToBeDeleted)
void
(
*
streamCloseCallBack
)(
int
streamID
)
=
(
void
(
*
)(
int
))
conf
->
callbacks
[
CDIPIO_CALLBACK_POSTSTREAMCLOSE
];
streamCloseCallBack
(
streamptr
->
self
);
}
#if defined HAVE_NC4HDF5 && defined HAVE_PARALLEL_NC4
bool
parH5ZeroCountProblem
=
false
;
static
bool
parH5ZeroCountProblem
=
false
;
#endif
#ifdef HAVE_LIBNETCDF
...
...
@@ -1820,7 +1821,13 @@ cdiPioCdfDefTimestep(stream_t *streamptr, int tsID, size_t valCount)
{
int
streamID
=
streamptr
->
self
,
rankOpen
=
cdiPioStream2Owner
(
streamID
);
#ifdef HAVE_PARALLEL_NC4
valCount
=
rankOpen
!=
CDI_PIO_COLLECTIVE_OPEN
||
parH5ZeroCountProblem
||
commInqRankColl
()
==
0
;
valCount
=
rankOpen
!=
CDI_PIO_COLLECTIVE_OPEN
#if defined HAVE_NC4HDF5
||
(
parH5ZeroCountProblem
&&
streamptr
->
filetype
==
CDI_FILETYPE_NC4
)
#else
||
streamptr
->
filetype
==
CDI_FILETYPE_NC4
#endif
||
commInqRankColl
()
==
0
;
#endif
if
(
commInqIOMode
()
==
PIO_NONE
#ifdef HAVE_PARALLEL_NC4
...
...
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