Index: /issm/trunk-jpl/externalpackages/boost/configs/1.73/boost/math/tools/user.hpp
===================================================================
--- /issm/trunk-jpl/externalpackages/boost/configs/1.73/boost/math/tools/user.hpp	(revision 25710)
+++ /issm/trunk-jpl/externalpackages/boost/configs/1.73/boost/math/tools/user.hpp	(revision 25711)
@@ -20,5 +20,5 @@
 // or if the long double versions have only double precision:
 //
-#define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+// #define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
 //
 // Performance tuning options:
Index: /issm/trunk-jpl/src/c/modules/QmuStatisticsx/QmuStatisticsx.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/QmuStatisticsx/QmuStatisticsx.cpp	(revision 25710)
+++ /issm/trunk-jpl/src/c/modules/QmuStatisticsx/QmuStatisticsx.cpp	(revision 25711)
@@ -669,4 +669,6 @@
 	_printf0_("Done aggregating time mean histogram:\n");
 	IssmComm::SetComm(ISSM_MPI_COMM_WORLD);
+
+	return 1;
 }
 /*}}}*/
@@ -1004,4 +1006,5 @@
 	IssmComm::SetComm(ISSM_MPI_COMM_WORLD);
 
+	return 1;
 } /*}}}*/
 int ComputeSampleSeries(Parameters* parameters,Results* results,int color, ISSM_MPI_Comm statcomm){ /*{{{*/
@@ -1164,4 +1167,5 @@
 	IssmComm::SetComm(ISSM_MPI_COMM_WORLD);
 
+	return 1;
 } /*}}}*/
 int OutputStatistics(Parameters* parameters,Results* results,int color,ISSM_MPI_Comm statcomm){ /*{{{*/
@@ -1197,4 +1201,6 @@
 
 	OutputResultsx(femmodel);
+
+	return 1;
 } /*}}}*/
 bool DakotaDirStructure(int argc,char** argv){ /*{{{*/
@@ -1231,5 +1237,6 @@
 	if(!statistics){
 		delete iomodel;
-		fclose(fid); 
+		xDelete<char>(input_file);
+		fclose(fid);
 		return false; //important return value!
 	}
@@ -1247,4 +1254,8 @@
 		}
 	}
+
+	/*Delete resources:*/
+	delete iomodel;
+	xDelete<char>(input_file);
 
 	//close model file: 
@@ -1307,10 +1318,9 @@
 	if(!statistics){
 		delete iomodel;
+		xDelete<char>(input_file);
 		fclose(fid); 
 		return 0;
-	}
-
-	//create parameters datasets with al the qmu statistics settings we need: 
-	if(statistics){
+	}else{
+		//create parameters datasets with al the qmu statistics settings we need: 
 
 		/*Initialize parameters and results:*/
@@ -1389,5 +1399,10 @@
 			else _error_(" error creating qmu statistics methods parameters: unsupported method " << name);
 		}
+
+		/*Delete resources:*/
+		xDelete<char>(input_file);
+		delete iomodel;
 	}
+
 	//close model file: 
 	fclose(fid);
@@ -1399,9 +1414,8 @@
 	ISSM_MPI_Barrier(ISSM_MPI_COMM_WORLD); _printf0_("Output file.\n");
 
-	/*Delete ressources:*/
+	/*Delete resources:*/
 	delete parameters; 
 	delete results;
 
-
-	
+	return 1;
 } /*}}}*/
