Index: /issm/trunk/src/c/shared/Numerics/BrentSearch.cpp
===================================================================
--- /issm/trunk/src/c/shared/Numerics/BrentSearch.cpp	(revision 1069)
+++ /issm/trunk/src/c/shared/Numerics/BrentSearch.cpp	(revision 1070)
@@ -234,9 +234,9 @@
 	//Now, check that the value on the boundaries are not better than current fxbest
 	if (fxbest>fxmin){
-		xbest=xmin;
+		xbest=optpars->xmin;;
 		fxbest=fxmin;
 	}
 	if (fxbest>fxmax){
-		xbest=xmax;
+		xbest=optpars->xmax;;
 		fxbest=fxmax;
 	}
