Changeset 26206
- Timestamp:
- 04/22/21 11:14:54 (4 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp
r26205 r26206 2732 2732 ElementMatrix* StressbalanceAnalysis::CreateKMatrixMLHO(Element* element){/*{{{*/ 2733 2733 2734 _error_("Mono Layer Higher-Order called, not fully tested. If you are sure of using it, comment this line.");2734 //_error_("Mono Layer Higher-Order called, not fully tested. If you are sure of using it, comment this line."); 2735 2735 2736 2736 /* Check if ice in element */ … … 2783 2783 2784 2784 /*build friction object, used later on: */ 2785 Friction* friction=new Friction(element,dim );2785 Friction* friction=new Friction(element,dim,true); 2786 2786 2787 2787 /*Recover portion of element that is grounded*/ -
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r26204 r26206 20 20 this->dim=0; 21 21 this->law=0; 22 this->isMLHO=false; 22 23 23 24 } 24 25 /*}}}*/ 25 Friction::Friction(Element* element_in,int dim_in ){/*{{{*/26 Friction::Friction(Element* element_in,int dim_in,bool isMLHO_in){/*{{{*/ 26 27 27 28 this->element=element_in; 28 29 this->dim=dim_in; 30 this->isMLHO=isMLHO_in; 29 31 element_in->FindParam(&this->law,FrictionLawEnum); 30 32 } … … 855 857 856 858 /*diverse*/ 857 bool isMLHO=false; //employing mono layer higher order model? Default is no858 859 IssmDouble vx,vy,vz,vmag; 859 860 860 element->parameters->FindParam(&isMLHO,FlowequationIsMLHOEnum); 861 if(isMLHO) _assert_(dim==2); 861 if(this->isMLHO) _assert_(dim==2); 862 862 863 863 switch(dim){ … … 867 867 break; 868 868 case 2: 869 if( isMLHO){869 if(this->isMLHO){ 870 870 element->GetInputValue(&vx,gauss,VxBaseEnum); 871 871 element->GetInputValue(&vy,gauss,VyBaseEnum); -
issm/trunk-jpl/src/c/classes/Loads/Friction.h
r25973 r26206 17 17 int dim; 18 18 int law; 19 bool isMLHO=false; 19 20 20 21 /*methods: */ 21 22 Friction(); 22 Friction(Element* element_in,int dim_in );23 Friction(Element* element_in,int dim_in,bool isMLHO=0); 23 24 ~Friction(); 24 25
Note:
See TracChangeset
for help on using the changeset viewer.