Commit 5ba03c52 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Narrow scope of variables.

parent e66f63eb
......@@ -1179,8 +1179,6 @@ void cdfDefUnstructured(stream_t *streamptr, int gridID, int gridindex)
nc_type xtype = (nc_type)cdfDefDatatype(gridInqPrec(gridID), streamptr->filetype);
ncgrid_t *ncgrid = streamptr->ncgrid;
int fileID = streamptr->fileID;
size_t dimlen = (size_t)gridInqSize(gridID);
for ( int index = 0; index < gridindex; index++ )
......@@ -1211,6 +1209,7 @@ void cdfDefUnstructured(stream_t *streamptr, int gridID, int gridindex)
if ( dimID == CDI_UNDEFID )
{
int fileID = streamptr->fileID;
if ( streamptr->ncmode == 2 ) cdf_redef(fileID);
{
char xdimname[CDI_MAX_NAME+3];
......
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