Changeset 5320 for anuga_validation


Ignore:
Timestamp:
May 14, 2008, 1:59:49 PM (17 years ago)
Author:
ole
Message:

work on performance profiling

Location:
anuga_validation/performance_tests
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/performance_tests/run_profile.py

    r5297 r5320  
    6666
    6767S = pstats.Stats(FN)
    68 #S.sort_stats('time').print_stats(20)
    69 s = S.sort_stats('cumulative').print_stats(30)
     68s = S.sort_stats('cumulative').print_stats(20)
    7069
    7170print s
     71
     72
  • anuga_validation/performance_tests/run_profile2.py

    r3568 r5320  
    1414     Dirichlet_boundary,\
    1515     Transmissive_boundary, Time_boundary
    16 
    17 from anuga.shallow_water.shallow_water_domain\
    18      import Weir_simple as Weir, Constant_height
    1916
    2017from mesh_factory import rectangular
     
    5552######################
    5653#Initial condition
    57 domain.set_quantity('stage', Constant_height(slope, 0.3))
     54domain.set_quantity('stage', expression='elevation + 0.3')
    5855
    5956domain.check_integrity()
Note: See TracChangeset for help on using the changeset viewer.