Changeset 1242
- Timestamp:
- 07/07/09 08:39:27 (16 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Penta.cpp
r1211 r1242 372 372 } 373 373 374 375 374 #undef __FUNCT__ 376 375 #define __FUNCT__ "Penta:CreateKMatrixDiagnosticHoriz" … … 461 460 /*If on water, skip stiffness: */ 462 461 if(onwater)return; 463 464 462 465 463 /*recover pointers: */ … … 789 787 double gravity,rho_ice,rho_water; 790 788 791 792 789 /*Collapsed formulation: */ 793 790 Tria* tria=NULL; … … 844 841 ParameterInputs* inputs=NULL; 845 842 843 /*If on water, skip stiffness: */ 844 if(onwater)return; 845 846 846 /*recover pointers: */ 847 847 inputs=(ParameterInputs*)vinputs; … … 1208 1208 #define __FUNCT__ "Penta::Gradj" 1209 1209 void Penta::Gradj(Vec grad_g,void* inputs,int analysis_type,int sub_analysis_type,char* control_type){ 1210 1211 /*If on water, skip grad (=0): */ 1212 if(onwater)return; 1210 1213 1211 1214 if (strcmp(control_type,"drag")==0){ … … 1223 1226 1224 1227 Tria* tria=NULL; 1225 1228 1226 1229 /*Bail out if this element does not touch the bedrock: */ 1227 1230 if (!onbed) return; … … 1279 1282 Tria* tria=NULL; 1280 1283 1284 /*If on water, return 0: */ 1285 if(onwater)return 0; 1286 1281 1287 /*Bail out if this element if: 1282 1288 * -> Non collapsed and not on the surface … … 3026 3032 void Penta::CreatePVectorDiagnosticStokes( Vec pg, void* vinputs,int analysis_type,int sub_analysis_type){ 3027 3033 3028 3029 3034 /*indexing: */ 3030 3035 int i,j; … … 3092 3097 ParameterInputs* inputs=NULL; 3093 3098 Tria* tria=NULL; 3099 3100 /*If on water, skip load: */ 3101 if(onwater)return; 3094 3102 3095 3103 /*recover pointers: */ -
issm/trunk/src/c/objects/Tria.cpp
r1211 r1242 2219 2219 void Tria::Gradj(Vec grad_g,void* inputs,int analysis_type,int sub_analysis_type,char* control_type){ 2220 2220 2221 /*If on water, grad = 0: */ 2222 if(onwater)return; 2223 2221 2224 if (strcmp(control_type,"drag")==0){ 2222 2225 GradjDrag( grad_g,inputs,analysis_type,sub_analysis_type); … … 2869 2872 ParameterInputs* inputs=NULL; 2870 2873 2874 /*If on water, return 0: */ 2875 if(onwater)return 0; 2876 2871 2877 /*recover pointers: */ 2872 2878 inputs=(ParameterInputs*)vinputs;
Note:
See TracChangeset
for help on using the changeset viewer.