source: issm/oecreview/Archive/26740-27031/ISSM-26865-26866.diff@ 27032

Last change on this file since 27032 was 27032, checked in by Mathieu Morlighem, 3 years ago

CHG: added 26740-27031

File size: 797 bytes
  • ../trunk-jpl/src/c/classes/Materials/Matice.cpp

     
    393393                viscosity=(1.-D)*B/(2.*E);
    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                }
    406404        }
Note: See TracBrowser for help on using the repository browser.