Ignore:
Timestamp:
Mar 29, 2006, 9:41:58 AM (19 years ago)
Author:
linda
Message:

Added ghost boundary layers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/parallel/run_parallel_merimbula.py

    r2152 r2625  
    8787    # read in the test files
    8888
    89     filename = 'test-100.tsh'
    90 #    filename = 'merimbula_10785.tsh'
     89#    filename = 'test-100.tsh'
     90    filename = 'merimbula_10785.tsh'
    9191    nx = numprocs
    9292    ny = 1
     
    9595
    9696    domain_full = pmesh_to_domain_instance(filename, Advection_Domain)
    97     domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))
    98 #    domain.set_quantity('stage', Set_Stage(756000.0,756500.0,4.0))
     97#    domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))
     98    domain_full.set_quantity('stage', Set_Stage(756000.0,756500.0,4.0))
    9999
    100100    nodes, triangles, boundary, triangles_per_proc, quantities  =\
    101101            pmesh_divide(domain_full, nx, ny)
    102 
     102   
    103103    # subdivide the mesh
    104104    rect = array(domain_full.xy_extent, Float)
    105 
    106     print rect
    107105
    108106    rect = array(rect, Float)
     
    128126             rec_submesh(0)
    129127
    130 #if myid == 0:
    131 #    print 'ghost'
    132 #    print ghost_recv_dict
    133 #
    134 #if myid == 0:
    135 #    print 'full'
    136 #    print full_send_dict
    137 
    138 
    139128pypar.broadcast(rect,0)
    140 print rect
    141129
    142130domain = Parallel_Domain(points, vertices, boundary,
     
    150138
    151139T = Transmissive_boundary(domain)
    152 R = Reflective_boundary(domain)
    153 domain.set_boundary( {'outflow': R, 'inflow': R, 'inner':R, 'exterior': R, 'open':R} )
     140#R = Reflective_boundary(domain)
     141domain.set_boundary( {'outflow': T, 'inflow': T, 'inner':T, 'exterior': T, 'open':T, 'ghost':None} )
    154142
    155143
     
    170158
    171159
     160from norms import linf_norm
    172161
    173162#yieldstep = 1
     163#finaltime = 4000
     164
    174165yieldstep = 1000
    175166finaltime = 50000
    176 # finaltime = 4000
     167
    177168for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime):
    178169    if myid == 0:
    179170        domain.write_time()
     171##    Stage = domain.quantities['stage']
     172##    max_stage = max(max(Stage.edge_values))
     173##    print max_stage
     174##    if max_stage > 4.0:
     175##        print "######################", max_stage
    180176
    181177if myid == 0:
Note: See TracChangeset for help on using the changeset viewer.