/[escript]/trunk-mpi-branch/escript/py_src/util.py
ViewVC logotype

Diff of /trunk-mpi-branch/escript/py_src/util.py

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

revision 1274 by gross, Fri Aug 24 03:09:22 2007 UTC revision 1295 by ksteube, Mon Sep 10 06:07:09 2007 UTC
# Line 27  import numarray Line 27  import numarray
27  import escript  import escript
28  import os  import os
29  from esys.escript import C_GeneralTensorProduct  from esys.escript import C_GeneralTensorProduct
30    from esys.escript import getVersion
31    
32  #=========================================================  #=========================================================
33  #   some helpers:  #   some helpers:
# Line 70  def insertTaggedValues(target,**kwargs): Line 71  def insertTaggedValues(target,**kwargs):
71          target.setTaggedValue(k,kwargs[k])          target.setTaggedValue(k,kwargs[k])
72      return target      return target
73    
       
74  def saveVTK(filename,domain=None,**data):  def saveVTK(filename,domain=None,**data):
75      """      """
76      writes a L{Data} objects into a files using the the VTK XML file format.      writes a L{Data} objects into a files using the the VTK XML file format.
# Line 4926  def integrate(arg,where=None): Line 4926  def integrate(arg,where=None):
4926         else:         else:
4927            return arg._integrate()            return arg._integrate()
4928      else:      else:
4929        raise TypeError,"integrate: Unknown argument type."         arg2=escript.Data(arg,where)
4930           if arg2.getRank()==0:
4931              return arg2._integrate()[0]
4932           else:
4933              return arg2._integrate()
4934    
4935  class Integrate_Symbol(DependendSymbol):  class Integrate_Symbol(DependendSymbol):
4936     """     """

Legend:
Removed from v.1274  
changed lines
  Added in v.1295

  ViewVC Help
Powered by ViewVC 1.1.26