104 |
self.checker(my_dom,file) |
self.checker(my_dom,file) |
105 |
|
|
106 |
def test_hex_contact_2D_order1(self): |
def test_hex_contact_2D_order1(self): |
107 |
|
if getMPISizeWorld() != 1: return |
108 |
file="hex_contact_2D_order1.msh" |
file="hex_contact_2D_order1.msh" |
109 |
ms1=Rectangle(1,1,1,l1=0.5,useElementsOnFace=False) |
ms1=Rectangle(1,1,1,l1=0.5,useElementsOnFace=False) |
110 |
ms2=Rectangle(1,1,1,l1=0.5,useElementsOnFace=False) |
ms2=Rectangle(1,1,1,l1=0.5,useElementsOnFace=False) |
113 |
self.checker(my_dom,file) |
self.checker(my_dom,file) |
114 |
|
|
115 |
def test_hex_contact_2D_order1_onFace(self): |
def test_hex_contact_2D_order1_onFace(self): |
116 |
|
if getMPISizeWorld() != 1: return |
117 |
file="hex_contact_2D_order1_onFace.msh" |
file="hex_contact_2D_order1_onFace.msh" |
118 |
ms1=Rectangle(1,1,1,l1=0.5,useElementsOnFace=True) |
ms1=Rectangle(1,1,1,l1=0.5,useElementsOnFace=True) |
119 |
ms2=Rectangle(1,1,1,l1=0.5,useElementsOnFace=True) |
ms2=Rectangle(1,1,1,l1=0.5,useElementsOnFace=True) |
122 |
self.checker(my_dom,file) |
self.checker(my_dom,file) |
123 |
|
|
124 |
def test_hex_contact_2D_order2(self): |
def test_hex_contact_2D_order2(self): |
125 |
|
if getMPISizeWorld() != 1: return |
126 |
file="hex_contact_2D_order2.msh" |
file="hex_contact_2D_order2.msh" |
127 |
ms1=Rectangle(1,1,2,l1=0.5,useElementsOnFace=False) |
ms1=Rectangle(1,1,2,l1=0.5,useElementsOnFace=False) |
128 |
ms2=Rectangle(1,1,2,l1=0.5,useElementsOnFace=False) |
ms2=Rectangle(1,1,2,l1=0.5,useElementsOnFace=False) |
131 |
self.checker(my_dom,file) |
self.checker(my_dom,file) |
132 |
|
|
133 |
def test_hex_contact_2D_order2_onFace(self): |
def test_hex_contact_2D_order2_onFace(self): |
134 |
|
if getMPISizeWorld() != 1: return |
135 |
file="hex_contact_2D_order2_onFace.msh" |
file="hex_contact_2D_order2_onFace.msh" |
136 |
ms1=Rectangle(1,1,2,l1=0.5,useElementsOnFace=True) |
ms1=Rectangle(1,1,2,l1=0.5,useElementsOnFace=True) |
137 |
ms2=Rectangle(1,1,2,l1=0.5,useElementsOnFace=True) |
ms2=Rectangle(1,1,2,l1=0.5,useElementsOnFace=True) |
140 |
self.checker(my_dom,file) |
self.checker(my_dom,file) |
141 |
|
|
142 |
def test_hex_contact_3D_order1(self): |
def test_hex_contact_3D_order1(self): |
143 |
|
if getMPISizeWorld() != 1: return |
144 |
file="hex_contact_3D_order1.msh" |
file="hex_contact_3D_order1.msh" |
145 |
ms1=Brick(1,1,1,1,l2=0.5,useElementsOnFace=False) |
ms1=Brick(1,1,1,1,l2=0.5,useElementsOnFace=False) |
146 |
ms2=Brick(1,1,1,1,l2=0.5,useElementsOnFace=False) |
ms2=Brick(1,1,1,1,l2=0.5,useElementsOnFace=False) |
149 |
self.checker(my_dom,file) |
self.checker(my_dom,file) |
150 |
|
|
151 |
def test_hex_contact_3D_order1_onFace(self): |
def test_hex_contact_3D_order1_onFace(self): |
152 |
|
if getMPISizeWorld() != 1: return |
153 |
file="hex_contact_3D_order1_onFace.msh" |
file="hex_contact_3D_order1_onFace.msh" |
154 |
ms1=Brick(1,1,1,1,l2=0.5,useElementsOnFace=True) |
ms1=Brick(1,1,1,1,l2=0.5,useElementsOnFace=True) |
155 |
ms2=Brick(1,1,1,1,l2=0.5,useElementsOnFace=True) |
ms2=Brick(1,1,1,1,l2=0.5,useElementsOnFace=True) |
158 |
self.checker(my_dom,file) |
self.checker(my_dom,file) |
159 |
|
|
160 |
def test_hex_contact_3D_order2(self): |
def test_hex_contact_3D_order2(self): |
161 |
|
if getMPISizeWorld() != 1: return |
162 |
file="hex_contact_3D_order2.msh" |
file="hex_contact_3D_order2.msh" |
163 |
ms1=Brick(1,1,1,2,l2=0.5,useElementsOnFace=False) |
ms1=Brick(1,1,1,2,l2=0.5,useElementsOnFace=False) |
164 |
ms2=Brick(1,1,1,2,l2=0.5,useElementsOnFace=False) |
ms2=Brick(1,1,1,2,l2=0.5,useElementsOnFace=False) |
167 |
self.checker(my_dom,file) |
self.checker(my_dom,file) |
168 |
|
|
169 |
def test_hex_contact_3D_order2_onFace(self): |
def test_hex_contact_3D_order2_onFace(self): |
170 |
|
if getMPISizeWorld() != 1: return |
171 |
file="hex_contact_3D_order2_onFace.msh" |
file="hex_contact_3D_order2_onFace.msh" |
172 |
ms1=Brick(1,1,1,2,l2=0.5,useElementsOnFace=True) |
ms1=Brick(1,1,1,2,l2=0.5,useElementsOnFace=True) |
173 |
ms2=Brick(1,1,1,2,l2=0.5,useElementsOnFace=True) |
ms2=Brick(1,1,1,2,l2=0.5,useElementsOnFace=True) |
228 |
|
|
229 |
class Test_Reader(unittest.TestCase): |
class Test_Reader(unittest.TestCase): |
230 |
def test_ReadWriteTagNames(self): |
def test_ReadWriteTagNames(self): |
231 |
|
if getMPISizeWorld() != 1: return |
232 |
file="hex_2D_order2.msh" |
file="hex_2D_order2.msh" |
233 |
test = FINLEY_WORKDIR+os.sep+"test.fly" |
test = FINLEY_WORKDIR+os.sep+"test.fly" |
234 |
dom = ReadMesh(FINLEY_TEST_MESH_PATH+os.sep+file,3,optimize=False) |
dom = ReadMesh(FINLEY_TEST_MESH_PATH+os.sep+file,3,optimize=False) |