Commit 07c298e2 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added stream_scan.c.

parent 0086bbd7
......@@ -103,6 +103,8 @@ libcdi_la_SOURCES = \
stream_ieg.h \
cdi_int.c \
cdi_int.h \
stream_scan.c \
strean_scan.h \
stream_record.c \
stream_srv.c \
stream_srv.h \
......
......@@ -129,6 +129,7 @@ files="basetime.c \
resource_handle.c \
serialize.c \
servicelib.c \
stream_scan.c \
stream.c \
stream_write.c \
stream_read.c \
......
#include "stream_scan.h"
void streamScanTimeConstAdjust(stream_t *streamptr, const taxis_t *taxis)
{
const int vlistID = streamptr->vlistID;
if ( streamptr->ntsteps == 1 )
{
if ( taxis->vdate == 0 && taxis->vtime == 0 )
{
streamptr->ntsteps = 0;
for ( int varID = 0; varID < streamptr->nvars; varID++ )
vlistDefVarTimetype(vlistID, varID, TIME_CONSTANT);
}
}
}
#ifndef STREAM_SCAN_H
#define STREAM_SCAN_H
#include "cdi_int.h"
void streamScanTimeConstAdjust(stream_t *streamptr, const taxis_t *taxis);
#endif /* STREAM_SCAN_H */
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