Changeset 27474
- Timestamp:
- 12/21/22 13:03:32 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r27470 r27474 19 19 Friction::Friction(){/*{{{*/ 20 20 this->element=NULL; 21 this->law =0;22 this->linearize =false;23 this->apply_dim = 1.;24 this->domaintype =-1;21 this->law = 0; 22 this->linearize = 0; 23 this->apply_dim = 1.; 24 this->domaintype = -1; 25 25 this->vx_input=NULL; 26 26 this->vy_input=NULL; … … 33 33 /* Determine the dimension according to the domain type automatically. 34 34 * There are exceptions, e.g. HO, which needs the user to specify the dimension used in Friciton.*/ 35 35 36 this->element=element_in; 37 this->linearize = 0; 36 38 37 39 /* Load necessary parameters */ … … 65 67 element_in->FindParam(&this->linearize,FrictionLinearizeEnum); 66 68 if(this->linearize){ 67 this->linearize = false; /*Change to make sure we do the calculation once*/69 this->linearize = 0; /*Change to make sure we do the calculation once*/ 68 70 int numvertices = this->element->GetNumberOfVertices(); 69 71 this->alpha2_list = xNew<IssmDouble>(numvertices); … … 77 79 this->GetAlphaComplement(&this->alpha2_complement_list[iv], gauss); 78 80 } 79 this->linearize = true; /*Change back, we are now all set!*/81 this->linearize = 1; /*Change back, we are now all set!*/ 80 82 } 81 83 } … … 92 94 Friction::~Friction(){/*{{{*/ 93 95 if(this->linearize){ 96 printf("linearize = %i\n",this->linearize); 94 97 xDelete<IssmDouble>(this->alpha2_list); 95 98 xDelete<IssmDouble>(this->alpha2_complement_list);
Note:
See TracChangeset
for help on using the changeset viewer.