basetime.c 691 Bytes
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#if defined (HAVE_CONFIG_H)
#  include "config.h"
#endif

#include <stdio.h>

#include "error.h"
#include "cdi.h"
#include "basetime.h"

#undef  UNDEFID
#define UNDEFID  CDI_UNDEFID

14
void basetimeInit(basetime_t *basetime)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
15
16
{
  if ( basetime == NULL )
17
    Error("Internal problem! Basetime not allocated.");
Uwe Schulzweida's avatar
Uwe Schulzweida committed
18

19
20
21
22
23
24
  basetime->ncvarid       = UNDEFID;
  basetime->ncdimid       = UNDEFID;
  basetime->ncvarboundsid = UNDEFID;
  basetime->leadtimeid    = UNDEFID;
  basetime->lwrf          = 0;
  basetime->timevar_cache = NULL;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
25
}
26
27
28
29
30
31
32
33
34
/*
 * Local Variables:
 * c-file-style: "Java"
 * c-basic-offset: 2
 * indent-tabs-mode: nil
 * show-trailing-whitespace: t
 * require-trailing-newline: t
 * End:
 */
35