Ignore:
Timestamp:
Aug 28, 2007, 2:23:35 PM (17 years ago)
Author:
ole
Message:

Implemented optimisation excluding dry cells from flux calculation.
All tests pass and the script run_okushiri_profile.py reports an improvement
in compute_fluxes from 11.25s to 8.58s or 24% faster.
The overall computation was about 40s, so this optimisation improved the
total running time for the problem in question by 7%.

This partially addresses ticket:135

File:
1 edited

Legend:

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

    r4631 r4685  
    102102     beta_uh, beta_uh_dry, beta_vh, beta_vh_dry, tight_slope_limiters
    103103from anuga.config import alpha_balance
     104from anuga.config import optimise_dry_cells
    104105
    105106
     
    164165
    165166        self.tight_slope_limiters = tight_slope_limiters
     167        self.optimise_dry_cells = optimise_dry_cells
    166168
    167169        self.flux_function = flux_function_central
     
    889891                                         Ymom.explicit_update,
    890892                                         domain.already_computed_flux,
    891                                          domain.max_speed)
     893                                         domain.max_speed,
     894                                         int(domain.optimise_dry_cells))
    892895
    893896
Note: See TracChangeset for help on using the changeset viewer.