Index: /issm/trunk-jpl/src/c/modules/FloatingiceMeltingRatex/FloatingiceMeltingRatex.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/FloatingiceMeltingRatex/FloatingiceMeltingRatex.cpp	(revision 22476)
+++ /issm/trunk-jpl/src/c/modules/FloatingiceMeltingRatex/FloatingiceMeltingRatex.cpp	(revision 22477)
@@ -98,7 +98,11 @@
 	//1 Define pico boxes
 	nd=xNew<int>(num_basins);
+	#ifndef _HAVE_ADOLC_ //we want to avoid the round operation at all cost. Not differentiable.
 	for(i=0; i<num_basins;i++){
 		nd[i] = round(sqrt(dmax_basin[i]/dist_max)*(maxbox-1)); //0-based
 	}
+	#else
+	_error_("Don't know how to call round with AD on (present in other parts of the code as well");
+	#endif
 	for(int i=0;i<femmodel->elements->Size();i++){
 		Element* element=xDynamicCast<Element*>(femmodel->elements->GetObjectByOffset(i));
