Index: /issm/branches/trunk-larour-SLPS2022/src/c/modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp
===================================================================
--- /issm/branches/trunk-larour-SLPS2022/src/c/modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp	(revision 27078)
+++ /issm/branches/trunk-larour-SLPS2022/src/c/modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp	(revision 27079)
@@ -12,4 +12,5 @@
 #include "../InputUpdateFromConstantx/InputUpdateFromConstantx.h"
 #include "../InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.h"
+#include "../UpdateMmesx/UpdateMmesx.h"
 
 void  InputUpdateFromDakotax(FemModel* femmodel,double* variables,char* *variables_descriptors,int numdakotavariables){ /*{{{*/
@@ -97,5 +98,5 @@
 		else{
 			/*Ok, standard variable, just update inputs using the variable: */
-			if (VerboseQmu())_printf0_("   updating variable " << descriptor << "\n");
+			if (VerboseQmu())_printf0_("   updating variable " << descriptor << "with value: " << variables[i] << "\n");
 			InputUpdateFromConstantx(femmodel,variables[i],StringToEnumx(descriptor));
 		}
@@ -142,4 +143,7 @@
 	}
 
+	/*Resole Mmes now that we have updated model ids: */
+	UpdateMmesx(femmodel);
+
 	/*Save results:*/
 	femmodel->results->AddResult(new GenericExternalResult<IssmPDouble*>(femmodel->results->Size()+1,"uq_variables",variables,numdakotavariables,1,1,0));
@@ -176,5 +180,5 @@
 
 	} /*}}}*/
-	if (strncmp(root,"SolidearthExternalModelid",18)==0){ //external solid earth solution in solid earth class {{{
+	if (strncmp(root,"SolidearthExternalModelid",25)==0){ //external solid earth solution in solid earth class {{{
 
 		if(VerboseQmu()){
