Changeset 7367
- Timestamp:
- 02/07/11 08:31:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r7323 r7367 1243 1243 /*FUNCTION Penta::CreateKMatrixDiagnosticPattyn{{{1*/ 1244 1244 ElementMatrix* Penta::CreateKMatrixDiagnosticPattyn(void){ 1245 1246 ElementMatrix* Ke =NULL; 1245 1247 1246 1248 /*compute all stiffness matrices for this element*/ 1247 1249 ElementMatrix* Ke1=CreateKMatrixDiagnosticPattynViscous(); 1248 1250 ElementMatrix* Ke2=CreateKMatrixDiagnosticPattynFriction(); 1249 ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2); 1250 1251 /*clean-up and return*/ 1252 delete Ke1; 1253 delete Ke2; 1251 1252 if(Ke1 || Ke2){ 1253 Ke=new ElementMatrix(Ke1,Ke2); 1254 1255 /*clean-up and return*/ 1256 delete Ke1; 1257 delete Ke2; 1258 } 1254 1259 return Ke; 1260 1255 1261 } 1256 1262 /*}}}*/ … … 1516 1522 /*FUNCTION Penta::CreateKMatrixDiagnosticVert {{{1*/ 1517 1523 ElementMatrix* Penta::CreateKMatrixDiagnosticVert(void){ 1524 1525 ElementMatrix* Ke =NULL; 1518 1526 1519 1527 /*compute all stiffness matrices for this element*/ 1520 1528 ElementMatrix* Ke1=CreateKMatrixDiagnosticVertVolume(); 1521 1529 ElementMatrix* Ke2=CreateKMatrixDiagnosticVertSurface(); 1522 ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2); 1523 1524 /*clean-up and return*/ 1525 delete Ke1; 1526 delete Ke2; 1530 1531 if(Ke1 || Ke2){ 1532 Ke=new ElementMatrix(Ke1,Ke2); 1533 1534 /*clean-up and return*/ 1535 delete Ke1; 1536 delete Ke2; 1537 } 1527 1538 return Ke; 1539 1528 1540 } 1529 1541 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.