Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
6009b95c
Commit
6009b95c
authored
Feb 11, 2014
by
Uwe Schulzweida
Browse files
cdi_int.h: include stdbool.h
parent
cb120e44
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/cdi_int.c
View file @
6009b95c
...
...
@@ -2,11 +2,7 @@
# include "config.h"
#endif
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#include <ctype.h>
#include "dmemory.h"
...
...
src/cdi_int.h
View file @
6009b95c
...
...
@@ -7,7 +7,9 @@
#include <assert.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#include <sys/types.h>
...
...
src/stream_cgribex.c
View file @
6009b95c
...
...
@@ -1639,8 +1639,8 @@ static
void
cgribexDefGrid
(
int
*
isec1
,
int
*
isec2
,
int
*
isec4
,
int
gridID
)
{
int
gridtype
;
int
lcurvi
=
FALSE
;
static
short
lwarn
=
TRUE
;
bool
lcurvi
=
false
;
static
bool
lwarn
ing
=
true
;
memset
(
isec2
,
0
,
16
*
sizeof
(
int
));
...
...
@@ -1661,7 +1661,7 @@ void cgribexDefGrid(int *isec1, int *isec2, int *isec4, int gridID)
if
(
(
ysize
==
32
||
ysize
==
48
||
ysize
==
64
||
ysize
==
96
||
ysize
==
160
||
ysize
==
192
||
ysize
==
240
||
ysize
==
320
||
ysize
==
384
||
ysize
==
480
||
ysize
==
768
)
&&
ysize
==
480
||
ysize
==
768
)
&&
(
xsize
==
2
*
ysize
||
xsize
==
1
)
)
{
gridtype
=
GRID_GAUSSIAN
;
...
...
@@ -1680,13 +1680,13 @@ void cgribexDefGrid(int *isec1, int *isec2, int *isec4, int gridID)
}
else
if
(
gridtype
==
GRID_CURVILINEAR
)
{
if
(
lwarn
&&
gridInqSize
(
gridID
)
>
1
)
if
(
lwarn
ing
&&
gridInqSize
(
gridID
)
>
1
)
{
lwarn
=
FALSE
;
lwarn
ing
=
false
;
Warning
(
"Curvilinear grids are unsupported in GRIB1! Created wrong GDS!"
);
}
gridtype
=
GRID_LONLAT
;
lcurvi
=
TRUE
;
lcurvi
=
true
;
}
ISEC2_Reduced
=
FALSE
;
...
...
@@ -1890,8 +1890,8 @@ void cgribexDefLevel(int *isec1, int *isec2, double *fsec2, int zaxisID, int lev
{
double
level
;
int
ilevel
,
zaxistype
,
ltype
;
static
int
warning
=
1
;
static
int
vct_warning
=
1
;
static
bool
l
warning
=
true
;
static
bool
lwarning_vct
=
true
;
zaxistype
=
zaxisInqType
(
zaxisID
);
ltype
=
zaxisInqLtype
(
zaxisID
);
...
...
@@ -1985,18 +1985,18 @@ void cgribexDefLevel(int *isec1, int *isec2, double *fsec2, int zaxisID, int lev
}
vctsize
=
zaxisInqVctSize
(
zaxisID
);
if
(
vctsize
==
0
&&
warning
)
if
(
vctsize
==
0
&&
l
warning
)
{
Warning
(
"VCT missing. ( param = %d, zaxisID = %d )"
,
ISEC1_Parameter
,
zaxisID
);
warning
=
0
;
l
warning
=
false
;
}
if
(
vctsize
>
255
)
{
ISEC2_NumVCP
=
0
;
if
(
vct_
warning
)
if
(
l
warning
_vct
)
{
Warning
(
"VCT size of %d is too large (maximum is 255). Set to 0!"
,
vctsize
);
vct_
warning
=
0
;
l
warning
_vct
=
false
;
}
}
else
...
...
src/varscan.c
View file @
6009b95c
...
...
@@ -2,7 +2,6 @@
# include "config.h"
#endif
#include <stdbool.h>
#include <string.h>
#include <math.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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