Commit fd7ae5e4 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdf_define_all_zaxes: bug fix for ZAXIS_CHAR.

parent 79cf0ffb
......@@ -2843,7 +2843,8 @@ int cdf_define_all_zaxes(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int
if ( zdimid != CDI_UNDEFID )
{
zvarid = ncdims[zdimid].ncvarid;
// zvarid = ncdims[zdimid].ncvarid;
zvarid = (ncvar->zvarid != CDI_UNDEFID) ? ncvar->zvarid : ncdims[zdimid].ncvarid;
zsize = (int)ncdims[zdimid].len;
}
}
......
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