/[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 97 by jgs, Tue Dec 14 05:39:33 2004 UTC revision 100 by jgs, Wed Dec 15 03:48:48 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 *
 from linearPDEs import LinearPDE  
4  import finley  import finley
5  import math  import math
6  numElements=4  numElements=4
# Line 46  def mkCharateristicFunction(msh): Line 45  def mkCharateristicFunction(msh):
45        e=Function(msh)        e=Function(msh)
46        d=msh.getDim()        d=msh.getDim()
47        x=e.getX()[d-1]        x=e.getX()[d-1]
48        mypde=LinearPDE(D=1,Y=(x-0.5).whatPositive())        mypde=linearPDE(D=1,Y=(x-0.5).whatPositive())
49        return 2*mypde.getSolution(**options)-1        return 2*mypde.getSolution(**options)-1
50    
51  max_error_text=""  max_error_text=""

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

  ViewVC Help
Powered by ViewVC 1.1.26