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

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

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

revision 1561 by ksteube, Wed May 21 06:58:52 2008 UTC revision 1625 by gross, Thu Jul 10 23:55:31 2008 UTC
# Line 5046  def interpolate(arg,where): Line 5046  def interpolate(arg,where):
5046      """      """
5047      if isinstance(arg,Symbol):      if isinstance(arg,Symbol):
5048         return Interpolate_Symbol(arg,where)         return Interpolate_Symbol(arg,where)
5049      else:      elif isinstance(arg,escript.Data):
5050         if where == arg.getFunctionSpace():         if where == arg.getFunctionSpace():
5051            return arg            return arg
5052         else:         else:
5053            return escript.Data(arg,where)            return escript.Data(arg,where)
5054        else:
5055           return escript.Data(arg,where)
5056    
5057  class Interpolate_Symbol(DependendSymbol):  class Interpolate_Symbol(DependendSymbol):
5058     """     """

Legend:
Removed from v.1561  
changed lines
  Added in v.1625

  ViewVC Help
Powered by ViewVC 1.1.26