Changeset 12483
- Timestamp:
 - 06/20/12 15:03:28 (13 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  issm/trunk-jpl/src/c/objects/Loads/Friction.cpp (modified) (6 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
issm/trunk-jpl/src/c/objects/Loads/Friction.cpp
r12472 r12483 107 107 vmag=sqrt(pow(vx,2)+pow(vy,2)+pow(vz,2)); 108 108 } 109 else _error _("element_type %s not supported yet",element_type);109 else _error2_("element_type "<< element_type << " not supported yet"); 110 110 111 111 /*Checks that s-1>0 if v=0*/ 112 if(vmag==0 && (s-1)<0) _error_("velocity is 0 ans (s-1)=%g<0, alpha_complement is Inf",s-1);112 if(vmag==0 && (s-1)<0) _error2_("velocity is 0 and (s-1)=" << (s-1) << "<0, alpha_complement is Inf"); 113 113 114 114 alpha2=pow(drag_coefficient,2)*pow(Neff,r)*pow(vmag,(s-1)); … … 171 171 vmag=sqrt(pow(vx,2)+pow(vy,2)+pow(vz,2)); 172 172 } 173 else _error _("element_type %s not supported yet",element_type);173 else _error2_("element_type "<< element_type << " not supported yet"); 174 174 175 175 /*Checks that s-1>0 if v=0*/ 176 if(vmag==0 && (s-1)<0) _error _("velocity is 0 ans (s-1)=%g<0, alpha_complement is Inf",s-1);176 if(vmag==0 && (s-1)<0) _error2_("velocity is 0 and (s-1)=" << (s-1) << "<0, alpha_complement is Inf"); 177 177 178 178 alpha2=pow(drag_coefficient,2)*pow(Neff,r)*pow(vmag,(s-1)); … … 238 238 vmag=sqrt(pow(vx,2)+pow(vy,2)+pow(vz,2)); 239 239 } 240 else _error _("element_type %s not supported yet",element_type);240 else _error2_("element_type "<< element_type << " not supported yet"); 241 241 242 242 /*Checks that s-1>0 if v=0*/ 243 if(vmag==0 && (s-1)<0) _error _("velocity is 0 ans (s-1)=%g<0, alpha_complement is Inf",s-1);243 if(vmag==0 && (s-1)<0) _error2_("velocity is 0 and (s-1)=" << (s-1) << "<0, alpha_complement is Inf"); 244 244 245 245 alpha_complement=pow(Neff,r)*pow(vmag,(s-1)); _assert_(!isnan(alpha_complement)); … … 304 304 vmag=sqrt(pow(vx,2)+pow(vy,2)+pow(vz,2)); 305 305 } 306 else _error _("element_type %s not supported yet",element_type);306 else _error2_("element_type "<< element_type << " not supported yet"); 307 307 308 308 /*Checks that s-1>0 if v=0*/ 309 if(vmag==0 && (s-1)<0) _error _("velocity is 0 ans (s-1)=%g<0, alpha_complement is Inf",s-1);309 if(vmag==0 && (s-1)<0) _error2_("velocity is 0 and (s-1)=" << (s-1) << "<0, alpha_complement is Inf"); 310 310 311 311 alpha_complement=pow(Neff,r)*pow(vmag,(s-1)); _assert_(!isnan(alpha_complement)); … … 319 319 320 320 Input* input=inputs->GetInput(enum_type); 321 if(!input) _error _("input %s not found",EnumToStringx(enum_type));321 if(!input) _error2_("input " << EnumToStringx(enum_type) << " not found"); 322 322 input->GetInputValue(pvalue,gauss); 323 323 … … 328 328 329 329 Input* input=inputs->GetInput(enum_type); 330 if(!input) _error _("input %s not found",EnumToStringx(enum_type));330 if(!input) _error2_("input " << EnumToStringx(enum_type) << " not found"); 331 331 input->GetInputValue(pvalue,gauss); 332 332  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)