Changeset 4026 for anuga_core/source/anuga/examples/run_gong.py
- Timestamp:
- Nov 21, 2006, 8:36:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/examples/run_gong.py
r3846 r4026 21 21 from mesh_factory import rectangular 22 22 from anuga.pyvolution.pmesh2domain import pmesh_to_domain, pmesh_to_domain_instance 23 from anuga.visualiser import RealtimeVisualiser 23 24 24 25 from Numeric import array … … 50 51 domain.checkpoint = False #True 51 52 domain.default_order = 1 52 domain.visualise = visualise53 53 domain.smooth = True 54 54 domain.set_datadir('.') 55 55 domain.starttime = 20000 56 56 57 if ( domain.visualise):57 if (visualise): 58 58 domain.store = False #True #Store for visualisation purposes 59 59 else: … … 122 122 domain.check_integrity() 123 123 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() 124 131 ###################### 125 132 #Evolution … … 127 134 for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime): 128 135 domain.write_time() 136 if visualise is True: 137 v.update() 138 if visualise is True: 139 v.evolveFinished() 129 140 130 141 print 'That took %.2f seconds' %(time.time()-t0)
Note: See TracChangeset
for help on using the changeset viewer.