Skip to content
Snippets Groups Projects
Commit 627f4a83 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Eliminate failure mode where streamDefTimestep is called before streamDefVlist.

parent d70cc021
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -1293,6 +1293,11 @@ cdiStreamDefTimestep_(stream_t *streamptr, int tsID)
if (CDI_Debug) Message("streamID = %d tsID = %d", streamptr->self, tsID);
const int vlistID = streamptr->vlistID;
if (vlistID == CDI_UNDEFID)
Error("Must not call streamDefTimestep for stream (ID=%d)"
" with (not yet) defined vlist",
streamptr->self);
const int timeIsVarying = vlistHasTime(vlistID);
const int taxisID = vlistInqTaxis(vlistID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment