Index: /issm/trunk-jpl/src/c/modules/Solverx/SolverxGsl.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/Solverx/SolverxGsl.cpp	(revision 12577)
+++ /issm/trunk-jpl/src/c/modules/Solverx/SolverxGsl.cpp	(revision 12578)
@@ -43,5 +43,10 @@
 	gsl_vector      *x = NULL;
 	gsl_permutation *p = NULL;
-
+#ifdef _HAVE_ADOLC_
+	// if we use Adol-C then the IssmDouble will be an adouble
+	// and the calls to gsl_... will not work
+	// and we should call  a suitable wrapped solve instead
+	_error2_("SolverxGsl: should not be here with Adol-C");
+#else
 	/*A will be modified by LU decomposition. Use copy*/
 	IssmDouble* Acopy = xNew<IssmDouble>(n*n);
@@ -70,3 +75,4 @@
 	gsl_vector_free(x);
 	*pX=X;
+#endif
 }/*}}}*/
