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

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

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

revision 104 by jgs, Fri Dec 17 07:43:12 2004 UTC revision 108 by jgs, Thu Jan 27 06:21:59 2005 UTC
# Line 5  import os Line 5  import os
5  import unittest  import unittest
6    
7  from esys.escript import *  from esys.escript import *
8  import esys.finley  import esys.finley as finley
9    
10  import math  import math
11  TMPFILE="tmp.msh"  TMPFILE="tmp.msh"
# Line 344  def mkMesh(dim,order,onElem): Line 344  def mkMesh(dim,order,onElem):
344  failed=[]  failed=[]
345    
346  case="Contact: 2D, order 1"  case="Contact: 2D, order 1"
347  my_dom=mkMesh(2,1,FALSE)  my_dom=mkMesh(2,1,False)
348  if checker(my_dom,Contact_2D_order1):  if checker(my_dom,Contact_2D_order1):
349    print case," passed."    print case," passed."
350  else:  else:
# Line 358  else: Line 358  else:
358    failed.append(case)    failed.append(case)
359    
360  case="Contact: 2D, order 2"  case="Contact: 2D, order 2"
361  my_dom=mkMesh(2,2,FALSE)  my_dom=mkMesh(2,2,False)
362  if checker(my_dom,Contact_2D_order2):  if checker(my_dom,Contact_2D_order2):
363    print case," passed."    print case," passed."
364  else:  else:
# Line 372  else: Line 372  else:
372    failed.append(case)    failed.append(case)
373    
374  case="Contact: 3D, order 1"  case="Contact: 3D, order 1"
375  my_dom=mkMesh(3,1,FALSE)  my_dom=mkMesh(3,1,False)
376  if checker(my_dom,Contact_3D_order1):  if checker(my_dom,Contact_3D_order1):
377    print case," passed."    print case," passed."
378  else:  else:
# Line 386  else: Line 386  else:
386    failed.append(case)    failed.append(case)
387    
388  case="Contact: 3D, order 2"  case="Contact: 3D, order 2"
389  my_dom=mkMesh(3,2,FALSE)  my_dom=mkMesh(3,2,False)
390  if checker(my_dom,Contact_3D_order2):  if checker(my_dom,Contact_3D_order2):
391    print case," passed."    print case," passed."
392  else:  else:

Legend:
Removed from v.104  
changed lines
  Added in v.108

  ViewVC Help
Powered by ViewVC 1.1.26