Skip to content
Snippets Groups Projects
Commit 517d629a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

tests/test_grib.c: init data array

parent cb25971a
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ int main(int argc, char *argv[])
datasize = nlon * nlat;
data = (double *) malloc(datasize*sizeof(double));
memset(data, 0, datasize*sizeof(double));
gridID = gridCreate(GRID_GAUSSIAN, datasize);
gridDefXsize(gridID, nlon);
......@@ -83,6 +84,7 @@ int main(int argc, char *argv[])
}
data = (double *) malloc(datasize*sizeof(double));
memset(data, 0, datasize*sizeof(double));
taxisID = vlistInqTaxis(vlistID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment