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
9d42ea6c
Commit
9d42ea6c
authored
Jul 13, 2016
by
Uwe Schulzweida
Browse files
Check ntsteps of time varying grids.
parent
49b7fd3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf_i.c
View file @
9d42ea6c
...
...
@@ -2190,7 +2190,9 @@ bool cdf_read_coordinates(struct cdfLazyGrid *restrict lazyGrid, ncvar_t *ncvar,
{
if
(
ncvars
[
xvarid
].
dimids
[
0
]
==
timedimid
&&
ncvars
[
yvarid
].
dimids
[
0
]
==
timedimid
)
{
if
(
ltwarn
)
Warning
(
"Time varying grids unsupported, using grid at time step 1!"
);
size_t
ntsteps
=
0
;
cdf_inq_dimlen
(
ncvar
->
ncid
,
timedimid
,
&
ntsteps
);
if
(
ltwarn
&&
ntsteps
>
1
)
Warning
(
"Time varying grids unsupported, using grid at time step 1!"
);
ltwarn
=
false
;
ntdims
=
1
;
start
[
0
]
=
start
[
1
]
=
start
[
2
]
=
0
;
...
...
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