/[escript]/trunk-mpi-branch/finley/test/python/run_generators.py
ViewVC logotype

Diff of /trunk-mpi-branch/finley/test/python/run_generators.py

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

revision 1248 by ksteube, Tue May 15 03:23:17 2007 UTC revision 1249 by ksteube, Thu Aug 16 00:47:44 2007 UTC
# Line 15  import sys Line 15  import sys
15  import os  import os
16  import unittest  import unittest
17  from esys.escript import *  from esys.escript import *
18  from esys.finley import Interval,Rectangle,Brick,JoinFaces, ReadGmsh, ReadMesh  from esys.finley import Rectangle,Brick,JoinFaces, ReadGmsh, ReadMesh
19    
20  try:  try:
21       FINLEY_TEST_DATA=os.environ['FINLEY_TEST_DATA']       FINLEY_TEST_DATA=os.environ['FINLEY_TEST_DATA']
# Line 47  class Test_Generators(unittest.TestCase) Line 47  class Test_Generators(unittest.TestCase)
47        for l in range(1,len(ref_string)):        for l in range(1,len(ref_string)):
48           self.failUnlessEqual(dom_string[l].strip(),ref_string[l].strip(),"line %d (%s) in mesh files does not match reference (%s)"%(l,ref_string[l].strip(),dom_string[l].strip()))           self.failUnlessEqual(dom_string[l].strip(),ref_string[l].strip(),"line %d (%s) in mesh files does not match reference (%s)"%(l,ref_string[l].strip(),dom_string[l].strip()))
49    
    def test_hex_1D_order1(self):  
       file="hex_1D_order1.msh"  
       my_dom=Interval(1,1)  
       self.checker(my_dom,file)  
   
    def test_hex_1D_order1_onFace(self):  
       file="hex_1D_order1_onFace.msh"  
       my_dom=Interval(1,1,useElementsOnFace=1)  
       self.checker(my_dom,file)  
   
    def test_hex_1D_order2(self):  
       file="hex_1D_order2.msh"  
       my_dom=Interval(1,2)  
       self.checker(my_dom,file)  
   
    def test_hex_1D_order2_onFace(self):  
       file="hex_1D_order2_onFace.msh"  
       my_dom=Interval(1,2,useElementsOnFace=1)  
       self.checker(my_dom,file)  
   
50     def test_hex_2D_order1(self):     def test_hex_2D_order1(self):
51        file="hex_2D_order1.msh"        file="hex_2D_order1.msh"
52        my_dom=Rectangle(1,1,1)        my_dom=Rectangle(1,1,1)

Legend:
Removed from v.1248  
changed lines
  Added in v.1249

  ViewVC Help
Powered by ViewVC 1.1.26