source: anuga_core/source/anuga/visualiser_new/quick_run.py @ 5197

Last change on this file since 5197 was 5197, checked in by jack, 16 years ago

Updated new visualiser to use cProfile.

  • Property svn:executable set to *
File size: 474 bytes
Line 
1#!/usr/bin/env python
2from sww_visualiser import SWWVisualiser
3from height_quantity import HeightQuantity
4
5vis = SWWVisualiser(source='../../anuga_viewer/tests/cylinders.sww', recording=False, recordPattern='%02d.png')
6vis.add_feature(HeightQuantity('elevation'))
7vis.add_feature(HeightQuantity('stage', dynamic=True, #colour=(lambda q:q['stage'], 0.0, 10.0), offset=-0.01))
8                               colour=(0.0, 0.0, 0.8)))
9
10import cProfile
11cProfile.run('vis.run()')
Note: See TracBrowser for help on using the repository browser.