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

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

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

revision 907 by gross, Wed Aug 23 09:31:10 2006 UTC revision 908 by gross, Thu Nov 23 06:39:39 2006 UTC
# Line 59  class Visualization(Model): Line 59  class Visualization(Model):
59         """         """
60         returns a frame counter         returns a frame counter
61         """         """
62         return self.n-1         return self.n
63    
64      def getSafeTimeStepSize(self,dt):      def getSafeTimeStepSize(self,dt):
65         """         """
# Line 120  class WriteVTK(Visualization): Line 120  class WriteVTK(Visualization):
120                self.__filename=n+".%s."+fnc[-1]                self.__filename=n+".%s."+fnc[-1]
121          self.trace("output filename is %s."%self.__filename)          self.trace("output filename is %s."%self.__filename)
122                
123        def doInitialPostprocessing(self):
124            kwargs={}
125            if not self.scalar==None: kwargs["scalar"] = self.scalar
126            if not self.vector==None: kwargs["vector"] = self.vector
127            if not self.tensor==None: kwargs["tensor"] = self.tensor
128            saveVTK(self.__filename%self.getFrameCounter(),**kwargs)
129            self.trace("%s-th frame at time %s is writen to %s"%(self.getFrameCounter(),self.t,self.__filename%self.getFrameCounter()))
130    
131      def doStepPostprocessing(self, dt):      def doStepPostprocessing(self, dt):
132          """          """

Legend:
Removed from v.907  
changed lines
  Added in v.908

  ViewVC Help
Powered by ViewVC 1.1.26