source: issm/oecreview/Archive/18296-19100/ISSM-18946-18947.diff

Last change on this file was 19102, checked in by Mathieu Morlighem, 10 years ago

NEW: added 18296-19100

File size: 706 bytes
RevLine 
[19102]1Index: ../trunk-jpl/src/c/classes/Elements/Tria.cpp
2===================================================================
3--- ../trunk-jpl/src/c/classes/Elements/Tria.cpp (revision 18946)
4+++ ../trunk-jpl/src/c/classes/Elements/Tria.cpp (revision 18947)
5@@ -3252,8 +3252,8 @@
6 if (this->IsFloating()){
7 /*hydrostatic equilibrium: */
8 IssmDouble rho_ice,rho_water,di;
9- rho_ice = this->matpar->GetRhoIce();
10- rho_water = this->matpar->GetRhoWater();
11+ rho_ice = this->matpar->GetMaterialParameter(MaterialsRhoIceEnum);
12+ rho_water = this->matpar->GetMaterialParameter(MaterialsRhoSeawaterEnum);
13 di = rho_ice/rho_water;
14
15 /*build new thickness: */
Note: See TracBrowser for help on using the repository browser.