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
4896e3e1
Commit
4896e3e1
authored
Aug 29, 2011
by
Uwe Schulzweida
Browse files
cgribexlib update
parent
85b41ffb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cgribexlib.c
View file @
4896e3e1
/* Automatically generated by m214003 at 2011-08-2
7
, do not edit */
/* Automatically generated by m214003 at 2011-08-2
9
, do not edit */
/* CGRIBEXLIB_VERSION="1.5.1" */
...
...
@@ -3812,7 +3812,7 @@ void gribEncode(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
bmsIncluded
=
ISEC1_Sec2Or3Flag
&
64
;
/* set max header len */
len
=
3000
;
len
=
16384
;
/* add data len */
numBytes
=
(
ISEC4_NumBits
+
7
)
>>
3
;
...
...
@@ -3822,7 +3822,6 @@ void gribEncode(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
/* add bitmap len */
if
(
bmsIncluded
)
len
+=
(
klenp
+
7
)
>>
3
;
#if defined (VECTORCODE)
lGrib
=
(
GRIBPACK
*
)
malloc
(
len
*
sizeof
(
GRIBPACK
));
if
(
lGrib
==
NULL
)
SysError
(
"No Memory!"
);
...
...
@@ -3878,17 +3877,15 @@ void gribEncode(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
bdsend
=
gribLen
;
encodeES
(
lGrib
,
&
gribLen
,
bdsstart
);
if
(
(
size_t
)
gribLen
>
len
)
Error
(
"lGrib buffer too small! len = %d gribLen = %d"
,
len
,
gribLen
);
if
(
(
size_t
)
gribLen
>
kleng
*
sizeof
(
int
)
)
Error
(
"kgrib buffer too small! kleng = %d gribLen = %d"
,
kleng
,
gribLen
);
#if defined (VECTORCODE)
if
(
(
size_t
)
gribLen
>
len
)
Error
(
"lGrib buffer too small! len = %d gribLen = %d"
,
len
,
gribLen
);
(
void
)
PACK_GRIB
(
lGrib
,
(
unsigned
char
*
)
CGrib
,
gribLen
,
-
1L
);
#endif
#if defined (VECTORCODE)
free
(
lGrib
);
#endif
...
...
@@ -9170,7 +9167,7 @@ int gribUnzip(unsigned char *dbuf, long dbufsize, unsigned char *sbuf, long sbu
return
(
gribLen
);
}
static
const
char
grb_libvers
[]
=
"1.5.1"
" of ""Aug 2
7
2011"" ""
08:40:40
"
;
static
const
char
grb_libvers
[]
=
"1.5.1"
" of ""Aug 2
9
2011"" ""
20:30:27
"
;
const
char
*
cgribexLibraryVersion
(
void
)
{
...
...
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