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

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

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

temp_trunk_copy/pyvisi/py_src/outline.py revision 1384 by phornby, Fri Jan 11 02:29:38 2008 UTC trunk/pyvisi/py_src/outline.py revision 2365 by gross, Mon Apr 6 01:25:25 2009 UTC
# Line 1  Line 1 
1    
2    ########################################################
3    #
4    # Copyright (c) 2003-2008 by University of Queensland
5    # Earth Systems Science Computational Center (ESSCC)
6    # http://www.uq.edu.au/esscc
7    #
8    # Primary Business: Queensland, Australia
9    # Licensed under the Open Software License version 3.0
10    # http://www.opensource.org/licenses/osl-3.0.php
11    #
12    ########################################################
13    
14    __copyright__="""Copyright (c) 2003-2008 by University of Queensland
15    Earth Systems Science Computational Center (ESSCC)
16    http://www.uq.edu.au/esscc
17    Primary Business: Queensland, Australia"""
18    __license__="""Licensed under the Open Software License version 3.0
19    http://www.opensource.org/licenses/osl-3.0.php"""
20    __url__="https://launchpad.net/escript-finley"
21    
22  """  """
23  @var __author__: name of author  @var __author__: name of author
24  @var __copyright__: copyrights  @var __copyright__: copyrights
# Line 8  Line 29 
29  """  """
30    
31  __author__="John Ngui, john.ngui@uq.edu.au"  __author__="John Ngui, john.ngui@uq.edu.au"
 __copyright__="""  Copyright (c) 2006 by ACcESS MNRF  
                     http://www.access.edu.au  
                 Primary Business: Queensland, Australia"""  
 __license__="""Licensed under the Open Software License version 3.0  
              http://www.opensource.org/licenses/osl-3.0.php"""  
 __url__="http://www.iservo.edu.au/esys"  
 __version__="$Revision$"  
 __date__="$Date$"  
32    
33    
34  import vtk  from esys.escript import getMPISizeWorld
35    if getMPISizeWorld()==1: import vtk
36    
37  class Outline:  class Outline:
38      """      """
# Line 32  class Outline: Line 46  class Outline:
46          @type object: vtkUnstructuredGrid, etc          @type object: vtkUnstructuredGrid, etc
47          @param object: Data source to the outline          @param object: Data source to the outline
48          """          """
49                            if getMPISizeWorld()>1:
50                         raise ValueError,"pyvisi.Outline is not running on more than one processor."
51          self.__object = object          self.__object = object
52          self.__vtk_outline = vtk.vtkOutlineFilter()          self.__vtk_outline = vtk.vtkOutlineFilter()
53          self.__setInput()          self.__setInput()

Legend:
Removed from v.1384  
changed lines
  Added in v.2365

  ViewVC Help
Powered by ViewVC 1.1.26