/[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 2954 by gross, Fri Feb 26 06:09:47 2010 UTC revision 3574 by jfenwick, Fri Sep 2 07:19:31 2011 UTC
# Line 430  class Locator: Line 430  class Locator:
430                  return out                  return out
431          else:          else:
432             return data             return data
433              
434         def setValue(self, data, v):
435           """
436           Sets the value of the ``data`` at the Locator.
437           """
438           data.expand()    # Need to ensure that this is done globally
439           if isinstance(data, escript.Data):
440         id=self.getId()
441         if isinstance(id, list):
442           for i in id:
443              data._setTupleForGlobalDataPoint(i[1], i[0], v)
444         else:
445           data._setTupleForGlobalDataPoint(id[1], id[0], v)
446           else:
447         raise TypeError, "setValue: Invalid argument type."
448    
449    
450  def getInfLocator(arg):  def getInfLocator(arg):

Legend:
Removed from v.2954  
changed lines
  Added in v.3574

  ViewVC Help
Powered by ViewVC 1.1.26