Changeset 3854


Ignore:
Timestamp:
05/19/10 16:09:28 (15 years ago)
Author:
Mathieu Morlighem
Message:

new switch

File:
1 edited

Legend:

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

    r3852 r3854  
    10891089
    10901090                                /*Get strain rate from velocity: */
    1091                                 inputs->GetStrainRate3d(&epsilon[0],&xyz_list[0][0],gauss_coord,VxEnum,VyEnum,VzEnum,PattynFormulationEnum);
    1092                                 inputs->GetStrainRate3d(&oldepsilon[0],&xyz_list[0][0],gauss_coord,VxOldEnum,VyOldEnum,VzObsEnum,PattynFormulationEnum);
     1091                                inputs->GetStrainRate3dPattyn(&epsilon[0],&xyz_list[0][0],gauss_coord,VxEnum,VyEnum);
     1092                                inputs->GetStrainRate3dPattyn(&oldepsilon[0],&xyz_list[0][0],gauss_coord,VxOldEnum,VyOldEnum);
    10931093
    10941094                                /*Get viscosity: */
     
    43704370/*FUNCTION Penta::UpdateInputsFromVector(double* vector, int name, int type);{{{1*/
    43714371void  Penta::UpdateInputsFromVector(double* vector, int name, int type){
    4372         ISSMERROR(" not supported yet!");
     4372
     4373        switch(type){
     4374
     4375                case VertexEnum:
     4376
     4377                        /*New PentaVertexInpu*/
     4378                        double values[6];
     4379
     4380                        /*Get values on the 6 vertices*/
     4381                        for (int i=0;i<6;i++){
     4382                                values[i]=vector[this->nodes[i]->GetVertexDof()];
     4383                        }
     4384
     4385                        /*update input*/
     4386                        this->inputs->AddInput(new PentaVertexInput(name,values));
     4387                        return;
     4388
     4389                default:
     4390
     4391                        ISSMERROR("type %i (%s) not implemented yet",type,EnumAsString(type));
     4392        }
    43734393}
    43744394/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.