Changeset 28233 for issm/trunk-jpl/src/c/classes/Loads/Channel.cpp
- Timestamp:
- 04/29/24 13:59:08 (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Loads/Channel.cpp
r28050 r28233 380 380 bool istransition; 381 381 element->FindParam(&istransition,HydrologyIsTransitionEnum); 382 bool isincludesheetthickness; 383 element->FindParam(&isincludesheetthickness,HydrologyIsIncludeSheetThicknessEnum); 382 384 IssmDouble L = element->FindParam(MaterialsLatentheatEnum); 383 385 IssmDouble mu_water = element->FindParam(MaterialsMuWaterEnum); … … 435 437 /*Get values for a few potentials*/ 436 438 phi_0 = rho_water*g*b + rho_ice*g*H; 439 if(isincludesheetthickness) phi_0 += rho_water*g*h; 437 440 dphids = dphi[0]*tx + dphi[1]*ty; 438 441 dphimds = rho_water*g*(db[0]*tx + db[1]*ty); … … 541 544 bool istransition; 542 545 element->FindParam(&istransition,HydrologyIsTransitionEnum); 546 bool isincludesheetthickness; 547 element->FindParam(&isincludesheetthickness,HydrologyIsIncludeSheetThicknessEnum); 543 548 IssmDouble L = element->FindParam(MaterialsLatentheatEnum); 544 549 IssmDouble mu_water = element->FindParam(MaterialsMuWaterEnum); … … 592 597 /*Get values for a few potentials*/ 593 598 phi_0 = rho_water*g*b + rho_ice*g*H; 599 if(isincludesheetthickness) phi_0 += rho_water*g*h; 594 600 dphids = dphi[0]*tx + dphi[1]*ty; 595 601 dphimds = rho_water*g*(db[0]*tx + db[1]*ty); … … 691 697 bool istransition; 692 698 element->FindParam(&istransition,HydrologyIsTransitionEnum); 699 bool isincludesheetthickness; 700 element->FindParam(&isincludesheetthickness,HydrologyIsIncludeSheetThicknessEnum); 693 701 IssmDouble L = element->FindParam(MaterialsLatentheatEnum); 694 702 IssmDouble rho_ice = element->FindParam(MaterialsRhoIceEnum); … … 738 746 /*Get values for a few potentials*/ 739 747 phi_0 = rho_water*g*b + rho_ice*g*H; 748 if(isincludesheetthickness) phi_0 += rho_water*g*h; 740 749 dphids = dphi[0]*tx + dphi[1]*ty; 741 750 dphimds = rho_water*g*(db[0]*tx + db[1]*ty);
Note:
See TracChangeset
for help on using the changeset viewer.