Changeset 4861 for anuga_work/development/cairns_demo
- Timestamp:
- Nov 28, 2007, 1:56:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/cairns_demo/runcairns.py
r4860 r4861 1 1 2 """Script for running a tsunami inundation scenario for Cairns, QLD Australia. 2 3 … … 31 32 from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf 32 33 from anuga.shallow_water.data_manager import dem2pts 34 from anuga.fit_interpolate.search_functions import search_times, \ 35 reset_search_times 36 from anuga.fit_interpolate.general_fit_interpolate import \ 37 get_build_quadtree_time 33 38 34 39 # Application specific imports … … 39 44 # Define scenario as either slide or fixed_wave. 40 45 #------------------------------------------------------------------------------ 41 #scenario = 'slide'42 scenario = 'fixed_wave'46 scenario = 'slide' 47 #scenario = 'fixed_wave' 43 48 44 49 if os.access(scenario, os.F_OK) == 0: … … 95 100 # Setup computational domain 96 101 #------------------------------------------------------------------------------ 102 97 103 from anuga.abstract_2d_finite_volumes.pmesh2domain import pmesh_to_domain_instance 98 104 from anuga.caching import cache … … 127 133 tide = 0.0 128 134 domain.set_quantity('stage', tide) 129 domain.set_quantity('friction', 0.0) 135 domain.set_quantity('friction', 0.0) 136 137 138 t0 = time.time() 130 139 domain.set_quantity('elevation', 131 140 filename=dem_name + '.pts', … … 134 143 alpha=0.1) 135 144 136 137 145 print 'Fitting the elevation data took %.2f seconds' %(time.time()-t0) 146 147 search_one_cell_time, search_more_cells_time = search_times() 148 reset_search_times() 149 print "search_one_cell_time",search_one_cell_time 150 print "search_more_cells_time", search_more_cells_time 151 print "build_quadtree_time", get_build_quadtree_time() 152 import sys; sys.exit() 138 153 #------------------------------------------------------------------------------ 139 154 # Setup information for slide scenario (to be applied 1 min into simulation … … 184 199 #------------------------------------------------------------------------------ 185 200 186 import time187 201 t0 = time.time() 188 202
Note: See TracChangeset
for help on using the changeset viewer.