Changeset 27185


Ignore:
Timestamp:
08/02/22 06:05:10 (3 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing AD, does not want a subtraction in function call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Inputs/TransientInput.cpp

    r27180 r27185  
    477477                _error_("Input not found (is TransientInput sorted ?)");
    478478        }
    479         if(!binary_search(&prevoffset,time-dt,this->timesteps,this->numtimesteps)){
     479        if(!binary_search(&prevoffset,reCast<IssmDouble>(time-dt),this->timesteps,this->numtimesteps)){
    480480                _error_("Input not found (is TransientInput sorted ?)");
    481481        }
Note: See TracChangeset for help on using the changeset viewer.