Commit 7fec3c22 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdfDefVar: changed !CDI_reduce_dim to vlistHasTime(vlistID).

parent abf7d135
...@@ -381,7 +381,7 @@ int cdfDefVar(stream_t *streamptr, int varID) ...@@ -381,7 +381,7 @@ int cdfDefVar(stream_t *streamptr, int varID)
int tid = streamptr->basetime.ncdimid; int tid = streamptr->basetime.ncdimid;
if ( !CDI_reduce_dim && tsteptype != TSTEP_CONSTANT ) if ( vlistHasTime(vlistID) && tsteptype != TSTEP_CONSTANT )
{ {
if ( tid == CDI_UNDEFID ) Error("Internal problem, time undefined!"); if ( tid == CDI_UNDEFID ) Error("Internal problem, time undefined!");
chunks[ndims] = 1; chunks[ndims] = 1;
......
...@@ -131,7 +131,7 @@ void streamInqRecord(int streamID, int *varID, int *levelID) ...@@ -131,7 +131,7 @@ void streamInqRecord(int streamID, int *varID, int *levelID)
*levelID = streamptr->vars[*varID].recordTable[isub].lindex[lindex]; *levelID = streamptr->vars[*varID].recordTable[isub].lindex[lindex];
if ( CDI_Debug ) if ( CDI_Debug )
Message("tsID = %d, recID = %d, varID = %d, levelID = %d\n", tsID, recID, *varID, *levelID); Message("tsID = %d, recID = %d, varID = %d, levelID = %d", tsID, recID, *varID, *levelID);
streamptr->curTsID = tsID; streamptr->curTsID = tsID;
streamptr->tsteps[tsID].curRecID = rindex; streamptr->tsteps[tsID].curRecID = rindex;
......
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