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

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

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

revision 323 by gross, Tue Dec 6 06:18:00 2005 UTC revision 398 by gross, Wed Dec 21 07:52:54 2005 UTC
# Line 5  from esys.escript import * Line 5  from esys.escript import *
5  from esys.escript.modelframe import Model,ParameterSet  from esys.escript.modelframe import Model,ParameterSet
6  from esys import finley  from esys import finley
7    
8  class RectangularDomain(Model):  class FinleyReader(ParameterSet):
9           """
10           Generates a mesh over a rectangular domain finley.
11    
12           @ivar filename:
13           @ivar intergrationOrder
14           @ivar domain:
15           """
16           def __init__(self,debug=False):
17               Model.__init__(self,debug=debug)
18               self.declareParameter(source="none",\
19                                     integrationOrder=-1)
20               self._domain=None
21    
22           def domain(self):
23              if self._domain==None:
24                  self._domain=finley.ReadMesh(self.source,integrationOrder)
25                  self.trace("mesh read from %s"%self.source)          
26              return self.domain
27                          
28    class RectangularDomain(ParameterSet):
29         """         """
30         Generates a mesh over a rectangular domain finley.         Generates a mesh over a rectangular domain finley.
31    
# Line 15  class RectangularDomain(Model): Line 35  class RectangularDomain(Model):
35         @ivar order:         @ivar order:
36         @ivar periodic:         @ivar periodic:
37         @ivar intergration order:         @ivar intergration order:
38         @ivar domain (callable):         @ivar domain:
39         """         """
40         def __init__(self,debug=False):         def __init__(self,debug=False):
41             Model.__init__(self,debug=debug)             Model.__init__(self,debug=debug)

Legend:
Removed from v.323  
changed lines
  Added in v.398

  ViewVC Help
Powered by ViewVC 1.1.26