/[escript]/trunk/esys2/finley/test/python/ContactTest.py
ViewVC logotype

Diff of /trunk/esys2/finley/test/python/ContactTest.py

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

revision 100 by jgs, Wed Dec 15 03:48:48 2004 UTC revision 102 by jgs, Wed Dec 15 07:08:39 2004 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2  """tests a variety of functions in connection with contact elements"""  """tests a variety of functions in connection with contact elements"""
3  from escript import *  from escript import *
4    from linearPDEs import LinearPDE
5  import finley  import finley
6  import math  import math
7  numElements=4  numElements=4
# Line 45  def mkCharateristicFunction(msh): Line 46  def mkCharateristicFunction(msh):
46        e=Function(msh)        e=Function(msh)
47        d=msh.getDim()        d=msh.getDim()
48        x=e.getX()[d-1]        x=e.getX()[d-1]
49        mypde=linearPDE(D=1,Y=(x-0.5).whatPositive())        mypde=LinearPDE(D=1,Y=(x-0.5).whatPositive())
50        return 2*mypde.getSolution(**options)-1        return 2*mypde.getSolution(**options)-1
51    
52  max_error_text=""  max_error_text=""

Legend:
Removed from v.100  
changed lines
  Added in v.102

  ViewVC Help
Powered by ViewVC 1.1.26