source:
issm/oecreview/Archive/25834-26739/ISSM-26465-26466.diff
Last change on this file was 26740, checked in by , 3 years ago | |
---|---|
File size: 2.7 KB |
-
../trunk-jpl/src/c/classes/Loads/Friction.cpp
18 18 Friction::Friction(){/*{{{*/ 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; 24 24 this->vy_input=NULL; … … 37 37 /* Load VxBase and VyBase for this special case */ 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); 43 43 this->vz_input = NULL; 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); 49 49 this->vz_input = NULL; 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); 55 55 this->vz_input = element_in->GetInput(VzEnum); _assert_(this->vz_input); … … 58 58 } 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; 64 64 this->apply_dim = dim; … … 918 918 this->vx_input->GetInputValue(&vx, gauss); 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); 927 927 return vmag; -
../trunk-jpl/src/c/classes/Loads/Friction.h
13 13 class Friction{ 14 14 15 15 public: 16 Element *element;17 int law;18 int domaintype;19 doubleapply_dim;20 Input *vx_input;21 Input *vy_input;22 Input *vz_input;16 Element *element; 17 int law; 18 int domaintype; 19 IssmDouble apply_dim; 20 Input *vx_input; 21 Input *vy_input; 22 Input *vz_input; 23 23 24 24 /*methods: */ 25 25 Friction();
Note:
See TracBrowser
for help on using the repository browser.