Changeset 22477
- Timestamp:
- 02/26/18 15:48:49 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/FloatingiceMeltingRatex/FloatingiceMeltingRatex.cpp
r22476 r22477 98 98 //1 Define pico boxes 99 99 nd=xNew<int>(num_basins); 100 #ifndef _HAVE_ADOLC_ //we want to avoid the round operation at all cost. Not differentiable. 100 101 for(i=0; i<num_basins;i++){ 101 102 nd[i] = round(sqrt(dmax_basin[i]/dist_max)*(maxbox-1)); //0-based 102 103 } 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 103 107 for(int i=0;i<femmodel->elements->Size();i++){ 104 108 Element* element=xDynamicCast<Element*>(femmodel->elements->GetObjectByOffset(i));
Note:
See TracChangeset
for help on using the changeset viewer.