Commit 2c7dece1 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

taxisCopyTimestep: delete target units if reference time differ (bug fix).

parent 1f4e0760
2018-07-30 Uwe Schulzweida 2018-08-09 Uwe Schulzweida
* using CGRIBEX library version 1.9.1 * using CGRIBEX library version 1.9.1
* Version 1.9.5 released * Version 1.9.5 released
2018-08-05 Uwe Schulzweida
* taxisCopyTimestep: delete target units if reference time differ (bug fix)
2018-07-19 Florian Prill 2018-07-19 Florian Prill
* Added function cdiIterator_inqFiletype() * Added function cdiIterator_inqFiletype()
......
...@@ -598,6 +598,15 @@ void taxisCopyTimestep(int taxisID2, int taxisID1) ...@@ -598,6 +598,15 @@ void taxisCopyTimestep(int taxisID2, int taxisID1)
reshLock(); reshLock();
if (taxisptr2->units && taxisptr2->rdate != CDI_UNDEFID)
{
if (taxisptr2->rdate != taxisptr1->rdate || taxisptr2->rtime != taxisptr1->rtime)
{
delete_refcount_string(taxisptr2->units);
taxisptr2->units = NULL;
}
}
taxisptr2->rdate = taxisptr1->rdate; taxisptr2->rdate = taxisptr1->rdate;
taxisptr2->rtime = taxisptr1->rtime; taxisptr2->rtime = taxisptr1->rtime;
......
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