mirror of https://github.com/ecmwf/eccodes.git
Testing: GRIB1 data_dummy_field packing
This commit is contained in:
parent
f3f8025d57
commit
78aa519961
|
@ -140,8 +140,7 @@ static void init(grib_accessor* a, const long v, grib_arguments* args)
|
|||
static int unpack_double(grib_accessor* a, double* val, size_t* len)
|
||||
{
|
||||
grib_accessor_data_dummy_field* self = (grib_accessor_data_dummy_field*)a;
|
||||
size_t i = 0;
|
||||
size_t n_vals = 0;
|
||||
size_t i = 0, n_vals = 0;
|
||||
long numberOfPoints;
|
||||
double missing_value = 0;
|
||||
int err = 0;
|
||||
|
@ -174,14 +173,10 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
|
|||
{
|
||||
grib_accessor_data_dummy_field* self = (grib_accessor_data_dummy_field*)a;
|
||||
|
||||
|
||||
size_t n_vals = *len;
|
||||
int err = 0;
|
||||
|
||||
long bits_per_value = 0;
|
||||
|
||||
long half_byte = 0;
|
||||
|
||||
size_t buflen = 0;
|
||||
unsigned char* buf = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue