Changeset 1313
- Timestamp:
- 07/14/09 14:56:43 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Penta.cpp
r1242 r1313 672 672 Tria* tria=NULL; 673 673 674 /*If on water, skip stiffness: */ 675 if(onwater)return; 676 674 677 /*recover pointers: */ 675 678 inputs=(ParameterInputs*)vinputs; … … 1099 1102 ParameterInputs* inputs=NULL; 1100 1103 1104 /*If on water, skip: */ 1105 if(onwater)return; 1106 1101 1107 /*recover pointers: */ 1102 1108 inputs=(ParameterInputs*)vinputs; … … 1180 1186 int i; 1181 1187 Tria* tria=NULL; 1188 1189 /*If on water, skip: */ 1190 if(onwater)return; 1182 1191 1183 1192 /*Bail out if this element if: … … 1227 1236 Tria* tria=NULL; 1228 1237 1238 /*If on water, skip: */ 1239 if(onwater)return; 1240 1229 1241 /*Bail out if this element does not touch the bedrock: */ 1230 1242 if (!onbed) return; … … 1254 1266 1255 1267 Tria* tria=NULL; 1268 1269 /*If on water, skip: */ 1270 if(onwater)return; 1256 1271 1257 1272 if (collapse){ … … 2218 2233 inputs=(ParameterInputs*)vinputs; 2219 2234 2235 /*If on water, skip: */ 2236 if(onwater)return; 2237 2220 2238 /*If we are on the bedrock, spawn a tria on the bedrock, and use it to build the 2221 2239 *diagnostic base vertical stifness: */ … … 2317 2335 double rho_ice,g; 2318 2336 double xyz_list[numgrids][3]; 2337 2338 /*If on water, skip: */ 2339 if(onwater)return; 2319 2340 2320 2341 /*Get node data: */ … … 2347 2368 /*Collapsed formulation: */ 2348 2369 Tria* tria=NULL; 2370 2371 /*If on water, skip: */ 2372 if(onwater)return; 2349 2373 2350 2374 /*Is this element on the bed? :*/ … … 2366 2390 /*Collapsed formulation: */ 2367 2391 Tria* tria=NULL; 2392 2393 /*If on water, skip: */ 2394 if(onwater)return; 2368 2395 2369 2396 /*Is this element on the bed? :*/ … … 2384 2411 /*Collapsed formulation: */ 2385 2412 Tria* tria=NULL; 2413 2414 /*If on water, skip: */ 2415 if(onwater)return; 2386 2416 2387 2417 /*Is this element on the bed? :*/ … … 2403 2433 /*Collapsed formulation: */ 2404 2434 Tria* tria=NULL; 2435 2436 /*If on water, skip: */ 2437 if(onwater)return; 2405 2438 2406 2439 /*Is this element on the bed? :*/ … … 3333 3366 #define __FUNCT__ "Penta::CreateKMatrixThermal" 3334 3367 void Penta::CreateKMatrixThermal(Mat Kgg,void* vinputs,int analysis_type,int sub_analysis_type){ 3335 3368 3336 3369 /* local declarations */ 3337 3370 int i,j; … … 3405 3438 ParameterInputs* inputs=NULL; 3406 3439 3440 /*If on water, skip: */ 3441 if(onwater)return; 3442 3407 3443 /*recover pointers: */ 3408 3444 inputs=(ParameterInputs*)vinputs; … … 3530 3566 } 3531 3567 3568 3532 3569 /*Add Ke_gg to global matrix Kgg: */ 3533 3570 MatSetValues(Kgg,numdof,doflist,numdof,doflist,(const double*)K_terms,ADD_VALUES); … … 3658 3695 3659 3696 Tria* tria=NULL; 3697 3698 /*If on water, skip: */ 3699 if(onwater)return; 3700 3660 3701 if (!onbed){ 3661 3702 return; … … 3745 3786 ParameterInputs* inputs=NULL; 3746 3787 3788 /*If on water, skip: */ 3789 if(onwater)return; 3790 3747 3791 /*recover pointers: */ 3748 3792 inputs=(ParameterInputs*)vinputs; … … 3853 3897 delete tria; 3854 3898 } 3899 extern int my_rank; 3855 3900 3856 3901 cleanup_and_return:
Note:
See TracChangeset
for help on using the changeset viewer.