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
7068fcc5
Commit
7068fcc5
authored
Sep 07, 2006
by
Uwe Schulzweida
Browse files
vlistChangeVarGrid: bug fix
parent
9101e12b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
7068fcc5
...
...
@@ -3,6 +3,7 @@
* using GRIB library version 1.0.2
* grbCopyRecord: add SZIP support
* vlistChangeVarGrid: bug fix
* cdfDefVar: set default datatype for addoffset and scalefactor to double
* cdfWriteVar*: round integer fields with NINT [report: Etienne Tourigny]
* Version 1.0.2 released
...
...
src/vlist_var.c
View file @
7068fcc5
...
...
@@ -1205,7 +1205,7 @@ void vlistChangeVarZaxis(int vlistID, int varID, int zaxisID)
for
(
index
=
0
;
index
<
vlistptr
->
nzaxis
;
index
++
)
if
(
vlistptr
->
zaxisIDs
[
index
]
==
zaxisID
)
break
;
if
(
index
==
nvar
s
)
if
(
index
==
vlistptr
->
nzaxi
s
)
{
if
(
vlistptr
->
nzaxis
+
1
>=
MAX_ZAXIS
)
Error
(
func
,
"Maximum of %d zaxis reached"
,
MAX_ZAXIS
);
...
...
@@ -1245,7 +1245,7 @@ void vlistChangeVarGrid(int vlistID, int varID, int gridID)
for
(
index
=
0
;
index
<
vlistptr
->
ngrids
;
index
++
)
if
(
vlistptr
->
gridIDs
[
index
]
==
gridID
)
break
;
if
(
index
==
nvar
s
)
if
(
index
==
vlistptr
->
ngrid
s
)
{
if
(
vlistptr
->
ngrids
+
1
>=
MAX_GRIDS
)
Error
(
func
,
"Maximum of %d grids reached"
,
MAX_GRIDS
);
...
...
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