Ignore:
Timestamp:
May 27, 2009, 4:25:47 PM (15 years ago)
Author:
ole
Message:

Optimised compute_fluxes by disabling limitation of momentum perpendicular to the x-axis. Speeds calculated from the x-momentum are still being limited according to the _compute_speeds. All tests pass and the overall improvement is as follows:
For the simple profile compute_fluxes improved from 4.284s to 3.372s and the overall runtime of evolve from 10.909s to 9.941s. This is an overall speedup of more than 8%.

For the okushiri profile example the improvement of compute_fluxes is from 129.432s to 111.703s and the overall runtime was reduced from 312.336s to 293.286s or about 6% improvement. This is probably the more realistic profile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py

    r7090 r7105  
    16161616            assert num.allclose(w_t, w)
    16171617            assert num.allclose(uh_t, uh)           
    1618             assert num.allclose(vh_t, 0.0)                       
     1618            assert num.allclose(vh_t, 0.0, atol=1.0e-6)                       
    16191619           
    16201620           
     
    17121712            assert num.allclose(w_t, w)
    17131713            assert num.allclose(uh_t, uh)           
    1714             assert num.allclose(vh_t, 0.0)                       
     1714            assert num.allclose(vh_t, 0.0, atol=1.0e-6)                       
    17151715           
    17161716           
Note: See TracChangeset for help on using the changeset viewer.