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
7ed7cf0d
Commit
7ed7cf0d
authored
Jul 04, 2012
by
Uwe Schulzweida
Browse files
stream_cdf::define_all_grids: modify check for same x and y varids
parent
4e3af8e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
7ed7cf0d
...
...
@@ -5722,12 +5722,11 @@ void define_all_grids(stream_t *streamptr, int fileID, int vlistID, ncdim_t *ncd
if ( yvarid != -1 && ncvars[ncvarid2].yvarid != UNDEFID &&
yvarid != ncvars[ncvarid2].yvarid ) same_grid = FALSE;
*/
if
(
xvarid
!=
ncvars
[
ncvarid2
].
xvarid
)
same_grid
=
FALSE
;
if
(
yvarid
!=
ncvars
[
ncvarid2
].
yvarid
)
same_grid
=
FALSE
;
if
(
ncvars
[
ncvarid
].
xvarid
!=
ncvars
[
ncvarid2
].
xvarid
)
same_grid
=
FALSE
;
if
(
ncvars
[
ncvarid
].
yvarid
!=
ncvars
[
ncvarid2
].
yvarid
)
same_grid
=
FALSE
;
if
(
same_grid
)
{
printf
(
"xvarid %d %d yvarid %d %d
\n
"
,
xvarid
,
ncvars
[
ncvarid2
].
xvarid
,
yvarid
,
ncvars
[
ncvarid2
].
yvarid
);
if
(
CDI_Debug
)
Message
(
"Same gridID %d %d %s"
,
ncvars
[
ncvarid
].
gridID
,
ncvarid2
,
ncvars
[
ncvarid2
].
name
);
...
...
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