Changeset 12278


Ignore:
Timestamp:
05/23/12 16:11:23 (13 years ago)
Author:
cborstad
Message:

fixed InputToResult function to account for damage enum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-jpl-damage/src/c/objects/Elements/Penta.cpp

    r12275 r12278  
    14781478
    14791479        /*Go through all the input objects, and find the one corresponding to enum_type, if it exists: */
    1480         if (enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum) input=this->matice->inputs->GetInput(enum_type);
     1480        if (enum_type==MaterialsRheologyBbarEnum) input=this->matice->inputs->GetInput(MaterialsRheologyBEnum);
     1481        else if (enum_type==MaterialsRheologyZbarEnum) input=this->matice->inputs->GetInput(MaterialsRheologyZEnum);
    14811482        else input=this->inputs->GetInput(enum_type);
    14821483        //if (!input) _error_("Input %s not found in penta->inputs",EnumToStringx(enum_type)); why error out? if the requested input does not exist, we should still
     
    50965097        this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum);
    50975098
     5099        /*delete Average Z*/
     5100        this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum);
     5101
    50985102} /*}}}*/
    50995103/*FUNCTION Penta::GradjBbarPattyn {{{1*/
     
    51165120        /*delete Average B*/
    51175121        this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum);
     5122
     5123        /*delete Average Z*/
     5124        this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum);
    51185125} /*}}}*/
    51195126/*FUNCTION Penta::GradjBbarStokes {{{1*/
     
    51365143        /*delete Average B*/
    51375144        this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum);
     5145
     5146        /*delete Average Z*/
     5147        this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum);
    51385148} /*}}}*/
    51395149/*FUNCTION Penta::InputControlUpdate{{{1*/
Note: See TracChangeset for help on using the changeset viewer.