Ignore:
Timestamp:
07/03/13 16:10:55 (12 years ago)
Author:
seroussi
Message:

NEW: starting stokes stabilization implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Penta.cpp

    r15417 r15420  
    68226822ElementMatrix* Penta::CreateKMatrixDiagnosticStokes(void){
    68236823
    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        }
    68286846
    68296847        /*clean-up and return*/
     
    68316849        delete Ke2;
    68326850        return Ke;
     6851
    68336852}
    68346853/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.