Changeset 14368
- Timestamp:
- 02/22/13 15:03:48 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/objects/Elements/Tria.cpp
r14365 r14368 1119 1119 /*Computeportion of the element that is grounded*/ 1120 1120 1121 bool mainlyfloating=true; 1122 IssmDouble phi,s1,s2,area_init,area_grounded; 1123 IssmDouble gl[3]; 1124 IssmDouble xyz_bis[3][3]; 1125 GaussTria *gauss = NULL; 1121 bool mainlyfloating = true; 1122 const IssmPDouble epsilon= 1.e-15; 1123 IssmDouble phi,s1,s2,area_init,area_grounded; 1124 IssmDouble gl[3]; 1125 IssmDouble xyz_bis[3][3]; 1126 GaussTria *gauss = NULL; 1126 1127 1127 1128 /*Recover parameters and values*/ 1128 1129 GetInputListOnVertices(&gl[0],GLlevelsetEnum); 1129 1130 1131 /*Be sure that values are not zero*/ 1132 if(gl[0]==0) gl[0]=gl[0]+epsilon; 1133 if(gl[1]==0) gl[1]=gl[1]+epsilon; 1134 if(gl[2]==0) gl[2]=gl[2]+epsilon; 1135 1130 1136 /*Check that not all nodes are grounded or floating*/ 1131 1137 if(gl[0]>0 && gl[1]>0 && gl[2]>0){ // All grounded … … 1136 1142 } 1137 1143 else{ 1138 1139 1144 /*Figure out if two nodes are floating or grounded*/ 1140 1145 if(gl[0]*gl[1]*gl[2]>0) mainlyfloating=false; … … 1209 1214 1210 1215 if(phi>1 || phi<0) _error_("Error. Problem with portion of grounded element: value should be between 0 and 1"); 1211 //this->inputs->AddInput(new DoubleInput(GroundedPortionEnum,phi));1212 1216 1213 1217 return phi; -
issm/trunk-jpl/src/c/solutions/transient_core.cpp
r14364 r14368 148 148 if(isgroundingline && groundingline_migration==SubelementMigrationEnum){ 149 149 InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,GLlevelsetEnum); 150 //InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,GroundedPortionEnum);151 150 } 152 151
Note:
See TracChangeset
for help on using the changeset viewer.