Changeset 5079
- Timestamp:
- Feb 27, 2008, 9:12:46 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/debug/bad_time_step/run_dam.py
r5074 r5079 27 27 # Related major packages 28 28 from anuga.shallow_water import Domain, Reflective_boundary, \ 29 30 31 29 Dirichlet_boundary, Time_boundary, \ 30 File_boundary, \ 31 Transmissive_Momentum_Set_Stage_boundary 32 32 from anuga.fit_interpolate.interpolate import interpolate_sww2csv 33 33 from anuga.abstract_2d_finite_volumes.util import start_screen_catcher, \ … … 59 59 finaltime = 15. 60 60 maximum_triangle_area=0.01 61 #maximum_triangle_area=0.1 #OK 61 62 else: 62 63 yieldstep = 0.02 … … 69 70 outputdir_name=outputdir_name, 70 71 home='.') 71 print "The output dir is", pro_instance.outputdir72 print 'The output dir is', pro_instance.outputdir 72 73 copy_code_files(pro_instance.outputdir,__file__, 73 74 dirname(project.__file__) \ … … 90 91 91 92 print 'USER: ', pro_instance.user 93 94 92 95 #------------------------------------------------------------------------- 93 96 # Create the triangular mesh … … 132 135 # Create boundary function from timeseries provided in file 133 136 function = file_function(project.boundary_file, domain, verbose=True) 137 138 #print dir(function) 139 #print function.time, function.quantities_range 140 #import sys; sys.exit() 141 134 142 Bts = Transmissive_Momentum_Set_Stage_boundary(domain, function) 135 143 … … 145 153 146 154 for t in domain.evolve(yieldstep, finaltime): 147 148 domain.write_time() 149 print 'That took %.2f seconds' %(time.time()-t0) 150 print 'finished' 155 print domain.timestepping_statistics(track_speeds=False) 156 print domain.boundary_statistics(tags=['wave']) 157 158 print 'That took %.2f seconds' %(time.time()-t0) 159 print 'finished' 151 160 152 161 points = [[2.8,0.225], #-1.8m from SWL
Note: See TracChangeset
for help on using the changeset viewer.