Changeset 3090
- Timestamp:
- 02/23/10 14:15:38 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Tria.cpp
r3086 r3090 4604 4604 4605 4605 /*Update internal data if inputs holds new values: */ 4606 if(inputs->Recover("thickness",&new_h[0],1,dofs,3,(void**)nodes)){ 4607 /*density, needed later: */ 4608 double di=(this->matpar->GetRhoIce()/this->matpar->GetRhoWater()); 4609 /*Go through grids: */ 4610 for (i=0;i<3;i++){ 4611 if(this->nodes[i]->IsOnShelf()){ 4612 this->b[i]=this->b[i]-di*(new_h[i]-h[i]); //hydrostatic equilibrium; 4613 } 4614 this->s[i]=this->b[i]+new_h[i]; 4615 this->h[i]=new_h[i]; 4616 } 4617 } 4606 if (id==1) printf("WARNING if QMU: no hydrostatic equilibrium is applied here (conflict with prognostic, which do not have matpar)\n"); 4607 //For now 4608 inputs->Recover("thickness",&h[0],1,dofs,3,(void**)nodes); 4609 //Later 4610 /* 4611 if(inputs->Recover("thickness",&new_h[0],1,dofs,3,(void**)nodes)){ 4612 //density, needed later: 4613 double di=(this->matpar->GetRhoIce()/this->matpar->GetRhoWater()); 4614 //Go through grids: 4615 for (i=0;i<3;i++){ 4616 if(this->nodes[i]->IsOnShelf()){ 4617 this->b[i]=this->b[i]-di*(new_h[i]-h[i]); //hydrostatic equilibrium; 4618 } 4619 this->s[i]=this->b[i]+new_h[i]; 4620 this->h[i]=new_h[i]; 4621 } 4622 } 4623 */ 4618 4624 inputs->Recover("surface",&s[0],1,dofs,3,(void**)nodes); 4619 4625 inputs->Recover("bed",&b[0],1,dofs,3,(void**)nodes);
Note:
See TracChangeset
for help on using the changeset viewer.