/[escript]/trunk/pyvisi/py_src/datacollector.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/datacollector.py

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

revision 1148 by jongui, Wed May 16 22:45:33 2007 UTC revision 1189 by jongui, Thu Jun 7 05:31:25 2007 UTC
# Line 13  except ImportError: Line 13  except ImportError:
13  class DataCollector:  class DataCollector:
14      """      """
15      Class that defines a data collector. A data collector is used to read      Class that defines a data collector. A data collector is used to read
16      data from an XML file or from an escript object directly. Writing XML      data from a XML file or from an escript object directly. Writing XML
17      files are expensive, but this approach has the advantage given that the      files are expensive, but this approach has the advantage given that the
18      results can be analyzed easily after the simulation has completed.        results can be analyzed easily after the simulation has completed.  
19    
# Line 129  class DataCollector: Line 129  class DataCollector:
129          """          """
130    
131          # Check whether the specified scalar is available in either point          # Check whether the specified scalar is available in either point
132          # or cell data. If not available, program exits.          # or cell data. If not available, error is raised.
133    
134          # NOTE: This check is similar to the check used in _getScalarRange          # NOTE: This check is similar to the check used in _getScalarRange
135          # but this is used only when a scalar attribute has been specified.          # but this is used only when a scalar attribute has been specified.
# Line 162  class DataCollector: Line 162  class DataCollector:
162          """          """
163    
164          # Check whether the specified vector is available in either point          # Check whether the specified vector is available in either point
165          # or cell data. If not available, program exits.          # or cell data. If not available, error is raised.
166    
167          # NOTE: This check is similar to the check used in _getVectorRange          # NOTE: This check is similar to the check used in _getVectorRange
168          # but this is used only when a vector attribute has been specified.          # but this is used only when a vector attribute has been specified.
# Line 195  class DataCollector: Line 195  class DataCollector:
195          """          """
196    
197          # Check whether the specified tensor is available in either point          # Check whether the specified tensor is available in either point
198          # or cell data. If not available, program exits.          # or cell data. If not available, error is raised.
199    
200          # NOTE: This check is similar to the check used in _getTensorRange          # NOTE: This check is similar to the check used in _getTensorRange
201          # but this is used only when a tensor attribute has been specified.          # but this is used only when a tensor attribute has been specified.
# Line 361  class DataCollector: Line 361  class DataCollector:
361          """          """
362    
363          if(self.__modified == True):          if(self.__modified == True):
364              self.__modified = False              #self.__modified = False
365              return True              return True
366          else:          else:
367              return False              return False

Legend:
Removed from v.1148  
changed lines
  Added in v.1189

  ViewVC Help
Powered by ViewVC 1.1.26