Changeset 26866


Ignore:
Timestamp:
02/09/22 05:54:46 (3 years ago)
Author:
Mathieu Morlighem
Message:

CHG: cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Materials/Matice.cpp

    r26478 r26866  
    394394        }
    395395        else{
    396 
    397                 /*if no strain rate, return maximum viscosity*/
    398                 if(eps_eff==0.){
    399                         viscosity = 1.e+14/2.;
    400                         //viscosity=2.5*pow(10.,17);
    401                 }
    402 
     396                /*if strain rate is 0., it is probably our initial guess, use an average
     397                 * viscosity instead of a large one*/
     398                if(eps_eff==0.) viscosity = 1.e+14/2.;
    403399                else{
     400                        /*if no strain rate, return maximum viscosity*/
     401                        //if(eps_eff<1.e-6) eps_eff = 1e-6;
    404402                        viscosity=(1.-D)*B/(2.*pow(E,1./n)*pow(eps_eff,(n-1.)/n));
    405403                }
Note: See TracChangeset for help on using the changeset viewer.