/[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 907 by gross, Wed Nov 1 09:05:51 2006 UTC revision 908 by gross, Thu Nov 23 06:39:39 2006 UTC
# Line 188  class ScalarConstrainer(Model): Line 188  class ScalarConstrainer(Model):
188            @return: the mask marking the locations of the constraints            @return: the mask marking the locations of the constraints
189            @rtype: L{escript.Scalar}            @rtype: L{escript.Scalar}
190            """            """
191            if not self.__location_of_constraint: self.__setOutput()            if self.__location_of_constraint == None: self.__setOutput()
192            return self.__location_of_constraint            return self.__location_of_constraint
193                    
194        def value_of_constraint(self):        def value_of_constraint(self):
# Line 199  class ScalarConstrainer(Model): Line 199  class ScalarConstrainer(Model):
199                    L{value} is not given C{None} is rerturned.                    L{value} is not given C{None} is rerturned.
200            @rtype: L{escript.Scalar}            @rtype: L{escript.Scalar}
201            """            """
202            if not self.__location_of_constraint: self.__setOutput()            if self.__location_of_constraint == None: self.__setOutput()
203            return self.__value_of_constraint            return self.__value_of_constraint
204                    
205        def __setOutput(self):        def __setOutput(self):
# Line 264  class VectorConstrainer(Model): Line 264  class VectorConstrainer(Model):
264            @return: the mask marking the locations of the constraints            @return: the mask marking the locations of the constraints
265            @rtype: L{escript.Vector}            @rtype: L{escript.Vector}
266            """            """
267            if not self.__location_of_constraint: self.__setOutput()            if self.__location_of_constraint == None: self.__setOutput()
268            return self.__location_of_constraint            return self.__location_of_constraint
269                    
270        def value_of_constraint(self):        def value_of_constraint(self):
# Line 275  class VectorConstrainer(Model): Line 275  class VectorConstrainer(Model):
275                    L{value} is not given C{None} is rerturned.                    L{value} is not given C{None} is rerturned.
276            @rtype: L{escript.Vector}            @rtype: L{escript.Vector}
277            """            """
278            if not self.__location_of_constraint: self.__setOutput()            if self.__location_of_constraint == None: self.__setOutput()
279            return self.__value_of_constraint            return self.__value_of_constraint
280                    
281        def __setOutput(self):        def __setOutput(self):

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

  ViewVC Help
Powered by ViewVC 1.1.26