Index: ../trunk-jpl/src/c/classes/Elements/Tria.cpp
===================================================================
--- ../trunk-jpl/src/c/classes/Elements/Tria.cpp	(revision 18946)
+++ ../trunk-jpl/src/c/classes/Elements/Tria.cpp	(revision 18947)
@@ -3252,8 +3252,8 @@
 					if (this->IsFloating()){
 						/*hydrostatic equilibrium: */
 						IssmDouble rho_ice,rho_water,di;
-						rho_ice   = this->matpar->GetRhoIce();
-						rho_water = this->matpar->GetRhoWater();
+						rho_ice   = this->matpar->GetMaterialParameter(MaterialsRhoIceEnum);
+						rho_water = this->matpar->GetMaterialParameter(MaterialsRhoSeawaterEnum);
 						di        = rho_ice/rho_water;
 
 						/*build new thickness: */
