/[escript]/trunk/escript/py_src/pdetools.py
ViewVC logotype

Diff of /trunk/escript/py_src/pdetools.py

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

revision 3995 by jfenwick, Wed Sep 26 12:43:17 2012 UTC revision 4018 by jfenwick, Thu Oct 11 04:43:39 2012 UTC
# Line 440  class Locator: Line 440  class Locator:
440        """        """
441        if isinstance(data, escore.Data):        if isinstance(data, escore.Data):
442           if data.getFunctionSpace()!=self.getFunctionSpace():           if data.getFunctionSpace()!=self.getFunctionSpace():
443             raise TypeError, "setValue: FunctionSpace of Locator and Data object must match."             raise TypeError("setValue: FunctionSpace of Locator and Data object must match.")
444           data.expand()             data.expand()  
445           id=self.getId()           id=self.getId()
446           if isinstance(id, list):           if isinstance(id, list):
# Line 449  class Locator: Line 449  class Locator:
449           else:           else:
450             data._setTupleForGlobalDataPoint(id[1], id[0], v)             data._setTupleForGlobalDataPoint(id[1], id[0], v)
451        else:        else:
452             raise TypeError, "setValue: Invalid argument type."             raise TypeError("setValue: Invalid argument type.")
453    
454    
455  def getInfLocator(arg):  def getInfLocator(arg):

Legend:
Removed from v.3995  
changed lines
  Added in v.4018

  ViewVC Help
Powered by ViewVC 1.1.26