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
19655ed2
Commit
19655ed2
authored
7 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Add temporary work-around for large variables.
parent
bff2e3e0
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_rpc.c
+17
-1
17 additions, 1 deletion
src/pio_rpc.c
with
17 additions
and
1 deletion
src/pio_rpc.c
+
17
−
1
View file @
19655ed2
...
...
@@ -13,6 +13,22 @@
#include
"pio_interface.h"
#include
"pio_rpc.h"
/* replace once size_t-based version of vlistInqVarSize is merged */
static
size_t
cdiPioVlistInqVarSize
(
int
vlistID
,
int
varID
)
{
int
zaxisID
,
gridID
,
tsteptype
;
vlistInqVar
(
vlistID
,
varID
,
&
gridID
,
&
zaxisID
,
&
tsteptype
);
int
nlevs
=
zaxisInqSize
(
zaxisID
);
int
gridsize
=
gridInqSize
(
gridID
);
size_t
size
=
(
size_t
)
gridsize
*
(
size_t
)
nlevs
;
return
size
;
}
struct
clientBufSize
...
...
@@ -27,7 +43,7 @@ computeClientStreamBufSize(int streamID, const struct collSpec *collector)
{
size_t
chunkSize
;
{
in
t
varSize
=
v
listInqVarSize
(
vlistID
,
(
int
)
varID
);
size_
t
varSize
=
cdiPioV
listInqVarSize
(
vlistID
,
(
int
)
varID
);
chunkSize
=
(
size_t
)(
ceilf
(
cdiPIOpartInflate_
*
(
float
)
varSize
/
(
float
)
collector
->
numClients
));
...
...
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