Changeset 4587 for anuga_work/production/dampier_2006/run_dampier_urs.py
- Timestamp:
- Jul 4, 2007, 5:22:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/dampier_2006/run_dampier_urs.py
r4542 r4587 38 38 from anuga.caching import myhash 39 39 from anuga.damage_modelling.inundation_damage import add_depth_and_momentum2csv, inundation_damage 40 from anuga.fit_interpolate.benchmark_least_squares import mem_usage 40 41 # Application specific imports 41 42 import project_urs # Definition of file names and polygons … … 69 70 kwargs['boundary_file']=project_urs.boundaries_in_dir_name + '.sww' 70 71 # kwargs['Completed']='' 71 72 72 73 start_screen_catcher(kwargs['output_dir'], myid, numprocs) 73 74 … … 223 224 224 225 kwargs['completed']=str(time.time()-t0) 225 226 if myid == 0: 227 store_parameters(**kwargs) 228 229 swwfile = kwargs['output_dir']+kwargs['aa_scenario_name'] 230 export_grid(swwfile, extra_name_out = 'town', 226 227 if myid == 0: 228 # store_parameters(**kwargs) 229 230 print 'memory usage before del domain',mem_usage() 231 # del domain 232 print 'memory usage after del domain',mem_usage() 233 234 swwfile = kwargs['output_dir']+kwargs['aa_scenario_name'] 235 export_grid(swwfile, extra_name_out = 'town', 231 236 quantities = ['elevation','depth','stage','speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation 232 237 timestep = None, … … 243 248 format = 'asc') 244 249 245 buildings_filename = project_urs.buildings_filename246 buildings_filename_out = project_urs.buildings_filename_out250 buildings_filename = project_urs.buildings_filename 251 buildings_filename_out = project_urs.buildings_filename_out 247 252 248 inundation_damage(swwfile+'.sww', buildings_filename, buildings_filename_out)249 print '\n Augmented building file written to %s \n' %buildings_filename_out253 inundation_damage(swwfile+'.sww', buildings_filename, buildings_filename_out) 254 print '\n Augmented building file written to %s \n' %buildings_filename_out 250 255 251 256 barrier()
Note: See TracChangeset
for help on using the changeset viewer.