Index: ../trunk-jpl/src/c/classes/Elements/Tria.cpp
===================================================================
--- ../trunk-jpl/src/c/classes/Elements/Tria.cpp	(revision 18950)
+++ ../trunk-jpl/src/c/classes/Elements/Tria.cpp	(revision 18951)
@@ -2221,8 +2221,10 @@
    IssmDouble sconv; //rhow_rain/rhoi / 12 months
    
    /*Get material parameters :*/
-   rho_ice=matpar->GetRhoIce();
-   rho_water=matpar->GetRhoFreshwater();
+   rho_water=matpar->GetMaterialParameter(MaterialsRhoSeawaterEnum);
+   rho_ice=matpar->GetMaterialParameter(MaterialsRhoIceEnum);
+   //rho_ice=matpar->GetRhoIce();
+   //rho_water=matpar->GetRhoFreshwater();
 
    sconv=(rho_water/rho_ice)/12.; //to convert monbthly prec in m of ice equivalent per month
 
Index: ../trunk-jpl/src/c/classes/Elements/Penta.cpp
===================================================================
--- ../trunk-jpl/src/c/classes/Elements/Penta.cpp	(revision 18950)
+++ ../trunk-jpl/src/c/classes/Elements/Penta.cpp	(revision 18951)
@@ -2018,8 +2018,10 @@
    IssmDouble sconv; //rhow_rain/rhoi / 12 months
 
    /*Get material parameters :*/
-   rho_ice=matpar->GetRhoIce();
-   rho_water=matpar->GetRhoFreshwater();
+   rho_water=matpar->GetMaterialParameter(MaterialsRhoSeawaterEnum);
+   rho_ice=matpar->GetMaterialParameter(MaterialsRhoIceEnum);
+   //rho_ice=matpar->GetRhoIce();
+   //rho_water=matpar->GetRhoFreshwater();
 
    sconv=(rho_water/rho_ice)/12.; //to convert monbthly prec in m of ice equivalent per month
 
