Changeset 1281


Ignore:
Timestamp:
May 3, 2005, 8:09:23 PM (20 years ago)
Author:
steve
Message:
 
Location:
inundation/ga/storm_surge
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/realtime_visualisation_new.py

    r1280 r1281  
    1919        try:
    2020            self.bed   = domain.quantities['elevation'].vertex_values
    21 
    2221            self.xmomentum = domain.quantities['xmomentum'].vertex_values
    2322            self.ymomentum = domain.quantities['ymomentum'].vertex_values
     
    8483        c1 = 0.3
    8584        c2 = 0.3
    86         try:
     85        if self.bed != None:
    8786            self.update_arrays(self.bed,  (c0,c1,c2) )
    88         except:
    89             pass
    90 
    91         #print 'update bed image'
    92         self.bed_model.pos    = self.pos
    93         self.bed_model.color  = self.colour
    94         self.bed_model.normal = self.normals
     87
     88            #print 'update bed image'
     89            self.bed_model.pos    = self.pos
     90            self.bed_model.color  = self.colour
     91            self.bed_model.normal = self.normals
    9592
    9693
     
    10097        c2 = 0.99
    10198        #print 'update stage arrays'
    102         self.update_arrays(self.stage, (c0,c1,c2) )
    103         #print 'update stage image'
    104         self.stage_model.pos    = self.pos
    105         self.stage_model.color  = self.colour
    106         self.stage_model.normal = self.normals
     99        if self.stage != None:
     100            self.update_arrays(self.stage, (c0,c1,c2) )
     101            #print 'update stage image'
     102            self.stage_model.pos    = self.pos
     103            self.stage_model.color  = self.colour
     104            self.stage_model.normal = self.normals
    107105
    108106    def update_xmomentum(self):
     
    311309    domain.surface = surface
    312310
    313     #surface.update_bed()
     311    surface.update_bed()
    314312    surface.update_stage()
    315313    #surface.update_xmomentum()
Note: See TracChangeset for help on using the changeset viewer.