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

cdo_define_subgrid_grid: change size of xvals/yvals to source grid (bug fix).

parent 2ed52ae1
No related branches found
No related tags found
No related merge requests found
......@@ -364,8 +364,8 @@ int cdo_define_subgrid_grid(int gridSrcID, int subI0, int subI1, int subJ0, int
if ( gridInqXvals(gridSrcID, NULL) && gridInqYvals(gridSrcID, NULL) )
{
double *xvals = (double*) Malloc(xsize*sizeof(double));
double *yvals = (double*) Malloc(ysize*sizeof(double));
double *xvals = (double*) Malloc(gridXsize*sizeof(double));
double *yvals = (double*) Malloc(gridYsize*sizeof(double));
gridInqXvals(gridSrcID, xvals);
gridInqYvals(gridSrcID, yvals);
gridDefXvals(gridID_sampled, xvals);
......
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