/* * Copyright 2005-2015 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. */ #include #include #include "eccodes.h" /* See JIRA issue GRIB-361 */ int main() { const int ni = 2880; const int nj = 2880; double *values; int i = 0; codes_handle *h = NULL; char* filename = "bigfile.grib"; values = (double*) malloc(ni*nj*sizeof(double)); if (!values) { printf ("Malloc failed\n"); exit(1); } for (i=0; i