/[escript]/trunk/modellib/py_src/tsunami.py
ViewVC logotype

Diff of /trunk/modellib/py_src/tsunami.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2066 by caltinay, Fri Nov 7 04:11:33 2008 UTC revision 2067 by caltinay, Thu Nov 20 06:22:56 2008 UTC
# Line 802  class OceanRegion(Model): Line 802  class OceanRegion(Model):
802          Initializes the ocean region          Initializes the ocean region
803          """          """
804    
805            # create output directory if necessary
806            if not os.path.isdir(WORKDIR): os.mkdir(WORKDIR)
807    
808          print "Initializing ocean region..."          print "Initializing ocean region..."
809          if hasattr(self.source,"readline"):          if hasattr(self.source,"readline"):
810              f=self.source              f=self.source
# Line 986  class SurfMovie(Model): Line 989  class SurfMovie(Model):
989          self.__next_t=self.dt          self.__next_t=self.dt
990          self.__fileIndex=0          self.__fileIndex=0
991    
         # create output directory if necessary  
         if not os.path.isdir(WORKDIR): os.mkdir(WORKDIR)  
   
992          self.firstFrame = True          self.firstFrame = True
993          self.imageFiles = []          self.imageFiles = []
994    
# Line 1359  def main(): Line 1359  def main():
1359      ts.bathymetry = Link(oreg, "bathymetry")      ts.bathymetry = Link(oreg, "bathymetry")
1360    
1361      sq = Sequencer()      sq = Sequencer()
1362      sq.t_end = 20000.      sq.t_end = 30000.
1363    
1364      sm = SurfMovie()      sm = SurfMovie()
1365      sm.bathymetry = Link(b, "bathymetry")      sm.bathymetry = Link(b, "bathymetry")

Legend:
Removed from v.2066  
changed lines
  Added in v.2067

  ViewVC Help
Powered by ViewVC 1.1.26