Changeset 18990
- Timestamp:
- 01/06/15 10:06:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Loads/Friction.cpp
r18988 r18990 191 191 } 192 192 Chi=vmag/(pow(C_param,n)*pow(Neff,n)*As); 193 alpha2= Neff * C_param * pow((Chi/(1 + alpha * pow(Chi,q_exp))),1/n) * 1/vmag; 193 194 195 /*Check to prevent dividing by zero if vmag==0*/ 196 if(vmag==0.) alpha2=0.; 197 else alpha2= Neff * C_param * pow((Chi/(1 + alpha * pow(Chi,q_exp))),1/n) * 1/vmag; 194 198 _assert_(!xIsNan<IssmDouble>(alpha2)); 195 199 /*Assign output pointers:*/
Note:
See TracChangeset
for help on using the changeset viewer.