Changeset 26466 for issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
- Timestamp:
- 09/30/21 08:29:10 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r26463 r26466 19 19 this->element=NULL; 20 20 this->law=0; 21 this->apply_dim = 1 ;21 this->apply_dim = 1.; 22 22 this->domaintype=-1; 23 23 this->vx_input=NULL; … … 38 38 switch(this->domaintype){ 39 39 case Domain2DhorizontalEnum: 40 this->apply_dim = 2 ;40 this->apply_dim = 2.; 41 41 this->vx_input = element_in->GetInput(VxBaseEnum); _assert_(this->vx_input); 42 42 this->vy_input = element_in->GetInput(VyBaseEnum); _assert_(this->vy_input); … … 44 44 break; 45 45 case Domain2DverticalEnum: 46 this->apply_dim = 2 ;46 this->apply_dim = 2.; 47 47 this->vx_input = element_in->GetInput(VxEnum); _assert_(this->vx_input); 48 48 this->vy_input = element_in->GetInput(VyEnum); _assert_(this->vy_input); … … 50 50 break; 51 51 case Domain3DEnum: 52 this->apply_dim = 3 ;52 this->apply_dim = 3.; 53 53 this->vx_input = element_in->GetInput(VxEnum); _assert_(this->vx_input); 54 54 this->vy_input = element_in->GetInput(VyEnum); _assert_(this->vy_input); … … 59 59 } 60 60 /*}}}*/ 61 Friction::Friction(Element* element_in, double dim){/*{{{*/61 Friction::Friction(Element* element_in,IssmDouble dim){/*{{{*/ 62 62 63 63 this->element=element_in; … … 919 919 this->vy_input->GetInputValue(&vy, gauss); 920 920 921 if ((this->vz_input == NULL) || (this->apply_dim<3 )) vz = 0.0;921 if ((this->vz_input == NULL) || (this->apply_dim<3.)) vz = 0.0; 922 922 else this->vz_input->GetInputValue(&vz, gauss); 923 923 924 if (this->apply_dim<2 ) vy = 0.0;924 if (this->apply_dim<2.) vy = 0.0; 925 925 926 926 vmag = sqrt(vx*vx+vy*vy+vz*vz);
Note:
See TracChangeset
for help on using the changeset viewer.