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
b0ad448a
Commit
b0ad448a
authored
Jan 07, 2010
by
Uwe Schulzweida
Browse files
cgribex lib update
parent
66e11ab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cgribexlib.c
View file @
b0ad448a
...
...
@@ -3766,7 +3766,6 @@ void gribEncode(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
if
(
(
size_t
)
gribLen
>
kleng
*
sizeof
(
int
)
)
Error
(
func
,
"kgrib buffer too small! kleng = %d gribLen = %d"
,
kleng
,
gribLen
);
printf
(
"gribLen %d, *kword %d
\n
"
,
gribLen
,
*
kword
);
#if defined (VECTORCODE)
(
void
)
PACK_GRIB
(
lGrib
,
(
unsigned
char
*
)
CGrib
,
gribLen
,
-
1L
);
...
...
@@ -3953,11 +3952,8 @@ void gribEncode(int *isec0, int *isec1, int *isec2, double *fsec2, int *isec3,
ISEC0_GRIB_Version
=
1
;
*
kword
=
gribLen
/
sizeof
(
int
);
printf
(
"gribLen %d, *kword %d
\n
"
,
gribLen
,
*
kword
);
if
(
(
size_t
)
gribLen
!=
*
kword
*
sizeof
(
int
)
)
*
kword
+=
1
;
printf
(
"gribLen %d, *kword %d
\n
"
,
gribLen
,
*
kword
);
*
kret
=
status
;
}
...
...
@@ -9111,7 +9107,7 @@ int gribUnzip(unsigned char *dbuf, long dbufsize, unsigned char *sbuf, long sbu
return
(
gribLen
);
}
static
const
char
grb_libvers
[]
=
"1.4.2"
" of ""Jan 7 2010"" ""1
1:25:14
"
;
static
const
char
grb_libvers
[]
=
"1.4.2"
" of ""Jan 7 2010"" ""1
3:16:50
"
;
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