source: issm/oecreview/Archive/16554-17801/ISSM-17683-17684.diff@ 17802

Last change on this file since 17802 was 17802, checked in by Mathieu Morlighem, 11 years ago

Added archives

File size: 2.7 KB
  • ../trunk-jpl/src/c/classes/Elements/Tria.cpp

     
    170170        ::GetVerticesCoordinates(&xyz_list[0][0],vertices,NUMVERTICES);
    171171
    172172        /*Retrieve all inputs we will be needing: */
    173         this->FindParam(&meshxdim,MeshTypeEnum);
     173        this->FindParam(&meshxdim,MeshXDimEnum);
    174174        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);
     
    223223        ::GetVerticesCoordinates(&xyz_list[0][0],vertices,NUMVERTICES);
    224224
    225225        /*Retrieve all inputs we will be needing: */
    226         this->FindParam(&meshxdim,MeshTypeEnum);
     226        this->FindParam(&meshxdim,MeshXDimEnum);
    227227        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);
  • ../trunk-jpl/src/c/classes/Elements/Element.cpp

     
    809809                                input=this->inputs->GetInput(output_enum);
    810810                                break;
    811811                        case StressTensorxxEnum:
    812                                 this->ComputeStressTensor();
    813                                 input=this->inputs->GetInput(output_enum);
    814                                 break;
    815812                        case StressTensorxyEnum:
    816                                 this->ComputeStressTensor();
    817                                 input=this->inputs->GetInput(output_enum);
    818                                 break;
    819813                        case StressTensorxzEnum:
    820                                 this->ComputeStressTensor();
    821                                 input=this->inputs->GetInput(output_enum);
    822                                 break;
    823814                        case StressTensoryyEnum:
    824                                 this->ComputeStressTensor();
    825                                 input=this->inputs->GetInput(output_enum);
    826                                 break;
    827815                        case StressTensoryzEnum:
     816                        case StressTensorzzEnum:
    828817                                this->ComputeStressTensor();
    829818                                input=this->inputs->GetInput(output_enum);
    830819                                break;
    831                         case StressTensorzzEnum:
    832                                 this->ComputeStressTensor();
     820                        case DeviatoricStressxxEnum:
     821                        case DeviatoricStressxyEnum:
     822                        case DeviatoricStressxzEnum:
     823                        case DeviatoricStressyyEnum:
     824                        case DeviatoricStressyzEnum:
     825                        case DeviatoricStresszzEnum:
     826                                this->ComputeDeviatoricStressTensor();
    833827                                input=this->inputs->GetInput(output_enum);
    834828                                break;
    835829                        default:
Note: See TracBrowser for help on using the repository browser.