PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
Classes | Macros | Typedefs | Functions
calcalcs.h File Reference

Go to the source code of this file.

Classes

struct  cccalendar
 
struct  ccs_ccode
 

Macros

#define CALCALCS_VERSION_NUMBER   1.0
 
#define CALCALCS_ERR_NO_YEAR_ZERO   -10
 
#define CALCALCS_ERR_DATE_NOT_IN_CALENDAR   -11
 
#define CALCALCS_ERR_INVALID_DAY_OF_YEAR   -12
 
#define CALCALCS_ERR_NOT_A_MIXED_CALENDAR   -13
 
#define CALCALCS_ERR_UNKNOWN_COUNTRY_CODE   -14
 
#define CALCALCS_ERR_OUT_OF_RANGE   -15
 
#define CALCALCS_ERR_NULL_CALENDAR   -16
 
#define CALCALCS_ERR_INVALID_CALENDAR   -17
 

Typedefs

typedef struct cccalendar calcalcs_cal
 
typedef struct ccs_ccode ccs_country_code
 

Functions

calcalcs_calccs_init_calendar (const char *calname)
 
void ccs_free_calendar (calcalcs_cal *calendar)
 
int ccs_date2jday (calcalcs_cal *calendar, int year, int month, int day, int *jday)
 
int ccs_jday2date (calcalcs_cal *calendar, int jday, int *year, int *month, int *day)
 
int ccs_isleap (calcalcs_cal *calendar, int year, int *leap)
 
int ccs_dpm (calcalcs_cal *calendar, int year, int month, int *dpm)
 
int ccs_date2doy (calcalcs_cal *calendar, int year, int month, int day, int *doy)
 
int ccs_doy2date (calcalcs_cal *calendar, int year, int doy, int *month, int *day)
 
int ccs_dayssince (calcalcs_cal *calendar_orig, int year_orig, int month_orig, int day_orig, int ndays_since, calcalcs_cal *calendar_new, int *year_new, int *month_new, int *day_new)
 
int ccs_set_xition_date (calcalcs_cal *calendar, int year, int month, int day)
 
int ccs_get_xition_date (const char *country_code, int *year, int *month, int *day)
 
char * ccs_err_str (int error_code)