Commit 3aa1515b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gridComplete: call gridDefPosition() also if number=0.

parent 3f1599b9
......@@ -2698,11 +2698,8 @@ void gridComplete(grid_t *grid)
{
int number = grid->number;
int position = grid->position >= 0 ? grid->position : 0;
if ( number > 0 )
{
gridDefNumber(gridID, number);
gridDefPosition(gridID, position);
}
if ( number > 0 ) gridDefNumber(gridID, number);
gridDefPosition(gridID, position);
}
break;
}
......@@ -2721,8 +2718,7 @@ void gridComplete(grid_t *grid)
if ( grid->ydef == 2 )
{
double *yvals
= (double *) Malloc((size_t)grid->y.size * sizeof (double));
double *yvals = (double *) Malloc((size_t)grid->y.size * sizeof (double));
gridGenYvals(gridtype, grid->y.size, grid->yfirst, grid->ylast, grid->yinc, yvals);
grid->y.vals = yvals;
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment