Changeset 2563 for inundation/fit_interpolate/run_long_benchmark.py
 Timestamp:
 Mar 21, 2006, 10:58:32 AM (18 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

inundation/fit_interpolate/run_long_benchmark.py
r2184 r2563 7 7 delimiter = ',' 8 8 9 is_fit_list = [True, False] 10 num_of_points_list = [10, 1000, 100000, 10000000] 11 maxArea_list = [0.1, 0.001, 0.00001, 0.0000001] 9 use_least_squares_list = [True,False] 10 is_fit_list = [False] 11 num_of_points_list = [10] 12 maxArea_list = [0.1, 0.001] 13 #num_of_points_list = [10, 1000, 100000, 10000000] 14 #maxArea_list = [0.1, 0.001, 0.00001, 0.0000001] 12 15 max_points_per_cell_list = [8] 13 16 … … 15 18 # write the title line 16 19 17 fd.write("num_of_points" + delimiter + 20 fd.write("use_least_squares" + delimiter + 21 "num_of_points" + delimiter + 18 22 "maxArea" + delimiter + 19 23 "num_of_triangles" + delimiter + … … 23 27 "time" + delimiter + "\n") 24 28 25 for is_fit in is_fit_list: 26 for num_of_points in num_of_points_list: 27 for maxArea in maxArea_list: 28 for max_points_per_cell in max_points_per_cell_list: 29 30 for use_least_squares in use_least_squares_list: 31 for is_fit in is_fit_list: 32 for num_of_points in num_of_points_list: 33 for maxArea in maxArea_list: 34 for max_points_per_cell in max_points_per_cell_list: 29 35 30 time, mem, num_tri = ben.trial(num_of_points=num_of_points 31 ,maxArea=maxArea 32 ,max_points_per_cell=max_points_per_cell 33 ,is_fit=is_fit 34 ) 35 print "time",time 36 print "mem", mem 37 fd.write(str(is_fit) + delimiter + 38 str(num_of_points) + delimiter + 39 str(maxArea) + delimiter + 40 str(num_tri) + delimiter + 41 str(max_points_per_cell) + delimiter + 42 str(mem) + delimiter + 43 str(time) + delimiter + "\n") 36 time, mem, num_tri = ben.trial(num_of_points=num_of_points 37 ,maxArea=maxArea 38 ,max_points_per_cell=max_points_per_cell 39 ,is_fit=is_fit 40 ,use_least_squares=use_least_squares 41 ) 42 print "time",time 43 print "mem", mem 44 fd.write(str(use_least_squares) + delimiter + 45 str(is_fit) + delimiter + 46 str(num_of_points) + delimiter + 47 str(maxArea) + delimiter + 48 str(num_tri) + delimiter + 49 str(max_points_per_cell) + delimiter + 50 str(mem) + delimiter + 51 str(time) + delimiter + "\n") 44 52 fd.close()
Note: See TracChangeset
for help on using the changeset viewer.