Changeset 7370
- Timestamp:
- 02/07/11 10:39:21 (14 years ago)
- Location:
- issm/trunk/src/c/objects/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r7369 r7370 539 539 _assert_(this->nodes && this->matice && this->matpar && this->verticalneighbors && this->parameters && this->inputs); 540 540 /*}}}*/ 541 542 if(IsOnWater()) return; 541 543 542 544 /*Just branch to the correct element stiffness matrix generator, according to the type of analysis we are carrying out: */ … … 632 634 /*FUNCTION Penta::CreateKMatrixCouplingMacAyealPattyn{{{1*/ 633 635 ElementMatrix* Penta::CreateKMatrixCouplingMacAyealPattyn(void){ 634 636 635 637 /*compute all stiffness matrices for this element*/ 636 638 ElementMatrix* Ke1=CreateKMatrixCouplingMacAyealPattynViscous(); 637 639 ElementMatrix* Ke2=CreateKMatrixCouplingMacAyealPattynFriction(); 638 ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2); 639 640 /*clean-up and return*/ 641 delete Ke1; 642 delete Ke2; 640 ElementMatrix* Ke=new ElementMatrix(Ke1,Ke2); 641 643 642 return Ke; 644 643 } … … 785 784 /*Initialize Element matrix and return if necessary*/ 786 785 if(IsOnWater()) return NULL; 786 787 787 ElementMatrix* Ke1=new ElementMatrix(pentabase->nodes,NUMVERTICES,this->parameters,MacAyealApproximationEnum); 788 788 ElementMatrix* Ke2=new ElementMatrix(this->nodes ,NUMVERTICES,this->parameters,StokesApproximationEnum); … … 1244 1244 ElementMatrix* Penta::CreateKMatrixDiagnosticPattyn(void){ 1245 1245 1246 ElementMatrix* Ke =NULL;1247 1246 1248 1247 /*compute all stiffness matrices for this element*/ 1249 1248 ElementMatrix* Ke1=CreateKMatrixDiagnosticPattynViscous(); 1250 1249 ElementMatrix* Ke2=CreateKMatrixDiagnosticPattynFriction(); 1251 1252 if(Ke1 || Ke2){ 1253 Ke=new ElementMatrix(Ke1,Ke2); 1254 1255 /*clean-up and return*/ 1256 delete Ke1; 1257 delete Ke2; 1258 } 1250 ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2); 1251 1252 /*clean-up and return*/ 1253 delete Ke1; 1254 delete Ke2; 1255 1259 1256 return Ke; 1260 1257 … … 1523 1520 ElementMatrix* Penta::CreateKMatrixDiagnosticVert(void){ 1524 1521 1525 ElementMatrix* Ke =NULL;1526 1522 1527 1523 /*compute all stiffness matrices for this element*/ 1528 1524 ElementMatrix* Ke1=CreateKMatrixDiagnosticVertVolume(); 1529 1525 ElementMatrix* Ke2=CreateKMatrixDiagnosticVertSurface(); 1530 1531 if(Ke1 || Ke2){ 1532 Ke=new ElementMatrix(Ke1,Ke2); 1533 1534 /*clean-up and return*/ 1535 delete Ke1; 1536 delete Ke2; 1537 } 1526 ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2); 1527 1528 /*clean-up and return*/ 1529 delete Ke1; 1530 delete Ke2; 1538 1531 return Ke; 1539 1532 … … 1651 1644 ElementMatrix* Penta::CreateKMatrixThermal(void){ 1652 1645 1653 ElementMatrix* Ke =NULL;1654 1655 1646 /*compute all stiffness matrices for this element*/ 1656 1647 ElementMatrix* Ke1=CreateKMatrixThermalVolume(); 1657 1648 ElementMatrix* Ke2=CreateKMatrixThermalShelf(); 1649 ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2); 1658 1650 1659 if(Ke1 || Ke2){ 1660 Ke=new ElementMatrix(Ke1,Ke2); 1661 1662 /*clean-up and return*/ 1663 delete Ke1; 1664 delete Ke2; 1665 } 1651 /*clean-up and return*/ 1652 delete Ke1; 1653 delete Ke2; 1666 1654 return Ke; 1667 1655 } … … 1851 1839 _assert_(this->nodes && this->matice && this->matpar && this->verticalneighbors && this->parameters && this->inputs); 1852 1840 /*}}}*/ 1841 1842 if(IsOnWater()) return; 1853 1843 1854 1844 /*Just branch to the correct element stiffness matrix generator, according to the type of analysis we are carrying out: */ -
issm/trunk/src/c/objects/Elements/Tria.cpp
r7356 r7370 387 387 _assert_(this->nodes && this->matice && this->matpar && this->parameters && this->inputs); 388 388 /*}}}*/ 389 390 if(IsOnWater()) return; 389 391 390 392 /*Just branch to the correct element stiffness matrix generator, according to the type of analysis we are carrying out: */ … … 756 758 ElementMatrix* Tria::CreateKMatrixDiagnosticMacAyeal(void){ 757 759 758 ElementMatrix* Ke=NULL;759 760 760 761 /*compute all stiffness matrices for this element*/ 761 762 ElementMatrix* Ke1=CreateKMatrixDiagnosticMacAyealViscous(); 762 763 ElementMatrix* Ke2=CreateKMatrixDiagnosticMacAyealFriction(); 764 ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2); 763 765 764 if(Ke1 || Ke2){ 765 Ke=new ElementMatrix(Ke1,Ke2); 766 767 /*clean-up and return*/ 768 delete Ke1; 769 delete Ke2; 770 } 766 /*clean-up and return*/ 767 delete Ke1; 768 delete Ke2; 771 769 return Ke; 772 770 … … 1523 1521 _assert_(this->nodes && this->matice && this->matpar && this->parameters && this->inputs); 1524 1522 /*}}}*/ 1523 1524 if(IsOnWater()) return; 1525 1525 1526 1526 /*Just branch to the correct load generator, according to the type of analysis we are carrying out: */
Note:
See TracChangeset
for help on using the changeset viewer.