Changeset 24631


Ignore:
Timestamp:
03/03/20 13:24:04 (5 years ago)
Author:
Mathieu Morlighem
Message:

BUG: offset not properly set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Element.cpp

    r24626 r24631  
    570570                parameters->FindParam(&time_temp_scaled,&N,SmbTemperaturesReconstructedYearsEnum);
    571571                if(!binary_search(&offset_t,time_climt,time_temp_scaled,N)) _error_("time not sorted?");
     572                if(offset_t<0) offset_t=0;
    572573                xDelete<IssmDouble>(time_temp_scaled);
    573574                dinput3=this->GetDatasetInput2(SmbTemperaturesReconstructedEnum); _assert_(dinput3);
     
    576577                IssmDouble* time_precip_scaled = NULL;
    577578                parameters->FindParam(&time_precip_scaled,&N,SmbPrecipitationsReconstructedYearsEnum);
    578                 if(!binary_search(&offset_t,time_climt,time_precip_scaled,N)) _error_("time not sorted?");
     579                if(!binary_search(&offset_p,time_climt,time_precip_scaled,N)) _error_("time not sorted?");
     580                if(offset_p<0) offset_p=0;
    579581                xDelete<IssmDouble>(time_precip_scaled);
    580582                dinput4=this->GetDatasetInput2(SmbPrecipitationsReconstructedEnum); _assert_(dinput4);
Note: See TracChangeset for help on using the changeset viewer.