Changeset 22477


Ignore:
Timestamp:
02/26/18 15:48:49 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: shielding ADLOC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/FloatingiceMeltingRatex/FloatingiceMeltingRatex.cpp

    r22476 r22477  
    9898        //1 Define pico boxes
    9999        nd=xNew<int>(num_basins);
     100        #ifndef _HAVE_ADOLC_ //we want to avoid the round operation at all cost. Not differentiable.
    100101        for(i=0; i<num_basins;i++){
    101102                nd[i] = round(sqrt(dmax_basin[i]/dist_max)*(maxbox-1)); //0-based
    102103        }
     104        #else
     105        _error_("Don't know how to call round with AD on (present in other parts of the code as well");
     106        #endif
    103107        for(int i=0;i<femmodel->elements->Size();i++){
    104108                Element* element=xDynamicCast<Element*>(femmodel->elements->GetObjectByOffset(i));
Note: See TracChangeset for help on using the changeset viewer.