Changeset 3049


Ignore:
Timestamp:
02/16/10 18:26:40 (15 years ago)
Author:
Eric.Larour
Message:

Fixed update bug for thicknesses.

File:
1 edited

Legend:

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

    r3048 r3049  
    45904590void  Tria::UpdateFromInputs(void* vinputs){
    45914591
     4592        int     i;
    45924593        int     dofs[1]={0};
    45934594        double  temperature_list[3];
     
    46054606        if(inputs->Recover("thickness",&new_h[0],1,dofs,3,(void**)nodes)){
    46064607                /*density, needed later: */
    4607                 double di=(this->matpar->rho_ice/this->matpar->rho_water);
     4608                double di=(this->matpar->GetRhoIce()/this->matpar->GetRhoWater());
    46084609                /*Go through grids: */
    46094610                for (i=0;i<3;i++){
    4610                         if(this->nodes[i]->onshelf){
     4611                        if(this->nodes[i]->IsOnShelf()){
    46114612                                this->b[i]=this->b[i]-di*(new_h[i]-h[i]); //hydrostatic equilibrium;
    46124613                        }
    46134614                        this->s[i]=this->b[i]+new_h[i];
     4615                        this->h[i]=new_h[i];
    46144616                }
    46154617        }
Note: See TracChangeset for help on using the changeset viewer.