Changeset 27679


Ignore:
Timestamp:
04/05/23 07:51:21 (2 years ago)
Author:
Mathieu Morlighem
Message:

CHG: minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Loads/Friction.cpp

    r27673 r27679  
    901901        /*This routine calculates the basal friction coefficient
    902902         *
    903          *               C |u_b|^(m-1)
     903         *               C^2 |u_b|^(m-1)
    904904         * alpha2= __________________________
    905          *          (1+(C/(Cmax Neff))^1/m |u_b| )^m
     905         *          (1+(C^2/(Cmax Neff))^1/m |u_b| )^m
    906906         *
    907907         * */
    908908
    909909        /*diverse: */
    910         IssmDouble  C,coeff,Cmax,m,alpha2;
     910        IssmDouble  C,Cmax,m,alpha2;
    911911
    912912        /*Recover parameters: */
    913913        element->GetInputValue(&Cmax,gauss,FrictionCmaxEnum);
    914         element->GetInputValue(&coeff,gauss,FrictionCEnum);
     914        element->GetInputValue(&C,gauss,FrictionCEnum);
    915915        element->GetInputValue(&m,gauss,FrictionMEnum);
    916916
    917         /* scale C for a better inversion */
    918         C = coeff*coeff;
    919917
    920918        /*Get effective pressure*/
     
    943941        }
    944942        else{
    945                 alpha2= (C*pow(ub,m-1.)) / pow(1.+  pow(C/(Cmax*Neff),1./m)*ub,m);
     943                alpha2= (C*C*pow(ub,m-1.)) / pow(1.+  pow(C*C/(Cmax*Neff),1./m)*ub,m);
    946944        }
    947945
Note: See TracChangeset for help on using the changeset viewer.