Changeset 5874


Ignore:
Timestamp:
09/17/10 16:56:31 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor

Location:
issm/trunk/src/c/objects/Elements
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r5873 r5874  
    21982198                        delete Ke;
    21992199                        break;
    2200 
    22012200                case PattynStokesApproximationEnum:
    2202                         Ke=CreateKMatrixDiagnosticPattyn();
    2203                         if(Ke) Ke->AddToGlobal(Kgg,NULL,NULL);
    2204                         delete Ke;
    2205                         Ke=CreateKMatrixDiagnosticStokes();
    2206                         if(Ke) Ke->AddToGlobal(Kgg,NULL,NULL);
    2207                         delete Ke;
    2208                         Ke=CreateKMatrixCouplingPattynStokes();
     2201                        Ke=CreateKMatrixDiagnosticPattynStokes();
    22092202                        if(Ke) Ke->AddToGlobal(Kgg,NULL,NULL);
    22102203                        delete Ke;
     
    25382531}
    25392532/*}}}*/
     2533/*FUNCTION Penta::CreateKMatrixDiagnosticPattynStokes{{{1*/
     2534ElementMatrix* Penta::CreateKMatrixDiagnosticPattynStokes(void){
     2535
     2536        /*compute all stiffness matrices for this element*/
     2537        ElementMatrix* Ke1=CreateKMatrixDiagnosticPattyn();
     2538        ElementMatrix* Ke2=CreateKMatrixDiagnosticStokes();
     2539        ElementMatrix* Ke3=CreateKMatrixCouplingPattynStokes();
     2540        ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2,Ke3);
     2541
     2542        /*clean-up and return*/
     2543        delete Ke1;
     2544        delete Ke2;
     2545        delete Ke3;
     2546        return Ke;
     2547}
     2548/*}}}*/
    25402549/*FUNCTION Penta::CreateKMatrixDiagnosticStokes{{{1*/
    25412550ElementMatrix* Penta::CreateKMatrixDiagnosticStokes(void){
  • issm/trunk/src/c/objects/Elements/Penta.h

    r5873 r5874  
    137137                ElementMatrix* CreateKMatrixDiagnosticPattynViscous(void);
    138138                ElementMatrix* CreateKMatrixDiagnosticPattynFriction(void);
     139                ElementMatrix* CreateKMatrixDiagnosticPattynStokes(void);
    139140                ElementMatrix* CreateKMatrixDiagnosticStokes(void);
    140141                ElementMatrix* CreateKMatrixDiagnosticStokesViscous(void);
Note: See TracChangeset for help on using the changeset viewer.