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

Vertstat cleanup

parent 1f53d6b8
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,6 @@ void *Vertstat(void *argument)
int varID, levelID;
int nmiss;
double missval;
field_t field;
typedef struct {
int zaxisID;
int status;
......@@ -240,6 +239,7 @@ void *Vertstat(void *argument)
int gridsize = vlistGridsizeMax(vlistID1);
field_t field;
field_init(&field);
field.ptr = (double*) malloc(gridsize*sizeof(double));
......@@ -332,7 +332,7 @@ void *Vertstat(void *argument)
if ( nmiss > 0 || samp1[varID].ptr || needWeights )
{
if ( samp1[varID].ptr == NULL )
samp1[varID].ptr = (double*) malloc(gridsize*sizeof(double));
samp1[varID].ptr = (double *) malloc(gridsize*sizeof(double));
for ( i = 0; i < gridsize; i++ )
if ( DBL_IS_EQUAL(vars1[varID].ptr[i], vars1[varID].missval) )
......
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