Index: /issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Elements/Penta.cpp	(revision 18947)
+++ /issm/trunk-jpl/src/c/classes/Elements/Penta.cpp	(revision 18948)
@@ -3381,6 +3381,6 @@
 						/*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;
