Changeset 15420 for issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
- Timestamp:
- 07/03/13 16:10:55 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r15417 r15420 6822 6822 ElementMatrix* Penta::CreateKMatrixDiagnosticStokes(void){ 6823 6823 6824 /*compute all stiffness matrices for this element*/ 6825 ElementMatrix* Ke1=CreateKMatrixDiagnosticStokesViscous(); 6826 ElementMatrix* Ke2=CreateKMatrixDiagnosticStokesFriction(); 6827 ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2); 6824 int fe_stokes; 6825 ElementMatrix* Ke1; 6826 ElementMatrix* Ke2; 6827 ElementMatrix* Ke; 6828 parameters->FindParam(&fe_stokes,FlowequationFeStokesEnum); 6829 6830 switch(fe_stokes){ 6831 case 0: 6832 /*compute all stiffness matrices for this element*/ 6833 Ke1=CreateKMatrixDiagnosticStokesViscous(); 6834 Ke2=CreateKMatrixDiagnosticStokesFriction(); 6835 Ke =new ElementMatrix(Ke1,Ke2); 6836 6837 case 1: 6838 /*compute all stiffness matrices for this element*/ 6839 Ke1=CreateKMatrixDiagnosticStokesViscous(); 6840 Ke2=CreateKMatrixDiagnosticStokesFriction(); 6841 Ke =new ElementMatrix(Ke1,Ke2); 6842 6843 default: 6844 _error_("Finite element" << fe_stokes << " not supported yet"); 6845 } 6828 6846 6829 6847 /*clean-up and return*/ … … 6831 6849 delete Ke2; 6832 6850 return Ke; 6851 6833 6852 } 6834 6853 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.