PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Macros | Functions | Variables
utCalendar2_cal.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "udunits2.h"
#include "calcalcs.h"
#include "utCalendar2_cal.h"

Go to the source code of this file.

Macros

#define UTC2_MAX_UNKCAL_WARNS   1000
 

Functions

static void initialize (ut_system *units_system)
 
static void get_origin (ut_unit *dataunits, int *y0, int *mon0, int *d0, int *h0, int *min0, double *s0)
 
static cv_converter * get_day_to_user_converter (ut_unit *uu, int y0, int mon0, int d0, int h0, int min0, double s0)
 
static cv_converter * get_user_to_day_converter (ut_unit *uu, int y0, int mon0, int d0, int h0, int min0, double s0)
 
static calcalcs_calgetcal (const char *name)
 
static void unknown_cal_emit_warning (const char *calendar_name)
 
int utCalendar2_cal (double val, ut_unit *dataunits, int *year, int *month, int *day, int *hour, int *minute, double *second, const char *calendar_name)
 
int utInvCalendar2_cal (int year, int month, int day, int hour, int minute, double second, ut_unit *user_unit, double *value, const char *calendar_name)
 

Variables

static int have_initted =0
 
static calcalcs_calcal_std =NULL
 
static const double sec_rounding_value = 1.e-8
 
static const int maxcals_known =100
 
static int ncals_known =0
 
static calcalcs_cal ** known_cal
 
static char ** known_cal_name
 
static char * unknown_cal_emitted_warning_for [UTC2_MAX_UNKCAL_WARNS]
 
static int n_unkcal =0