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

0006-some-more-better-debug-output.patch

parent a3e31d15
......@@ -493,7 +493,7 @@ void cdfGetSliceSlapDescription(stream_t *streamptr, int varId, int levelId, boo
if ( CDI_Debug )
for (int idim = 0; idim < ndims; idim++)
Message("dim = %d start = %d count = %d", idim, start[idim], count[idim]);
Message("dim = %d start = %d count = %d", idim, (*start)[idim], (*count)[idim]);
int nvdims;
cdf_inq_varndims(fileId, ncvarid, &nvdims);
......
......@@ -5791,6 +5791,10 @@ int cmpvarname(const void *s1, const void *s2)
static
void define_all_vars(stream_t *streamptr, int vlistID, int instID, int modelID, int *varids, int nvars, int num_ncvars, ncvar_t *ncvars)
{
if ( CDI_Debug )
{
for(int i = 0; i < nvars; i++) Message("varids[%d] = %d", i, varids[i]);
}
if ( streamptr->sortname )
{
struct varinfo *varInfo
......@@ -5808,6 +5812,10 @@ void define_all_vars(stream_t *streamptr, int vlistID, int instID, int modelID,
varids[varID] = varInfo[varID].ncvarid;
}
Free(varInfo);
if ( CDI_Debug )
{
for(int i = 0; i < nvars; i++) Message("sorted varids[%d] = %d", i, varids[i]);
}
}
for ( int varID1 = 0; varID1 < nvars; varID1++ )
......
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