Skip to content

Commit 4a8c078

Browse files
CHG: do not update inputs after controlupdateelements to avoid conflict
1 parent 7a28134 commit 4a8c078

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/c/classes/FemModel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,6 +2761,7 @@ void FemModel::Responsex(IssmDouble* responses,int response_descriptor_enum){/*{
27612761
case MaterialsRheologyBbarEnum: this->ElementResponsex(responses,MaterialsRheologyBbarEnum); break;
27622762
case VelEnum: this->ElementResponsex(responses,VelEnum); break;
27632763
case FrictionCoefficientEnum: NodalValuex(responses, FrictionCoefficientEnum,elements,nodes, vertices, loads, materials, parameters); break;
2764+
case GroundinglineMassFluxEnum: this->GroundinglineMassFluxx(responses, false); break;
27642765
default:
27652766
if(response_descriptor_enum>=Outputdefinition1Enum && response_descriptor_enum <=Outputdefinition2000Enum){
27662767
int ierr = OutputDefinitionsResponsex(responses, this,response_descriptor_enum);

src/c/modules/ModelProcessorx/ModelProcessorx.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,22 @@ void ModelProcessorx(Elements** pelements, Nodes*** pnodes, Vertices** pvertices
7373
loads[i]->Finalize();
7474
}
7575

76-
/*Solution specific updates*/
76+
/*Transient specific updates*/
77+
if(solution_enum==TransientSolutionEnum){
78+
UpdateParametersTransient(parameters,iomodel);
79+
UpdateElementsTransient(elements,parameters,inputs,iomodel);
80+
}
81+
82+
/*Control specific updates*/
7783
if(VerboseMProcessor()) _printf0_(" updating elements and materials for control parameters" << "\n");
7884
UpdateElementsAndMaterialsControl(elements,parameters,inputs,materials,iomodel);
85+
86+
/*Dakota specific updates*/
7987
#ifdef _HAVE_DAKOTA_
8088
if(VerboseMProcessor()) _printf0_(" updating elements and materials for uncertainty quantification" << "\n");
8189
UpdateElementsAndMaterialsDakota(elements,inputs,materials,iomodel);
8290
#endif
83-
if(solution_enum==TransientSolutionEnum){
84-
UpdateParametersTransient(parameters,iomodel);
85-
UpdateElementsTransient(elements,parameters,inputs,iomodel);
86-
}
91+
8792
/*Output definitions dataset: */
8893
if(VerboseMProcessor()) _printf0_(" creating output definitions" << "\n");
8994
CreateOutputDefinitions(elements,parameters,inputs,iomodel);

0 commit comments

Comments
 (0)