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
92ab0858
Commit
92ab0858
authored
Oct 08, 2018
by
Uwe Schulzweida
Browse files
NetCDF: Fix xyz dim order for unstructured grids without coordinates.
parent
81324990
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
92ab0858
...
...
@@ -3,6 +3,10 @@
* using EXSE library version 1.4.1
* Version 1.9.6 released
2018-10-08 Uwe Schulzweida
* NetCDF: Fix xyz dim order for unstructured grids without coordinates
2018-09-26 Uwe Schulzweida
* Added gridInqXvalsPart() and gridInqYvalsPart() [patch from: Niklas Rber]
...
...
src/stream_cdf_i.c
View file @
92ab0858
...
...
@@ -3188,7 +3188,7 @@ void cdf_define_all_vars(stream_t *streamptr, int vlistID, int instID, int model
const
int
*
dimids
=
ncvars
[
ncvarid
].
dimids
;
if
(
gridInqType
(
gridID
)
==
GRID_UNSTRUCTURED
&&
ndims
-
iodim
<=
2
&&
ydimid
==
xdimid
)
if
(
gridInqType
(
gridID
)
==
GRID_UNSTRUCTURED
&&
ndims
-
iodim
<=
2
&&
(
ydimid
==
xdimid
||
ydimid
==
CDI_UNDEFID
)
)
{
ixyz
=
(
xdimid
==
dimids
[
ndims
-
1
])
?
321
:
213
;
}
...
...
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