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
eda1c09d
Commit
eda1c09d
authored
Mar 12, 2013
by
Uwe Schulzweida
Browse files
cdi_generate_vars: uinitialize level_sf with 1 (bug fix)
parent
c3e039f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/varscan.c
View file @
eda1c09d
...
...
@@ -314,17 +314,16 @@ void varAddRecord(int recID, int param, int gridID, int zaxistype, int lbounds,
}
else
{
char
paramstr
[
32
];
cdiParamToString
(
param
,
paramstr
,
sizeof
(
paramstr
));
if
(
vartable
[
varID
].
gridID
!=
gridID
)
{
char
paramstr
[
32
];
cdiParamToString
(
param
,
paramstr
,
sizeof
(
paramstr
));
Message
(
"param = %s gridID = %d"
,
paramstr
,
gridID
);
Error
(
"horizontal grid must not change for same param!"
);
}
if
(
vartable
[
varID
].
zaxistype
!=
zaxistype
)
{
char
paramstr
[
32
];
cdiParamToString
(
param
,
paramstr
,
sizeof
(
paramstr
));
Message
(
"param = %s zaxistype = %d"
,
paramstr
,
zaxistype
);
Error
(
"zaxistype must not change for same param!"
);
}
...
...
@@ -476,6 +475,7 @@ void cdi_generate_vars(stream_t *streamptr)
timaccu
=
vartable
[
varid
].
timaccu
;
comptype
=
vartable
[
varid
].
comptype
;
level_sf
=
1
;
if
(
vartable
[
varid
].
level_sf
==
77
)
level_sf
=
0
.
001
;
zaxisID
=
UNDEFID
;
...
...
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