Changeset 4384


Ignore:
Timestamp:
07/01/10 10:10:26 (15 years ago)
Author:
seroussi
Message:

fixed problems in InputUpdateDiagnosticVert

File:
1 edited

Legend:

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

    r4382 r4384  
    20732073                pressure[i]=rho_ice*g*(surface[i]-xyz_list[i][2]);
    20742074        }
    2075         /*Now, we have to move the previous Vx and Vy inputs to old
     2075        /*Now, we have to move the previous Vz inputs to old
    20762076         * status, otherwise, we'll wipe them off: */
    2077         this->inputs->ChangeEnum(VxEnum,VxOldEnum);
    2078         this->inputs->ChangeEnum(VyEnum,VyOldEnum);
    2079         this->inputs->ChangeEnum(PressureEnum,PressureOldEnum);
    2080 
    2081         /*Add vx and vy as inputs to the tria element: */
    2082         this->inputs->AddInput(new PentaVertexInput(VxEnum,vx));
    2083         this->inputs->AddInput(new PentaVertexInput(VyEnum,vy));
    2084         this->inputs->AddInput(new TriaVertexInput(VelEnum,vel));
    2085         this->inputs->AddInput(new PentaVertexInput(PressureEnum,pressure));
     2077        this->inputs->ChangeEnum(VzEnum,VzOldEnum);
     2078
     2079        /*Add vz and vel as inputs to the penta element: */
     2080        this->inputs->AddInput(new PentaVertexInput(VzEnum,vz));
     2081        this->inputs->AddInput(new PentaVertexInput(VelEnum,vel));
    20862082}
    20872083
Note: See TracChangeset for help on using the changeset viewer.