Changeset 27079


Ignore:
Timestamp:
06/19/22 15:37:04 (3 years ago)
Author:
Eric.Larour
Message:

CHG: use UpdateMmes now to update solid earth and ocean mmes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-SLPS2022/src/c/modules/InputUpdateFromDakotax/InputUpdateFromDakotax.cpp

    r26468 r27079  
    1212#include "../InputUpdateFromConstantx/InputUpdateFromConstantx.h"
    1313#include "../InputUpdateFromVectorDakotax/InputUpdateFromVectorDakotax.h"
     14#include "../UpdateMmesx/UpdateMmesx.h"
    1415
    1516void  InputUpdateFromDakotax(FemModel* femmodel,double* variables,char* *variables_descriptors,int numdakotavariables){ /*{{{*/
     
    9798                else{
    9899                        /*Ok, standard variable, just update inputs using the variable: */
    99                         if (VerboseQmu())_printf0_("   updating variable " << descriptor << "\n");
     100                        if (VerboseQmu())_printf0_("   updating variable " << descriptor << "with value: " << variables[i] << "\n");
    100101                        InputUpdateFromConstantx(femmodel,variables[i],StringToEnumx(descriptor));
    101102                }
     
    142143        }
    143144
     145        /*Resole Mmes now that we have updated model ids: */
     146        UpdateMmesx(femmodel);
     147
    144148        /*Save results:*/
    145149        femmodel->results->AddResult(new GenericExternalResult<IssmPDouble*>(femmodel->results->Size()+1,"uq_variables",variables,numdakotavariables,1,1,0));
     
    176180
    177181        } /*}}}*/
    178         if (strncmp(root,"SolidearthExternalModelid",18)==0){ //external solid earth solution in solid earth class {{{
     182        if (strncmp(root,"SolidearthExternalModelid",25)==0){ //external solid earth solution in solid earth class {{{
    179183
    180184                if(VerboseQmu()){
Note: See TracChangeset for help on using the changeset viewer.