Changeset 1281
- Timestamp:
- May 3, 2005, 8:09:23 PM (20 years ago)
- 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 19 19 try: 20 20 self.bed = domain.quantities['elevation'].vertex_values 21 22 21 self.xmomentum = domain.quantities['xmomentum'].vertex_values 23 22 self.ymomentum = domain.quantities['ymomentum'].vertex_values … … 84 83 c1 = 0.3 85 84 c2 = 0.3 86 try:85 if self.bed != None: 87 86 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 95 92 96 93 … … 100 97 c2 = 0.99 101 98 #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 107 105 108 106 def update_xmomentum(self): … … 311 309 domain.surface = surface 312 310 313 #surface.update_bed()311 surface.update_bed() 314 312 surface.update_stage() 315 313 #surface.update_xmomentum()
Note: See TracChangeset
for help on using the changeset viewer.