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
ed63643b
Commit
ed63643b
authored
7 years ago
by
Thomas Jahns
Committed by
Sergey Kosukhin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Extract function.
parent
b88ebde4
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
+22
-14
22 additions, 14 deletions
src/pio_server.c
with
22 additions
and
14 deletions
src/pio_server.c
+
22
−
14
View file @
ed63643b
...
...
@@ -1565,19 +1565,11 @@ cdiPioRecvStreamClose(void *buffer, int size, int *pos, MPI_Comm pioInterComm, b
streamClose
(
serverStreamID
);
}
#ifdef HAVE_LIBNETCDF
static
void
cdiPio
RecvStreamDefVlist
(
void
*
buffer
,
int
size
,
int
*
pos
,
MPI_Comm
pioInterComm
,
int
tag
,
const
struct
cdiPioConf
*
conf
)
cdiPio
CdfGridAccess
(
int
streamID
,
int
vlistID
)
{
int
serverStreamID
,
serverVlistID
;
{
int
msgData
[
defVlistNInts
];
xmpi
(
MPI_Unpack
(
buffer
,
size
,
pos
,
&
msgData
,
defVlistNInts
,
MPI_INT
,
pioInterComm
));
serverStreamID
=
namespaceAdaptKey2
(
msgData
[
0
]);
serverVlistID
=
namespaceAdaptKey2
(
msgData
[
1
]);
}
stream_t
*
streamptr
=
stream_to_pointer
(
serverStreamID
);
#ifdef HAVE_LIBNETCDF
int
filetype
=
streamInqFiletype
(
serverStreamID
);
int
filetype
=
streamInqFiletype
(
streamID
);
#ifdef HAVE_PARALLEL_NC4
int
rankOpen
;
#endif
...
...
@@ -1588,18 +1580,34 @@ cdiPioRecvStreamDefVlist(void *buffer, int size, int *pos, MPI_Comm pioInterComm
case
CDI_FILETYPE_NC4
:
case
CDI_FILETYPE_NC4C
:
#ifdef HAVE_PARALLEL_NC4
if
((
rankOpen
=
cdiPioStream2Owner
(
s
erverS
treamID
))
!=
CDI_PIO_COLLECTIVE_OPEN
)
if
((
rankOpen
=
cdiPioStream2Owner
(
streamID
))
!=
CDI_PIO_COLLECTIVE_OPEN
)
#endif
{
int
nGrids
=
vlistNgrids
(
serverV
listID
);
int
nGrids
=
vlistNgrids
(
v
listID
);
for
(
int
gridIdx
=
0
;
gridIdx
<
nGrids
;
++
gridIdx
)
{
int
gridID
=
vlistGrid
(
serverV
listID
,
gridIdx
);
int
gridID
=
vlistGrid
(
v
listID
,
gridIdx
);
if
(
!
cdiPioDistGridIndividualQueriesEnabled
(
gridID
))
cdiPioDistGridEnableIndividualQueries
(
gridID
);
}
}
}
}
#else
#define cdiPioCdfGridAccess(streamID, vlistID)
#endif
static
void
cdiPioRecvStreamDefVlist
(
void
*
buffer
,
int
size
,
int
*
pos
,
MPI_Comm
pioInterComm
,
int
tag
,
const
struct
cdiPioConf
*
conf
)
{
int
serverStreamID
,
serverVlistID
;
{
int
msgData
[
defVlistNInts
];
xmpi
(
MPI_Unpack
(
buffer
,
size
,
pos
,
&
msgData
,
defVlistNInts
,
MPI_INT
,
pioInterComm
));
serverStreamID
=
namespaceAdaptKey2
(
msgData
[
0
]);
serverVlistID
=
namespaceAdaptKey2
(
msgData
[
1
]);
}
stream_t
*
streamptr
=
stream_to_pointer
(
serverStreamID
);
cdiPioCdfGridAccess
(
serverStreamID
,
serverVlistID
);
cdiStreamSetupVlist
(
streamptr
,
serverVlistID
);
size_t
streamIdx
=
indexOfID
(
&
openStreams
,
serverStreamID
);
cdiPioServerStreamWinCreate
(
streamIdx
,
cdiPioInqCollClientIntraComm
());
...
...
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