Ignore:
Timestamp:
Jul 4, 2007, 5:22:18 PM (16 years ago)
Author:
nick
Message:

update model scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/dampier_2006/run_dampier_urs.py

    r4542 r4587  
    3838from anuga.caching import myhash
    3939from anuga.damage_modelling.inundation_damage import add_depth_and_momentum2csv, inundation_damage
     40from anuga.fit_interpolate.benchmark_least_squares import mem_usage
    4041# Application specific imports
    4142import project_urs                 # Definition of file names and polygons
     
    6970    kwargs['boundary_file']=project_urs.boundaries_in_dir_name + '.sww'
    7071#    kwargs['Completed']=''
    71 
     72   
    7273    start_screen_catcher(kwargs['output_dir'], myid, numprocs)
    7374
     
    223224   
    224225    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',
    231236                quantities = ['elevation','depth','stage','speed'], # '(xmomentum**2 + ymomentum**2)**0.5' defaults to elevation
    232237                timestep = None,
     
    243248                format = 'asc')
    244249   
    245     buildings_filename = project_urs.buildings_filename
    246     buildings_filename_out = project_urs.buildings_filename_out
     250        buildings_filename = project_urs.buildings_filename
     251        buildings_filename_out = project_urs.buildings_filename_out
    247252               
    248     inundation_damage(swwfile+'.sww', buildings_filename, buildings_filename_out)
    249     print '\n Augmented building file written to %s \n' %buildings_filename_out
     253        inundation_damage(swwfile+'.sww', buildings_filename, buildings_filename_out)
     254        print '\n Augmented building file written to %s \n' %buildings_filename_out
    250255   
    251256    barrier()
Note: See TracChangeset for help on using the changeset viewer.