Changeset 3049
- Timestamp:
- 02/16/10 18:26:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Tria.cpp
r3048 r3049 4590 4590 void Tria::UpdateFromInputs(void* vinputs){ 4591 4591 4592 int i; 4592 4593 int dofs[1]={0}; 4593 4594 double temperature_list[3]; … … 4605 4606 if(inputs->Recover("thickness",&new_h[0],1,dofs,3,(void**)nodes)){ 4606 4607 /*density, needed later: */ 4607 double di=(this->matpar-> rho_ice/this->matpar->rho_water);4608 double di=(this->matpar->GetRhoIce()/this->matpar->GetRhoWater()); 4608 4609 /*Go through grids: */ 4609 4610 for (i=0;i<3;i++){ 4610 if(this->nodes[i]-> onshelf){4611 if(this->nodes[i]->IsOnShelf()){ 4611 4612 this->b[i]=this->b[i]-di*(new_h[i]-h[i]); //hydrostatic equilibrium; 4612 4613 } 4613 4614 this->s[i]=this->b[i]+new_h[i]; 4615 this->h[i]=new_h[i]; 4614 4616 } 4615 4617 }
Note:
See TracChangeset
for help on using the changeset viewer.