Commit 08b46dc2 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix update of grid type-related fields for lazy cdf grids.

parent ca71ba4e
...@@ -5278,7 +5278,12 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva ...@@ -5278,7 +5278,12 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
} }
} }
grid->type = ncvars[ncvarid].gridtype; if (grid->type != ncvars[ncvarid].gridtype)
{
int gridtype = ncvars[ncvarid].gridtype;
grid->type = gridtype;
cdiGridTypeInit(grid, gridtype, grid->size);
}
if ( grid->size == 0 ) if ( grid->size == 0 )
{ {
......
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