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

cdfDefAxisCommon: get nvertex from gridInqNvertex().

parent 6970e2d2
...@@ -547,7 +547,7 @@ cdfDefAxisCommon(stream_t *streamptr, int gridID, int gridindex, int ndims, ...@@ -547,7 +547,7 @@ cdfDefAxisCommon(stream_t *streamptr, int gridID, int gridindex, int ndims,
} }
if ( pbounds ) if ( pbounds )
{ {
size_t nvertex = 2; size_t nvertex = gridInqNvertex(gridID);
if ( nc_inq_dimid(fileID, bndsName, &nvdimID) != NC_NOERR ) if ( nc_inq_dimid(fileID, bndsName, &nvdimID) != NC_NOERR )
cdf_def_dim(fileID, bndsName, nvertex, &nvdimID); cdf_def_dim(fileID, bndsName, nvertex, &nvdimID);
} }
......
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