/[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 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC revision 1357 by gross, Thu Nov 29 08:39:32 2007 UTC
# Line 5032  class Integrate_Symbol(DependendSymbol): Line 5032  class Integrate_Symbol(DependendSymbol):
5032    
5033  def interpolate(arg,where):  def interpolate(arg,where):
5034      """      """
5035      interpolates the function into the FunctionSpace where.      interpolates the function into the FunctionSpace where. If the argument C{arg} has the requested function space
5036        C{where} no interpolation is performed and C{arg} is returned.
5037    
5038      @param arg: interpolant      @param arg: interpolant
5039      @type arg: L{escript.Data} or L{Symbol}      @type arg: L{escript.Data} or L{Symbol}
# Line 5044  def interpolate(arg,where): Line 5045  def interpolate(arg,where):
5045      if isinstance(arg,Symbol):      if isinstance(arg,Symbol):
5046         return Interpolate_Symbol(arg,where)         return Interpolate_Symbol(arg,where)
5047      else:      else:
5048         return escript.Data(arg,where)         if where == arg.getFunctionSpace():
5049              return arg
5050           else:
5051              return escript.Data(arg,where)
5052    
5053  class Interpolate_Symbol(DependendSymbol):  class Interpolate_Symbol(DependendSymbol):
5054     """     """

Legend:
Removed from v.1312  
changed lines
  Added in v.1357

  ViewVC Help
Powered by ViewVC 1.1.26