Commit 003ca86f authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

vlistCopyFlag: init mlevelID with levID2 (bug fix).

parent 3a8f6ed3
2020-03-05 Uwe Schulzweida
* vlistCopyFlag: init mlevelID with levID2 (bug fix)
2020-02-26 Uwe Schulzweida 2020-02-26 Uwe Schulzweida
* Added function cdiInqAttType() and cdiDelAtt() * Added function cdiInqAttType() and cdiDelAtt()
......
...@@ -604,7 +604,7 @@ void vlistCopyFlag(int vlistID2, int vlistID1) ...@@ -604,7 +604,7 @@ void vlistCopyFlag(int vlistID2, int vlistID1)
int zaxisType = zaxisInqType(zaxisID); int zaxisType = zaxisInqType(zaxisID);
int levID2 = 0; int levID2 = 0;
for ( int levID = 0; levID < nlevs; ++levID ) for ( int levID = 0; levID < nlevs; levID++ )
if ( vars1[varID].levinfo[levID].flag ) if ( vars1[varID].levinfo[levID].flag )
{ {
vars1[varID].levinfo[levID].flevelID = levID2; vars1[varID].levinfo[levID].flevelID = levID2;
...@@ -727,7 +727,7 @@ void vlistCopyFlag(int vlistID2, int vlistID1) ...@@ -727,7 +727,7 @@ void vlistCopyFlag(int vlistID2, int vlistID1)
if ( vars1[varID].levinfo[levID].flag ) if ( vars1[varID].levinfo[levID].flag )
{ {
vars2[varID2].levinfo[levID2].flevelID = levID; vars2[varID2].levinfo[levID2].flevelID = levID;
vars2[varID2].levinfo[levID2].mlevelID = levID; vars2[varID2].levinfo[levID2].mlevelID = levID2;
levID2++; levID2++;
} }
......
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