Changeset 4026 for anuga_core/source/anuga/advection/advection.py
- Timestamp:
- Nov 21, 2006, 8:36:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/advection/advection.py
r3928 r4026 79 79 self.default_order = self.order = 1 80 80 81 #Realtime visualisation82 self.visualiser = None83 self.visualise = False84 self.visualise_color_stage = False85 self.visualise_stage_range = 1.086 self.visualise_timer = True87 self.visualise_range_z = None88 89 90 81 self.smooth = True 91 92 def initialise_visualiser(self,scale_z=1.0,rect=None):93 #Realtime visualisation94 if self.visualiser is None:95 from realtime_visualisation_new import Visualiser96 # from vtk_realtime_visualiser import Visualiser97 self.visualiser = Visualiser(self,scale_z,rect)98 self.visualise = True99 100 82 101 83 def check_integrity(self): … … 373 355 """ 374 356 375 #Initialise real time viz if requested376 if self.visualise is True and self.time == 0.0:377 #pass378 #import realtime_visualisation_new as visualise379 #visualise.create_surface(self)380 self.initialise_visualiser()381 self.visualiser.setup_all()382 self.visualiser.update_timer()383 384 385 357 #Call basic machinery from parent class 386 358 for t in Generic_domain.evolve(self, … … 390 362 skip_initial_step=skip_initial_step): 391 363 392 393 394 395 #Real time viz396 if self.visualise is True:397 #pass398 self.visualiser.update_all()399 self.visualiser.update_timer()400 401 402 364 #Pass control on to outer loop for more specific actions 403 365 yield(t)
Note: See TracChangeset
for help on using the changeset viewer.