Changeset 26585
- Timestamp:
- 11/10/21 09:19:42 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r26470 r26585 198 198 199 199 /*Check to prevent dividing by zero if vmag==0*/ 200 if(vmag==0. && (s-1.)< 0.) alpha_complement=0.;200 if(vmag==0. && (s-1.)<=0.) alpha_complement=0.; 201 201 else alpha_complement=pow(Neff,r)*pow(vmag,(s-1)); 202 202 … … 345 345 346 346 /*Check to prevent dividing by zero if vmag==0*/ 347 if(vmag==0. && (s-1.)< 0.){347 if(vmag==0. && (s-1.)<=0.){ 348 348 alpha2=0.; 349 349 } … … 541 541 542 542 /*Check to prevent dividing by zero if vmag==0*/ 543 if(vmag==0. && (s-1.)< 0.) alpha2=0.;543 if(vmag==0. && (s-1.)<=0.) alpha2=0.; 544 544 else alpha2=drag_coefficient*drag_coefficient*pow(Neff,r)*pow(vmag,(s-1.)); 545 545 … … 587 587 588 588 /*Check to prevent dividing by zero if vmag==0*/ 589 if(vmag==0. && (s-1.)< 0.) alpha2=0.;589 if(vmag==0. && (s-1.)<=0.) alpha2=0.; 590 590 else alpha2=drag_coefficient*drag_coefficient*pow(Neff,r)*pow(vmag,(s-1.)); 591 591
Note:
See TracChangeset
for help on using the changeset viewer.