Changeset 7922
- Timestamp:
- 04/15/11 08:05:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Loads/Friction.cpp
r7907 r7922 110 110 else _error_("element_type %s not supported yet",element_type); 111 111 112 /*Checks that s-1>0 if v=0*/ 113 if(vmag==0 && (s-1)<0) _error_("velocity is 0 ans (s-1)=%g<0, alpha_complement is Inf",s-1); 114 112 115 alpha2=pow(drag_coefficient,2)*pow(Neff,r)*pow(vmag,(s-1)); 113 116 _assert_(!isnan(alpha2)); … … 171 174 } 172 175 else _error_("element_type %s not supported yet",element_type); 176 177 /*Checks that s-1>0 if v=0*/ 178 if(vmag==0 && (s-1)<0) _error_("velocity is 0 ans (s-1)=%g<0, alpha_complement is Inf",s-1); 173 179 174 180 alpha2=pow(drag_coefficient,2)*pow(Neff,r)*pow(vmag,(s-1)); … … 230 236 vmag=sqrt(pow(vx,2)+pow(vy,2)); 231 237 232 /*Checks */238 /*Checks that s-1>0 if v=0*/ 233 239 if(vmag==0 && (s-1)<0) _error_("velocity is 0 ans (s-1)=%g<0, alpha_complement is Inf",s-1); 234 240
Note:
See TracChangeset
for help on using the changeset viewer.