Changeset 24069
- Timestamp:
- 07/05/19 06:52:21 (6 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/HydrologyGlaDSAnalysis.cpp
r24063 r24069 4 4 #include "../shared/shared.h" 5 5 #include "../modules/modules.h" 6 7 #define AEPS 2.22e-15 6 8 7 9 /*Model processing*/ … … 256 258 /*Get norm of gradient of hydraulic potential and make sure it is >0*/ 257 259 IssmDouble normgradphi = sqrt(dphi[0]*dphi[0] + dphi[1]*dphi[1]); 258 if(normgradphi < 1.e-12) normgradphi = 1.e-12;260 if(normgradphi < AEPS) normgradphi = AEPS; 259 261 260 262 IssmDouble coeff = k*pow(h,alpha)*pow(normgradphi,beta-2.); … … 501 503 502 504 /*Make sure it is positive*/ 503 if(h_new[iv]< 1.e-12) h_new[iv] = 1.e-12;505 if(h_new[iv]<AEPS) h_new[iv] = AEPS; 504 506 } 505 507 -
issm/trunk-jpl/src/c/classes/Loads/Channel.cpp
r24064 r24069 25 25 #define ALPHA_S 5./4. 26 26 #define BETA_S 3./2. 27 #define AEPS 2.22e-15 27 28 28 29 /*Channel constructors and destructor*/ … … 423 424 dphimds = rho_water*g*(db[0]*tx + db[1]*ty); 424 425 Ngrad = fabs(dphids); 425 if(Ngrad< 1.e-12) Ngrad = 1.e-12;426 if(Ngrad<AEPS) Ngrad = AEPS; 426 427 427 428 /*Compute the effective conductivity Kc = k h^alpha |grad Phi|^{beta-2} (same for sheet)*/ … … 550 551 dphimds = rho_water*g*(db[0]*tx + db[1]*ty); 551 552 Ngrad = fabs(dphids); 552 if(Ngrad< 1.e-12) Ngrad = 1.e-12;553 if(Ngrad<AEPS) Ngrad = AEPS; 553 554 554 555 /*Compute the effective conductivity Ks = k h^alpha |grad Phi|^{beta-2} (same for sheet)*/ … … 652 653 dphimds = rho_water*g*(db[0]*tx + db[1]*ty); 653 654 Ngrad = fabs(dphids); 654 if(Ngrad< 1.e-12) Ngrad = 1.e-12;655 if(Ngrad<AEPS) Ngrad = AEPS; 655 656 656 657 /*d(phi - phi_m)/ds*/ -
issm/trunk-jpl/src/c/classes/Loads/Moulin.cpp
r24053 r24069 230 230 /*}}}*/ 231 231 bool Moulin::IsPenalty(void){/*{{{*/ 232 return true;232 return false; 233 233 } 234 234 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.