Ignore:
Timestamp:
Nov 22, 2005, 2:14:12 PM (19 years ago)
Author:
steve
Message:

Fixed bug in visualisation of advection domain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/advection.py

    r1639 r2050  
    6464        self.visualise  = False
    6565        self.visualise_color_stage = False
     66        self.visualise_stage_range = 1.0
    6667        self.visualise_timer = True
    6768        self.visualise_range_z = None
     69
    6870
    6971        self.smooth = True
     
    342344        #Initialise real time viz if requested
    343345        if self.visualise is True and self.time == 0.0:
     346            #pass
    344347            #import realtime_visualisation_new as visualise
     348            #visualise.create_surface(self)
    345349            self.initialise_visualiser()
    346             #self.visualiser.update_quantity('stage')
     350            self.visualiser.setup_all()
    347351            self.visualiser.update_timer()
     352
    348353
    349354        #Call basic machinery from parent class
    350355        for t in Generic_domain.evolve(self, yieldstep, finaltime):
     356
     357
    351358            #Real time viz
    352359            if self.visualise is True:
    353                 #self.visualiser.update_quantity('stage')
     360                #pass
     361                self.visualiser.update_all()
    354362                self.visualiser.update_timer()
     363
    355364
    356365            #Pass control on to outer loop for more specific actions
Note: See TracChangeset for help on using the changeset viewer.