Skip to content
GitLab
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
76064315
Commit
76064315
authored
Feb 06, 2014
by
Uwe Schulzweida
Browse files
cdi_generate_vars: init ldec and linc with true (bug fix)
parent
03ac5f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/varscan.c
View file @
76064315
...
...
@@ -539,7 +539,7 @@ void cdi_generate_vars(stream_t *streamptr)
if
(
nlevels
>
1
)
{
bool
linc
=
fals
e
,
ldec
=
fals
e
,
lsort
=
false
;
bool
linc
=
tru
e
,
ldec
=
tru
e
,
lsort
=
false
;
for
(
levelID
=
1
;
levelID
<
nlevels
;
levelID
++
)
{
/* check increasing of levels */
...
...
@@ -547,6 +547,7 @@ void cdi_generate_vars(stream_t *streamptr)
/* check decreasing of levels */
ldec
&=
(
dlevels
[
levelID
]
<
dlevels
[
levelID
-
1
]);
}
printf
(
"ldec %d linc %d
\n
"
,
ldec
,
linc
);
/*
* always sort pressure z-axis to ensure
* vartable[varid].levelTable[levelID1].level1 < vartable[varid].levelTable[levelID2].level1 <=> levelID1 > levelID2
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment