basetime.c 667 Bytes
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
#include <stddef.h>  // for NULL
Uwe Schulzweida's avatar
Uwe Schulzweida committed
2
3
#include "cdi.h"
#include "basetime.h"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
4
#include "error.h"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
5
6


7
void basetimeInit(basetime_t *basetime)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
8
{
9
  if (basetime == NULL) Error("Internal problem! Basetime not allocated.");
Uwe Schulzweida's avatar
Uwe Schulzweida committed
10

11
12
13
14
15
16
17
18
19
  if (basetime)
    {
      basetime->ncvarid       = CDI_UNDEFID;
      basetime->ncdimid       = CDI_UNDEFID;
      basetime->ncvarboundsid = CDI_UNDEFID;
      basetime->leadtimeid    = CDI_UNDEFID;
      basetime->lwrf          = false;
      basetime->timevar_cache = NULL;
    }
Uwe Schulzweida's avatar
Uwe Schulzweida committed
20
}
Uwe Schulzweida's avatar
Uwe Schulzweida committed
21

22
23
24
25
26
27
28
29
30
/*
 * Local Variables:
 * c-file-style: "Java"
 * c-basic-offset: 2
 * indent-tabs-mode: nil
 * show-trailing-whitespace: t
 * require-trailing-newline: t
 * End:
 */