Changeset 15752


Ignore:
Timestamp:
08/08/13 11:52:51 (12 years ago)
Author:
seroussi
Message:

BUG: starting to debug coupling SSA/FS shelf

File:
1 edited

Legend:

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

    r15751 r15752  
    406406                        int approximation;
    407407                        inputs->GetInputValue(&approximation,ApproximationEnum);
    408                         if(approximation==HOFSApproximationEnum){
     408                        if(approximation==HOFSApproximationEnum || approximation==SSAFSApproximationEnum){
    409409                                //Do nothing condensatino already done for Stokes part
    410410                        }
     
    581581                                int approximation;
    582582                                inputs->GetInputValue(&approximation,ApproximationEnum);
    583                                 if(approximation==HOFSApproximationEnum){
     583                                if(approximation==HOFSApproximationEnum || approximation==SSAFSApproximationEnum){
    584584                                        //Do nothing, condensation already done in PVectorCoupling
    585585                                }
     
    74067406
    74077407        /*compute all stiffness matrices for this element*/
    7408         ElementMatrix* Ke1=CreateKMatrixDiagnosticSSA3d();
    7409         ElementMatrix* Ke2=CreateKMatrixDiagnosticFS();
     7408        ElementMatrix* Ke1=CreateKMatrixDiagnosticFS();
     7409        int indices[3]={18,19,20};
     7410        Ke1->StaticCondensation(3,&indices[0]);
     7411        int init = this->element_type;
     7412        this->element_type=P1Enum; //P1 needed for HO
     7413        ElementMatrix* Ke2=CreateKMatrixDiagnosticSSA3d();
     7414        this->element_type=init;
    74107415        ElementMatrix* Ke3=CreateKMatrixCouplingSSAFS();
    74117416        ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2,Ke3);
     
    84278432
    84288433        /*compute all load vectors for this element*/
     8434        int init = this->element_type;
     8435        this->element_type=P1Enum;
    84298436        ElementVector* pe1=CreatePVectorDiagnosticSSA();
     8437        this->element_type=init;
    84308438        ElementVector* pe2=CreatePVectorDiagnosticFS();
     8439        int indices[3]={18,19,20};
     8440        this->element_type=MINIcondensedEnum;
     8441        ElementMatrix* Ke = CreateKMatrixDiagnosticFS();
     8442        this->element_type=init;
     8443        pe2->StaticCondensation(Ke,3,&indices[0]);
     8444        delete Ke;
    84318445        ElementVector* pe3=CreatePVectorCouplingSSAFS();
    84328446        ElementVector* pe =new ElementVector(pe1,pe2,pe3);
Note: See TracChangeset for help on using the changeset viewer.