Ignore:
Timestamp:
Nov 21, 2006, 8:36:47 PM (18 years ago)
Author:
jack
Message:

Moved the vpython visualiser to obsolete_code and cleared out things that call it from other code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/examples/run_gong.py

    r3846 r4026  
    2121from mesh_factory import rectangular
    2222from anuga.pyvolution.pmesh2domain import pmesh_to_domain, pmesh_to_domain_instance
     23from anuga.visualiser import RealtimeVisualiser
    2324
    2425from Numeric import array
     
    5051    domain.checkpoint = False #True
    5152    domain.default_order = 1
    52     domain.visualise = visualise
    5353    domain.smooth = True
    5454    domain.set_datadir('.')
    5555    domain.starttime = 20000
    5656
    57     if (domain.visualise):
     57    if (visualise):
    5858        domain.store = False  #True    #Store for visualisation purposes
    5959    else:
     
    122122    domain.check_integrity()
    123123
     124    # prepare the visualiser
     125    if visualise is True:
     126        v = RealtimeVisualiser(domain)
     127        v.render_quantity_height('elevation', dynamic=False)
     128        v.render_quantity_height('stage', dynamic=True)
     129        v.colour_height_quantity('stage', (0.0, 0.0, 0.8))
     130        v.start()
    124131    ######################
    125132    #Evolution
     
    127134    for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime):
    128135        domain.write_time()
     136        if visualise is True:
     137            v.update()
     138    if visualise is True:
     139        v.evolveFinished()
    129140   
    130141    print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset for help on using the changeset viewer.