Commit dfa0bb98 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribexlib: update to version 1.7.2

parent 4810ccd4
2015-04-28 Uwe Schulzweida 2015-04-28 Uwe Schulzweida
* Version 1.6.9 released * Version 1.6.9 released
* using CGRIBEX library version 1.7.2
2015-04-22 Uwe Schulzweida 2015-04-22 Uwe Schulzweida
......
/* Automatically generated by m214003 at 2015-03-04, do not edit */ /* Automatically generated by m214003 at 2015-04-22, do not edit */
/* CGRIBEXLIB_VERSION="1.7.1" */ /* CGRIBEXLIB_VERSION="1.7.2" */
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5) #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5)
#pragma GCC diagnostic push #pragma GCC diagnostic push
...@@ -2456,42 +2456,48 @@ int gribTimeIsFC(int *isec1) ...@@ -2456,42 +2456,48 @@ int gribTimeIsFC(int *isec1)
void gribDateTime(int *isec1, int *date, int *time) void gribDateTime(int *isec1, int *date, int *time)
{ {
static int lprint = TRUE; static int lprint = TRUE;
int ryear, rmonth, rday, rhour, rminute, second;
int julday, secofday; int julday, secofday;
int64_t addsec = 0; int64_t addsec = 0;
int64_t time_period = 0; int64_t time_period = 0;
int century;
extern int grib_calendar; extern int grib_calendar;
century = ISEC1_Century; int century = ISEC1_Century;
if ( century < 0 ) century = -century; int ryear = ISEC1_Year;
century -= 1;
ryear = ISEC1_Year; if ( century == -255 && ryear == 127 )
/* if ( century != 0 ) */
{ {
if ( ryear == 100 ) century = 0;
{ ryear = 0;
ryear = 0; }
century += 1; else
} {
if ( century < 0 ) century = -century;
century -= 1;
if ( ryear != 255 ) /* if ( century != 0 ) */
{ {
ryear = century*100 + ryear; if ( ryear == 100 )
if ( ISEC1_Century < 0 ) ryear = -ryear; {
} ryear = 0;
else century += 1;
ryear = 1; }
if ( ryear != 255 )
{
ryear = century*100 + ryear;
if ( ISEC1_Century < 0 ) ryear = -ryear;
}
else
ryear = 1;
}
} }
rmonth = ISEC1_Month; int rmonth = ISEC1_Month;
rday = ISEC1_Day; int rday = ISEC1_Day;
rhour = ISEC1_Hour; int rhour = ISEC1_Hour;
rminute = ISEC1_Minute; int rminute = ISEC1_Minute;
second = 0; int second = 0;
/* printf("ref %d/%d/%d %d:%d\n", ryear, rmonth, rday, rhour, rminute); */ /* printf("ref %d/%d/%d %d:%d\n", ryear, rmonth, rday, rhour, rminute); */
...@@ -14197,7 +14203,7 @@ void encode_dummy(void) ...@@ -14197,7 +14203,7 @@ void encode_dummy(void)
(void) encode_array_unrolled_double(0, 0, 0, NULL, NULL, 0, 0, NULL); (void) encode_array_unrolled_double(0, 0, 0, NULL, NULL, 0, 0, NULL);
(void) encode_array_unrolled_float(0, 0, 0, NULL, NULL, 0, 0, NULL); (void) encode_array_unrolled_float(0, 0, 0, NULL, NULL, 0, 0, NULL);
} }
static const char grb_libvers[] = "1.7.1" " of ""Mar 4 2015"" ""13:33:34"; static const char grb_libvers[] = "1.7.2" " of ""Apr 22 2015"" ""13:44:04";
const char * const char *
cgribexLibraryVersion(void) cgribexLibraryVersion(void)
{ {
......
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