Skip to content
Snippets Groups Projects
Commit b7c082c8 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Adjust test to use no-fail wrappers.

parent 89a5e2dd
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
#include <string.h>
#include "cdi.h"
#include "dmemory.h"
int main(int argc, char *argv[])
{
......@@ -27,7 +28,7 @@ int main(int argc, char *argv[])
datasize = nlon * nlat;
data = (double *) malloc(datasize*sizeof(double));
data = (double *)xmalloc(datasize*sizeof(double));
memset(data, 0, datasize*sizeof(double));
gridID = gridCreate(GRID_GAUSSIAN, datasize);
......@@ -83,7 +84,7 @@ int main(int argc, char *argv[])
if ( gridsize*nlevel > datasize ) datasize = gridsize*nlevel;
}
data = (double *) malloc(datasize*sizeof(double));
data = (double *)xrealloc(data, 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