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
2dc1921c
Commit
2dc1921c
authored
Mar 02, 2011
by
Uwe Schulzweida
Browse files
gridCompare: added check for 1D generic grid
parent
4a62cc4e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
configure
View file @
2dc1921c
This diff is collapsed.
Click to expand it.
src/grid.c
View file @
2dc1921c
...
...
@@ -2359,6 +2359,10 @@ int gridCompare(int gridID, grid_t grid)
compareXYvals
(
gridID
,
xsize
,
ysize
,
grid
.
xvals
,
grid
.
yvals
,
&
differ
);
}
}
else
if
(
(
grid
.
ysize
==
0
||
grid
.
ysize
==
1
)
&&
grid
.
xsize
==
gridInqXsize
(
gridID
)
*
gridInqYsize
(
gridID
)
)
{
}
else
differ
=
1
;
}
...
...
src/stream_cdf.c
View file @
2dc1921c
...
...
@@ -889,6 +889,7 @@ void cdfDefTime(int streamID)
int
timeunit
;
timeunit
=
taxis
->
unit
;
if
(
timeunit
==
-
1
)
timeunit
=
TUNIT_HOUR
;
rdate
=
taxis
->
rdate
;
rtime
=
taxis
->
rtime
;
if
(
rdate
==
-
1
)
...
...
src/stream_cgribex.c
View file @
2dc1921c
...
...
@@ -92,7 +92,7 @@ int cgribexGetZaxisHasBounds(int grb_ltype)
static
int
cgribexGetTimeUnit
(
int
*
isec1
)
{
int
timeunit
=
-
1
;
int
timeunit
=
TUNIT_HOUR
;
static
int
lprint
=
TRUE
;
switch
(
ISEC1_TimeUnit
)
...
...
@@ -1539,8 +1539,8 @@ int cgribexDefDateTime(int *isec1, int timeunit, int date, int time)
if
(
ISEC1_Year
==
0
)
{
ISEC1_Year
=
100
;
century
-=
1
;
ISEC1_Year
=
100
;
}
century
+=
1
;
...
...
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