Ignore:
Timestamp:
Apr 28, 2010, 9:36:26 AM (14 years ago)
Author:
hudson
Message:

Added profiling info to benchmark.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/benchmarks/benchmark_sww2dem.py

    r7697 r7698  
    77from create_test_sww import create_test_sww
    88import os.path
     9import cProfile
    910
    10 sww_name = 'test.sww'
    1111
    12 # use existing file
    13 if not os.path.isfile(sww_name):
    14         create_test_sww(sww_name)
     12def sww2dem_test():
     13        sww_name = 'test.sww'
    1514
    16 # do export to DEM
     15        # use existing file
     16        if not os.path.isfile(sww_name):
     17                create_test_sww(sww_name)
    1718
    18 sww2dem('test',
    19         basename_out='sww2dem_out',
    20         quantity='stage',
    21         cellsize=1,     
    22         easting_min=0,
    23         easting_max=100,
    24         northing_min=0,
    25         northing_max=100,       
    26         reduction=max,
    27         verbose=True,
    28         format='asc')
     19        # do export to DEM
    2920
     21        sww2dem('test',
     22                        basename_out='sww2dem_out',
     23                        quantity='stage',
     24                        cellsize=1,     
     25                        easting_min=0,
     26                        easting_max=100,
     27                        northing_min=0,
     28                        northing_max=100,       
     29                        reduction=max,
     30                        verbose=True,
     31                        format='asc')
     32
     33                       
     34                       
     35cProfile.run('sww2dem_test()')
Note: See TracChangeset for help on using the changeset viewer.