Ignore:
Timestamp:
Jun 20, 2005, 4:53:05 PM (19 years ago)
Author:
steve
Message:
 
File:
1 edited

Legend:

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

    r1471 r1520  
    2222M = 50
    2323
    24 points, vertices, boundary, full_send_dict, ghost_recv_dict = parallel_rectangular(N, M, len1=1.0)
     24points, vertices, boundary, full_send_dict, ghost_recv_dict =  \
     25    parallel_rectangular(N, M, len1_g=1.0)
    2526
    2627#Create advection domain with direction (1,-1)
     
    3132
    3233#turn on the visualisation
    33 domain.initialise_visualiser()
     34rect = [0.0, 0.0, 1.0, 1.0]
     35domain.initialise_visualiser(rect=rect)
    3436
    3537#Boundaries
     
    5557        return self.h*((x>self.x0)&(x<self.x1))
    5658
     59domain.set_quantity('stage', Set_Stage(0.2,0.4,1.0))
     60
    5761if myid == 0:
    58     domain.set_quantity('stage', Set_Stage(0.2,0.4,1.0))
    5962    import time
    6063    t0 = time.time()
    6164
    6265#Check that the boundary value gets propagated to all elements
    63 for t in domain.evolve(yieldstep = 0.5, finaltime = 3.0):
     66for t in domain.evolve(yieldstep = 0.1, finaltime = 3.0):
    6467    if myid == 0:
    6568        domain.write_time()
Note: See TracChangeset for help on using the changeset viewer.