Changeset 7242


Ignore:
Timestamp:
01/29/11 22:40:22 (14 years ago)
Author:
Eric.Larour
Message:

Dealign with water elements

File:
1 edited

Legend:

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

    r7110 r7242  
    695695/*FUNCTION Tria::CreateKMatrixDiagnosticMacAyeal {{{1*/
    696696ElementMatrix* Tria::CreateKMatrixDiagnosticMacAyeal(void){
    697        
     697
     698        ElementMatrix* Ke=NULL;
     699
    698700        /*compute all stiffness matrices for this element*/
    699701        ElementMatrix* Ke1=CreateKMatrixDiagnosticMacAyealViscous();
    700702        ElementMatrix* Ke2=CreateKMatrixDiagnosticMacAyealFriction();
    701         ElementMatrix* Ke =new ElementMatrix(Ke1,Ke2);
    702 
    703         /*clean-up and return*/
    704         delete Ke1;
    705         delete Ke2;
     703       
     704        if(Ke1 || Ke2){
     705                 Ke=new ElementMatrix(Ke1,Ke2);
     706
     707                /*clean-up and return*/
     708                delete Ke1;
     709                delete Ke2;
     710        }
    706711        return Ke;
    707712
Note: See TracChangeset for help on using the changeset viewer.