Changeset 10931


Ignore:
Timestamp:
11/25/11 16:00:59 (13 years ago)
Author:
Eric.Larour
Message:

Skipping elements on ice shelves for hydrology formulation

File:
1 edited

Legend:

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

    r10703 r10931  
    13891389        if (enum_type==MaterialsRheologyBbarEnum) input=this->matice->inputs->GetInput(enum_type);
    13901390        else input=this->inputs->GetInput(enum_type);
    1391         if (!input) _error_("Input %s not found in tria->inputs",EnumToStringx(enum_type));
     1391        //if (!input) _error_("Input %s not found in tria->inputs",EnumToStringx(enum_type));
     1392        if(!input)return;
    13921393
    13931394        /*If we don't find it, no big deal, just don't do the transfer. Otherwise, build a new Result
     
    18501851}
    18511852/*}}}*/
    1852 /*FUNCTION Tria::IsOnShelf {{{1*/
     1853/*FUNCTION Tria::IsFloating {{{1*/
    18531854bool   Tria::IsFloating(){
    18541855
     
    47044705        GaussTria *gauss=NULL;
    47054706
     4707        /*Skip if water or ice shelf element*/
     4708        if(IsOnWater() | IsFloating()) return NULL;
     4709
    47064710        /*Initialize Element matrix*/
    47074711        ElementMatrix* Ke=new ElementMatrix(nodes,NUMVERTICES,this->parameters,NoneApproximationEnum);
     
    47974801        double     basis[numdof];
    47984802        GaussTria* gauss=NULL;
     4803
     4804        /*Skip if water or ice shelf element*/
     4805        if(IsOnWater() | IsFloating()) return NULL;
    47994806
    48004807        /*Initialize Element vector*/
Note: See TracChangeset for help on using the changeset viewer.