Changeset 4359


Ignore:
Timestamp:
Apr 4, 2007, 12:44:33 PM (18 years ago)
Author:
nick
Message:

update perth

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/perth_2006/run_perth.py

    r4152 r4359  
    5353
    5454tide = project.tide
    55 
     55print 'hello'
    5656# creates copy of code in output dir
    5757if myid == 0:
     
    6363print 'min triangles', project.trigs_min,
    6464print 'Note: This is generally about 20% less than the final amount'
    65 
     65import sys
     66sys.exit()
    6667#--------------------------------------------------------------------------
    6768# Create the triangular mesh based on overall clipping polygon with a
     
    7273
    7374if myid == 0:
    74 
    75     print 'start create mesh from regions'
    76 #    interior_regions = [[project.poly_pos20_neg20, project.res_pos20_neg20],
    77 #                    [project.poly_cbd, project.res_cbd],
    78 #                    [project.poly_penguin, project.res_penguin]]   
    79 #                    [project.poly_interior, 1000]]       
    80 
    81 #    from anuga.utilities.polygon import plot_polygons
    82 #    figname = project.output_run_time_dir + 'poly_pic'
    83 #    plot_polygons([project.poly_coast,project.poly_pipeline,project.poly_facility,
    84 #               project.bounding_polygon],
    85 #               figname,
    86 #               verbose = True)
    87 #    import sys; sys.exit()
    8875
    8976    print 'start create mesh from regions'
     
    10895domain = Domain(meshes_dir_name, use_cache=True, verbose=True)
    10996print domain.statistics()
    110 '''
    111 print 'starting to create boundary conditions'
    112 boundaries_in_dir_name = project.boundaries_in_dir_name
    113 
    114 from anuga.shallow_water.data_manager import urs2sww, ferret2sww
    115 
    116 # put above distribute
    117 print 'boundary file is: ',boundaries_dir_name
    118 from caching import cache
    119 if myid == 0:
    120     cache(ferret2sww,
    121           (boundaries_in_dir_name,
    122     #       boundaries_time_dir_name),
    123            boundaries_dir_name),
    124           {'verbose': True,
    125            'minlat': project.south_boundary,
    126            'maxlat': project.north_boundary,
    127            'minlon': project.west_boundary,
    128            'maxlon': project.east_boundary,
    129 #           'minlat': project.south,
    130 #           'maxlat': project.north,
    131 #           'minlon': project.west,
    132 #           'maxlon': project.east,
    133            'mint': 0, 'maxt': 35100,
    134            'origin': domain.geo_reference.get_origin(),
    135            'mean_stage': project.tide,
    136 #           'zscale': 1,                 #Enhance tsunami
    137            'fail_on_NaN': False},
    138            verbose = True,
    139            )
    140 barrier()
    141 '''
    14297
    14398#-------------------------------------------------------------------------
     
    154109
    155110    domain.set_quantity('elevation',
    156 #                    filename = project.combined_dir_name+'.txt',
    157                     filename = project.combined_smaller_name_dir+'.txt',
     111                    filename = project.combined_dir_name+'.txt',
     112#                    filename = project.combined_smaller_name_dir+'.txt',
    158113                    use_cache = True,
    159114                    verbose = True,
     
    176131domain.set_datadir(project.output_run_time_dir)
    177132domain.set_default_order(2) # Apply second order scheme
    178 domain.set_minimum_storable_height(0.01) # Don't store anything less than 1cm
     133domain.set_minimum_storable_height(0.001) # Don't store anything less than 0.1cm
     134#domain.set_minimum_storable_height(0.01) # Don't store anything less than 1cm
     135#domain.set_minimum_storable_height(0.1) # Don't store anything less than 10cm
    179136domain.set_store_vertices_uniquely(False)
    180137domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum'])
Note: See TracChangeset for help on using the changeset viewer.