Changeset 4861
- Timestamp:
- Nov 28, 2007, 1:56:28 PM (17 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/fit_interpolate/fit.py
r4859 r4861 116 116 self._build_smoothing_matrix_D() 117 117 118 self.mesh_boundary_polygon = self.mesh.get_boundary_polygon() 119 118 120 def _build_coefficient_matrix_B(self, 119 121 verbose = False): … … 268 270 inside_poly_indices, outside_poly_indices = \ 269 271 in_and_outside_polygon(point_coordinates, 270 self.mesh .get_boundary_polygon(),272 self.mesh_boundary_polygon, 271 273 closed = True, verbose = verbose) 272 274 #print "self.inside_poly_indices",self.inside_poly_indices -
anuga_core/source/anuga/fit_interpolate/run_long_benchmark.py
r4859 r4861 20 20 # Simulating Cairns. Seemed to take too long to run. Need to Try again. 21 21 22 #maxArea_list = [0.00001]23 #num_of_points_list = [1863558]22 maxArea_list = [0.00001] 23 num_of_points_list = [1863558] 24 24 25 25 # a maxArea of 0.0001 gives 15568 triangles … … 50 50 51 51 # Quick check 52 maxArea_list = [0.61]53 num_of_points_list = [4]52 # maxArea_list = [0.61] 53 #num_of_points_list = [4] 54 54 55 55 … … 58 58 max_points_per_cell_list = [13] 59 59 use_file_type_list = ['pts'] 60 run_profile = False # True #True # False #60 run_profile = True #False # True #True # False # 61 61 gridded_list = [True] #, False] 62 62 -
anuga_validation/automated_validation_tests/fitting/validate_benchmark_fit.py
r4841 r4861 25 25 #print "host", host 26 26 ben = BenchmarkLeastSquares() 27 time, mem, num_tri = ben.trial(27 time, mem, num_tri, one_t, more_t, quad_t = ben.trial( 28 28 num_of_points=1000 29 29 ,maxArea=0.0001 … … 37 37 if host.find('tornado') == 0 or host.find('compute-1') == 0: 38 38 # Tornado headnode or node 39 time_standard = 1 5.139 time_standard = 11.5 40 40 self.assert_(time<time_standard*1.2) 41 mem_standard = 1838441 mem_standard = 21280 42 42 self.assert_(mem<mem_standard*1.2) 43 43 44 44 elif host.find('compute-0') == 0: # cyclone node 45 time_standard = 20.045 time_standard = 17.0 46 46 self.assert_(time<time_standard*1.2) 47 mem_standard = 1892447 mem_standard = 21168 48 48 self.assert_(mem<mem_standard*1.2) 49 49 50 50 elif host.find('cyclone') == 0: # cyclone headnode 51 time_standard = 1 3.951 time_standard = 11.8 52 52 self.assert_(time<time_standard*1.2) 53 mem_standard = 1892453 mem_standard = 20500 54 54 self.assert_(mem<mem_standard*1.2) 55 55 … … 61 61 62 62 elif host.find('pc-31569') == 0: # DSG's PC 63 time_standard = 31.063 time_standard = 26.1 64 64 self.assert_(time<time_standard*1.2) 65 65 -
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.