Changeset 7034
 Timestamp:
 May 14, 2009, 1:44:08 PM (11 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

anuga_core/source/anuga/shallow_water/shallow_water_ext.c
r6840 r7034 223 223 224 224 225 // Optimised squareroot computation (double version , slower)225 // Optimised squareroot computation (double version) 226 226 double Xfast_squareroot_approximation(double number) { 227 227 double x; … … 323 323 324 324 // Code to use fast square root optimisation if desired. 325 // Timings on AMD 64 for the Okushiri profile gave the following timings 326 // 327 // SQRT Total Flux 328 //============================= 329 // 330 // Ref 405s 152s 331 // Fast (dbl) 453s 173s 332 // Fast (sng) 437s 171s 333 // 334 // Consequently, there is currently (14/5/2009) no reason to use this 335 // approximation. 336 325 337 //soundspeed_left = fast_squareroot_approximation(g*h_left); 326 338 //soundspeed_right = fast_squareroot_approximation(g*h_right);
Note: See TracChangeset
for help on using the changeset viewer.