Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
7bc75acd
Commit
7bc75acd
authored
Apr 02, 2014
by
Thomas Jahns
🤸
Browse files
Fix unused variable.
parent
73b5289c
Changes
1
Show whitespace changes
Inline
Side-by-side
examples/pio/collectData.c
View file @
7bc75acd
...
...
@@ -128,21 +128,17 @@ static void modelRun(MPI_Comm commModel)
for
(
i
=
0
;
i
<
nVars
;
i
++
)
{
#ifdef USE_MPI
int
start
=
varDeco
[
i
].
start
;
int
chunk
=
varDeco
[
i
].
chunkSize
;
#else
int
chunk
=
varSize
[
i
];
int
start
=
0
;
#endif
for
(
j
=
0
;
j
<
chunk
;
++
j
)
var
[
j
]
=
2
.
2
;
#ifdef USE_MPI
streamWriteVarPart
(
streamID
,
varID
[
i
],
var
,
nmiss
,
varDeco
[
i
].
partDesc
);
#else
streamWriteVar
(
streamID
,
varID
[
i
],
&
var
[
start
]
,
nmiss
);
streamWriteVar
(
streamID
,
varID
[
i
],
var
,
nmiss
);
#endif
start
=
CDI_UNDEFID
;
chunk
=
CDI_UNDEFID
;
}
#ifdef USE_MPI
pioWriteTimestep
();
...
...
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