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

streamWriteVar: check time axis

parent a075c5c4
......@@ -1619,7 +1619,8 @@ cdiStreamWriteVar_(int streamID, int varID, int memtype, const void *data,
stream_check_ptr(__func__, streamptr);
// streamDefineTaxis(streamID);
// check taxis
if ( streamptr->curTsID == CDI_UNDEFID ) streamDefTimestep(streamID, 0);
filetype = streamptr->filetype;
......@@ -1802,6 +1803,9 @@ void stream_write_var_slice(int streamID, int varID, int levelID, int memtype, c
stream_check_ptr(__func__, streamptr);
// check taxis
if ( streamptr->curTsID == CDI_UNDEFID ) streamDefTimestep(streamID, 0);
filetype = streamptr->filetype;
switch (filetype)
......
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