Ignore:
Timestamp:
Jul 6, 2005, 9:55:40 PM (19 years ago)
Author:
steve
Message:

Better partitioning of meribula data set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/parallel/run_parallel_sw_merimbula.py

    r1583 r1585  
    5959# mesh partition routines
    6060
    61 from pmesh_divide import pmesh_divide
     61from pmesh_divide import pmesh_divide, pmesh_divide_steve
    6262from build_submesh import *
    6363from build_local import *
     
    105105
    106106    nodes, triangles, boundary, triangles_per_proc, quantities = \
    107          pmesh_divide(domain_full, nx, ny)
     107         pmesh_divide_steve(domain_full, nx, ny)
    108108
    109109    rect = array(domain_full.xy_extent, Float)
     
    146146
    147147domain.initialise_visualiser(rect=rect,scale_z =0.1)
     148#domain.initialise_visualiser(rect=rect)
    148149domain.visualise_color_stage = True
    149150domain.default_order = 1
     
    156157domain.set_boundary( {'outflow': R, 'inflow': R, 'inner':R, 'exterior': R, 'open':R} )
    157158
    158 print quantities.keys()
     159
    159160domain.set_quantity('stage', quantities['stage'])
    160161domain.set_quantity('elevation', quantities['elevation'])
     
    163164# Evolution
    164165t0 = time.time()
    165 domain.visualise = True
     166
     167print 'Processor %d No of elements %d'%(domain.processor,domain.number_of_elements)
    166168yieldstep = 10.0
    167 finaltime = 1000.0
     169finaltime = 500.0
    168170
    169171#yieldstep = 10
     
    173175    if myid == 0:
    174176        domain.write_time()
    175         print domain.quantities['stage'].centroid_values[0]
     177        print domain.quantities['stage'].get_integral()
    176178
    177179if myid == 0:
Note: See TracChangeset for help on using the changeset viewer.