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

Timstat: added call to taxisWithBounds().

parent 8b976586
......@@ -461,10 +461,7 @@ void *Settime(void *argument)
while ( month > 12 ) { month -= 12; year++; }
while ( month < 1 ) { month += 12; year--; }
if ( day0 == 31 )
day = days_per_month(calendar, year, month);
else
day = day0;
day = (day0 == 31) ? days_per_month(calendar, year, month) : day0;
vdate = cdiEncodeDate(year, month, day);
}
......@@ -534,6 +531,7 @@ void *Settime(void *argument)
taxisDefNumavg(taxisID2, numavg);
taxisDefVdate(taxisID2, vdate);
taxisDefVtime(taxisID2, vtime);
if ( taxis_has_bounds || operatorID == SETTBOUNDS )
{
......
......@@ -184,6 +184,8 @@ void *Timstat(void *argument)
int taxisID1 = vlistInqTaxis(vlistID1);
int taxisID2 = taxisDuplicate(taxisID1);
bool time_with_bounds = true;
if ( time_with_bounds ) taxisWithBounds(taxisID2);
if ( taxisInqType(taxisID2) == TAXIS_FORECAST ) taxisDefType(taxisID2, TAXIS_RELATIVE);
vlistDefTaxis(vlistID2, taxisID2);
......
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