Changeset 23156 for issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
- Timestamp:
- 08/21/18 19:16:04 (7 years ago)
- File:
-
- 1 edited
-
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r23143 r23156 710 710 element->GetInputValue(&Cc,gauss,FrictionSedimentCompressibilityCoefficientEnum); 711 711 element->GetInputValue(&W,gauss,WatercolumnEnum); 712 element->GetInputValue(&Wmax,gauss,FrictionWatercolumnMaxEnum); 713 714 // /*Check that water column height is within 0 and upper bound, correct if needed*/ 715 // // if watercolumn height is higher than the maximum allowed height, set height to upper bound 716 // if(W>Wmax){ 717 // W=Wmax; 718 // } 719 // // if watercolumn height is negative (shouldn't happen), set it to 0 720 // if(W<0){ 721 // W=0; 722 // } 723 // // if watercolumn height is within 0 and upper bound, nothing to be done 724 // else{ 725 // //do nothing 726 // } 712 element->GetInputValue(&Wmax,gauss,HydrologyWatercolumnMaxEnum); 713 714 /*Check that water column height is within 0 and upper bound, correct if needed*/ 715 if(W>Wmax) W=Wmax; 716 if(W<0) W=0.; 727 717 728 718 N = delta*P0*pow(10.,(e0/Cc)*(1.-W/Wmax)); … … 746 736 element->parameters->FindParam(&u0,FrictionThresholdSpeedEnum); 747 737 element->parameters->FindParam(&q,FrictionPseudoplasticityExponentEnum); 748 IssmDouble alpha2 = tau_c/(pow(ub ,1.-q)*pow(u0,q));738 IssmDouble alpha2 = tau_c/(pow(ub+1.e-10,1.-q)*pow(u0,q)); 749 739 750 740 /*Final checks in debuging mode*/
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)