/[escript]/trunk/downunder/py_src/regularizations.py
ViewVC logotype

Diff of /trunk/downunder/py_src/regularizations.py

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

revision 4237 by caltinay, Tue Feb 19 01:16:29 2013 UTC revision 4238 by jfenwick, Thu Feb 21 09:58:49 2013 UTC
# Line 22  __url__="https://launchpad.net/escript-f Line 22  __url__="https://launchpad.net/escript-f
22    
23  __all__ = ['Regularization']  __all__ = ['Regularization']
24    
25  from costfunctions import CostFunction  from .costfunctions import CostFunction
26    
27  import numpy as np  import numpy as np
28  from esys.escript import Function, outer, Data, Scalar, grad, inner, integrate, interpolate, kronecker, boundingBoxEdgeLengths, vol, sqrt, length  from esys.escript import Function, outer, Data, Scalar, grad, inner, integrate, interpolate, kronecker, boundingBoxEdgeLengths, vol, sqrt, length
29  from esys.escript.linearPDEs import LinearPDE, IllegalCoefficientValue  from esys.escript.linearPDEs import LinearPDE, IllegalCoefficientValue
30  from esys.escript.pdetools import ArithmeticTuple  from esys.escript.pdetools import ArithmeticTuple
31    
32    import sys
33    if sys.version_info.major>2:
34      xrange=range
35    
36  class Regularization(CostFunction):  class Regularization(CostFunction):
37      """      """
38      The regularization term for the level set function ``m`` within the cost      The regularization term for the level set function ``m`` within the cost

Legend:
Removed from v.4237  
changed lines
  Added in v.4238

  ViewVC Help
Powered by ViewVC 1.1.26