Changeset 11468


Ignore:
Timestamp:
02/17/12 17:11:53 (13 years ago)
Author:
cborstad
Message:

first attempt to fix 3D nightly run failures

File:
1 edited

Legend:

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

    r11395 r11468  
    16321632
    16331633        /*Go through all the input objects, and find the one corresponding to enum_type, if it exists: */
    1634         if (enum_type==MaterialsRheologyBbarEnum) input=this->matice->inputs->GetInput(MaterialsRheologyBEnum);
     1634        if (enum_type==MaterialsRheologyBbarEnum || enum_type==MaterialsRheologyZbarEnum) input=this->matice->inputs->GetInput(enum_type);
    16351635        else input=this->inputs->GetInput(enum_type);
    16361636        //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
     
    17461746                                        break;
    17471747                                case MaterialsRheologyBbarEnum:
     1748                                case MaterialsRheologyZbarEnum:
    17481749                                        /*Matice will take care of it*/ break;
    17491750                                default:
     
    20372038
    20382039                        /*update input*/
    2039                         this->inputs->AddInput(new PentaP1Input(name,values));
     2040                        if (name==MaterialsRheologyZEnum || name==MaterialsRheologyZbarEnum){
     2041                                matice->inputs->AddInput(new PentaP1Input(name,values));
     2042                        }
     2043                        else{
     2044                                this->inputs->AddInput(new PentaP1Input(name,values));
     2045                        }
    20402046                        return;
    20412047
     
    31993205                        *presponse=this->matice->GetBbar();
    32003206                        break;
     3207                case MaterialsRheologyZbarEnum:
     3208                        *presponse=this->matice->GetZbar();
     3209                        break;
     3210
    32013211                case VelEnum:
    32023212
     
    60466056        this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum);
    60476057
     6058        /*Depth Averaging Z*/
     6059        this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum);
     6060
    60486061        /*Call Tria function*/
    60496062        Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria.
     
    60536066        /*Delete B averaged*/
    60546067        this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum);
     6068
     6069        /*Delete Z averaged*/
     6070        this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum);
    60556071
    60566072        /*clean up and return*/
     
    74877503        this->InputDepthAverageAtBase(MaterialsRheologyBEnum,MaterialsRheologyBbarEnum,MaterialsEnum);
    74887504
     7505        /*Depth Averaging Z*/
     7506        this->InputDepthAverageAtBase(MaterialsRheologyZEnum,MaterialsRheologyZbarEnum,MaterialsEnum);
     7507
    74897508        /*Call Tria function*/
    74907509        Tria* tria=(Tria*)SpawnTria(0,1,2); //nodes 0, 1 and 2 make the new tria.
     
    74947513        /*Delete B averaged*/
    74957514        this->matice->inputs->DeleteInput(MaterialsRheologyBbarEnum);
     7515
     7516        /*Delete Z averaged*/
     7517        this->matice->inputs->DeleteInput(MaterialsRheologyZbarEnum);
    74967518
    74977519        /*clean up and return*/
Note: See TracChangeset for help on using the changeset viewer.