Commit bd13696a authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Save one copy of [xy] value data.

parent 224bef30
......@@ -2576,8 +2576,7 @@ static void gridComplete(grid_t *grid)
double *xvals
= (double *) Malloc((size_t)grid->xsize * sizeof (double));
gridGenXvals(grid->xsize, grid->xfirst, grid->xlast, grid->xinc, xvals);
gridDefXvals(gridID, xvals);
Free(xvals);
grid->xvals = xvals;
/*
gridDefXinc(gridID, grid->xinc);
*/
......@@ -2590,8 +2589,7 @@ static void gridComplete(grid_t *grid)
double *yvals
= (double *) Malloc((size_t)grid->ysize * sizeof (double));
gridGenYvals(gridtype, grid->ysize, grid->yfirst, grid->ylast, grid->yinc, yvals);
gridDefYvals(gridID, yvals);
Free(yvals);
grid->yvals = yvals;
/*
gridDefYinc(gridID, grid->yinc);
*/
......@@ -2677,8 +2675,7 @@ static void gridComplete(grid_t *grid)
double *yvals
= (double *) Malloc((size_t)grid->ysize * sizeof (double));
gridGenYvals(gridtype, grid->ysize, grid->yfirst, grid->ylast, grid->yinc, yvals);
gridDefYvals(gridID, yvals);
Free(yvals);
grid->yvals = yvals;
/*
gridDefYinc(gridID, grid->yinc);
*/
......
Supports Markdown
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