Changeset 5762


Ignore:
Timestamp:
Sep 14, 2008, 3:13:53 PM (14 years ago)
Author:
steve
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga_parallel/run_parallel_advection.py

    r5306 r5762  
    7878# Turn on the visualisation
    7979
     80
     81
     82
    8083# rect = [0.0, 0.0, 1.0, 1.0]
    8184# domain.initialise_visualiser(rect=rect)
     
    98101# Let processor 0 output some timing information
    99102
     103visualise = True
     104if visualise:
     105    from anuga.visualiser import RealtimeVisualiser
     106    vis = RealtimeVisualiser(domain)
     107    vis.render_quantity_height("elevation", offset=0.01, dynamic=False)
     108    vis.render_quantity_height("stage", dynamic=True)
     109    vis.colour_height_quantity('stage', (0.2, 0.2, 0.8))
     110    vis.start()
     111    import time
     112    time.sleep(2.0)
     113   
     114
     115
    100116if myid == 0:
    101117    import time
     
    105121    if myid == 0:
    106122        domain.write_time()
     123       
     124    if visualise:
     125        vis.update()                                           
     126
     127       
     128
     129if visualise: vis.evolveFinished()
     130   
    107131
    108132# Output some computation statistics
     
    114138    print 'Reduction Communication time %.2f seconds'\
    115139          %domain.communication_reduce_time
     140       
     141 
     142vis.join()     
Note: See TracChangeset for help on using the changeset viewer.