Changeset 23531


Ignore:
Timestamp:
12/10/18 06:48:57 (6 years ago)
Author:
bdef
Message:

BUG:fixing an error in the writting of frictionhydro

File:
1 edited

Legend:

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

    r23477 r23531  
    316316                Based on Gagliardini 2007, needs a good effective pressure computation
    317317                Not tested so far so use at your own risks
    318           alpha2= NeffC[Chi/(1+alpha*Chi^q)]^(1/n)*1/vel  with
    319                 -Chi=|vel|/(C^n*Neff^n*As)
    320                 -alpha=(q-1)^(q-1)/q^q */
     318          alpha2= NeffC[Chi/(1+alpha*Chi^q)]^(1/n)*|vel|^(1/n-1)  with
     319                 Chi=|vel|/(C^n*Neff^n*As)
     320                 alpha=(q-1)^(q-1)/q^q */
    321321
    322322        /*diverse: */
     
    375375        if(vmag==0.) alpha2=0.;
    376376        else    if (Neff==0) alpha2=0.0;
    377         else    alpha2=Neff * C_param * pow(Gamma,1./n) * 1/vmag;
     377        else    alpha2=Neff * C_param * pow(Gamma,1./n) * pow(vmag,1/n-1);
    378378
    379379        _assert_(!xIsNan<IssmDouble>(alpha2));
Note: See TracChangeset for help on using the changeset viewer.