Changeset 17681


Ignore:
Timestamp:
04/08/14 17:34:23 (11 years ago)
Author:
cborstad
Message:

CHG: renamed meshtype->meshxdim for consistency (though meshxdim is a bit confusing, sounds like the x-dimension)

File:
1 edited

Legend:

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

    r17680 r17681  
    165165        IssmDouble      sigma_yz[NUMVERTICES]={0,0,0};
    166166        GaussTria*  gauss=NULL;
    167         int meshtype,dim=2;
     167        int meshxdim,dim=2;
    168168
    169169        /* Get node coordinates and dof list: */
     
    171171
    172172        /*Retrieve all inputs we will be needing: */
    173         this->FindParam(&meshtype,MeshTypeEnum);
    174         if(meshtype==Mesh2DhorizontalEnum) _error_("stress tensor calculation not supported for mesh of type " <<EnumToStringx(meshtype)<<", extrude mesh or call ComputeDeviatoricStressTensor");
     173        this->FindParam(&meshxdim,MeshTypeEnum);
     174        if(meshxdim==Mesh2DhorizontalEnum) _error_("stress tensor calculation not supported for mesh of type " <<EnumToStringx(meshxdim)<<", extrude mesh or call ComputeDeviatoricStressTensor");
    175175        Input* pressure_input=inputs->GetInput(PressureEnum); _assert_(pressure_input);
    176176        Input* vx_input=inputs->GetInput(VxEnum);             _assert_(vx_input);
     
    218218        IssmDouble      tau_yz[NUMVERTICES]={0,0,0};
    219219        GaussTria*  gauss=NULL;
    220         int meshtype,dim=2;
     220        int meshxdim,dim=2;
    221221
    222222        /* Get node coordinates and dof list: */
     
    224224
    225225        /*Retrieve all inputs we will be needing: */
    226         this->FindParam(&meshtype,MeshTypeEnum);
    227         if(meshtype!=Mesh2DhorizontalEnum) _error_("deviatoric stress tensor calculation not implemented for mesh of type " <<EnumToStringx(meshtype));
     226        this->FindParam(&meshxdim,MeshTypeEnum);
     227        if(meshxdim!=Mesh2DhorizontalEnum) _error_("deviatoric stress tensor calculation not implemented for mesh of type " <<EnumToStringx(meshxdim));
    228228        Input* vx_input=inputs->GetInput(VxEnum);             _assert_(vx_input);
    229229        Input* vy_input=inputs->GetInput(VyEnum);             _assert_(vy_input);
Note: See TracChangeset for help on using the changeset viewer.