Changeset 5617
- Timestamp:
- Aug 6, 2008, 9:49:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth/run_perth.py
r5607 r5617 115 115 # barrier() 116 116 117 covariance_value,alpha = find_optimal_smoothing_parameter (data_file= kwargs['elevation_file'], 118 alpha_list=[0.001, 0.01, 0.1, 0.15, 0.2, 0.25, 0.3, 0.4, 0.5], 119 mesh_file = project.meshes_dir_name+'.msh') 120 print 'optimal alpha', covariance_value,alpha 121 117 ## covariance_value,alpha = find_optimal_smoothing_parameter (data_file= kwargs['elevation_file'], 118 ## alpha_list=[0.001, 0.01, 0.1, 0.15, 0.2, 0.25, 0.3, 0.4, 0.5], 119 ## mesh_file = project.meshes_dir_name+'.msh') 120 ## print 'optimal alpha', covariance_value,alpha 122 121 123 122 #------------------------------------------------------------------------- … … 196 195 domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum']) 197 196 domain.tight_slope_limiters = 1 198 #domain.set_maximum_allowed_speed(0.1) # Allow a little runoff (0.1 is OK)199 197 print 'domain id', id(domain) 200 201 198 202 199 #------------------------------------------------------------------------- … … 240 237 t0 = time.time() 241 238 242 using_sts_boundary = True243 244 239 for t in domain.evolve(yieldstep = project.yieldstep, finaltime = kwargs['finaltime'] 245 240 ,skip_initial_step = False): 246 241 domain.write_time() 247 242 domain.write_boundary_statistics(tags = 'ocean') 248 if using_sts_boundary is True: 249 if Bf.values >= 99: 250 domain.set_boundary({'ocean': Bd}) 251 using_sts_boundary = False 252 243 253 244 x, y = domain.get_maximum_inundation_location() 254 245 q = domain.get_maximum_inundation_elevation() … … 282 273 kwargs['output_dir']=project.output_run_time_dir 283 274 kwargs['elevation_file']=project.combined_dir_name+'.pts' 284 # kwargs['elevation_file']=project.combined_small_dir_name + '.pts'285 275 kwargs['boundary_file']=project.boundaries_in_dir_name + '.sww' 286 276 kwargs['file_name']=project.home+'detail.csv'
Note: See TracChangeset
for help on using the changeset viewer.