Index: ../trunk-jpl/src/c/classes/Elements/Element.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Element.cpp (revision 21558) +++ ../trunk-jpl/src/c/classes/Elements/Element.cpp (revision 21559) @@ -2039,8 +2039,9 @@ IssmDouble enthalpy[6]; GetInputListOnVertices(&enthalpy[0],EnthalpyEnum); ThermalToEnthalpy(&enthalpy[3],yearlytemperatures[3],0.,0.); - ThermalToEnthalpy(&enthalpy[4],yearlytemperatures[3],0.,0.); - ThermalToEnthalpy(&enthalpy[5],yearlytemperatures[3],0.,0.); + ThermalToEnthalpy(&enthalpy[4],yearlytemperatures[4],0.,0.); + ThermalToEnthalpy(&enthalpy[5],yearlytemperatures[5],0.,0.); + printarray(enthalpy,1,6); this->inputs->AddInput(new PentaInput(EnthalpyEnum,&enthalpy[0],P1Enum)); } }