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

Diff of /trunk/finley/test/python/run_visualization_interface.py

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

revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC revision 1379 by gross, Wed Jan 9 04:17:03 2008 UTC
# Line 50  class Test_VisualizationInterface(unitte Line 50  class Test_VisualizationInterface(unitte
50             line=out_string[c].strip()             line=out_string[c].strip()
51         if os.name == "nt":         if os.name == "nt":
52             line=line.replace("e+00","e+0").replace("e-00","e-0")             line=line.replace("e+00","e+0").replace("e-00","e-0")
53         line=line.replace("e-00","e+00").replace("-0.000000e+00","0.000000e+00")         # line=line.replace("e-00","e+00").replace("-0.000000e+00","0.000000e+00")
54           line=line.replace(".000000e-00",".000000e+00").replace("-0.000000e+00","0.000000e+00")
55             self.failUnlessEqual(line,ref_string[l].strip(),"line %d (%s) in vtk files does not match reference (%s)"%(c,line,ref_string[l].strip()))             self.failUnlessEqual(line,ref_string[l].strip(),"line %d (%s) in vtk files does not match reference (%s)"%(c,line,ref_string[l].strip()))
56             c+=1             c+=1
57    
# Line 1359  class Test_VTKFiles(Test_VisualizationIn Line 1360  class Test_VTKFiles(Test_VisualizationIn
1360       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(FINLEY_WORKDIR_PATH+"hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1361       self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)       self.check_vtk("hex_contact_3D_order2_onFace_ReducedFunctionOnContactOne_Tensor.xml",reference)
1362    
   
   # ======================================================================================================================  
   # ======================================================================================================================  
   # ======================================================================================================================  
1363    def test_tet_2D_order2_vtk(self):    def test_tet_2D_order2_vtk(self):
1364       reference="tet_2D_o2.xml"       reference="tet_2D_o2.xml"
1365       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1366       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2.xml"),domain=dom)       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2.xml"),domain=dom)
1367       self.check_vtk("tet_2D_order2.xml",reference)       self.check_vtk("tet_2D_order2.xml",reference)
1368    
1369    def test_tet_2D_order2_AllPoints_Scalar_vtk(self):    def test_tet_2D_order2_AllPoints_Scalar_vtk(self):
1370       reference="tet_2D_o1_node_3xs.xml"       reference="tet_2D_o1_node_3xs.xml"
1371       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1372       x=Solution(dom).getX()       x=Solution(dom).getX()
1373       x_r=ReducedSolution(dom).getX()       x_r=ReducedSolution(dom).getX()
1374       x_n=ContinuousFunction(dom).getX()       x_n=ContinuousFunction(dom).getX()
# Line 1379  class Test_VTKFiles(Test_VisualizationIn Line 1376  class Test_VTKFiles(Test_VisualizationIn
1376       self.check_vtk("tet_2D_order2_AllPoints_Scalar.xml",reference)       self.check_vtk("tet_2D_order2_AllPoints_Scalar.xml",reference)
1377    def test_tet_2D_order2_02Points_Scalar_vtk(self):    def test_tet_2D_order2_02Points_Scalar_vtk(self):
1378       reference="tet_2D_o2_node_2xs.xml"       reference="tet_2D_o2_node_2xs.xml"
1379       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1380       x=Solution(dom).getX()       x=Solution(dom).getX()
1381       x_n=ContinuousFunction(dom).getX()       x_n=ContinuousFunction(dom).getX()
1382       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_O2Points_Scalar.xml"),data_n=x_n[0],data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_O2Points_Scalar.xml"),data_n=x_n[0],data=x[0])
1383       self.check_vtk("tet_2D_order2_O2Points_Scalar.xml",reference)       self.check_vtk("tet_2D_order2_O2Points_Scalar.xml",reference)
1384    def test_tet_2D_order2_2Cells_Scalar_vtk(self):    def test_tet_2D_order2_2Cells_Scalar_vtk(self):
1385       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1386       x=Function(dom).getX()       x=Function(dom).getX()
1387       x_b=FunctionOnBoundary(dom).getX()       x_b=FunctionOnBoundary(dom).getX()
1388       try:       try:
# Line 1394  class Test_VTKFiles(Test_VisualizationIn Line 1391  class Test_VTKFiles(Test_VisualizationIn
1391       except StandardError:       except StandardError:
1392          pass          pass
1393    def test_tet_2D_order2_BoundaryPoint_Scalar_vtk(self):    def test_tet_2D_order2_BoundaryPoint_Scalar_vtk(self):
1394       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1395       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1396       x_b=FunctionOnBoundary(dom).getX()       x_b=FunctionOnBoundary(dom).getX()
1397       try:       try:
# Line 1404  class Test_VTKFiles(Test_VisualizationIn Line 1401  class Test_VTKFiles(Test_VisualizationIn
1401          pass          pass
1402    def test_tet_2D_order2_Cells_AllData_vtk(self):    def test_tet_2D_order2_Cells_AllData_vtk(self):
1403       reference="tet_2D_o2_cell_all.xml"       reference="tet_2D_o2_cell_all.xml"
1404       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1405       x=Function(dom).getX()       x=Function(dom).getX()
1406       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Cells_AllData.xml"),data_s=x[0],data_v=x[0]*[1.,2.],data_t=x[0]*[[11.,12.],[21.,22.]],data_t2=x[0]*[[-11.,-12.],[-21.,-22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Cells_AllData.xml"),data_s=x[0],data_v=x[0]*[1.,2.],data_t=x[0]*[[11.,12.],[21.,22.]],data_t2=x[0]*[[-11.,-12.],[-21.,-22.]])
1407       self.check_vtk("tet_2D_order2_Cells_AllData.xml",reference)       self.check_vtk("tet_2D_order2_Cells_AllData.xml",reference)
1408    
1409    def test_tet_2D_order2_CellsPoints_AllData_vtk(self):    def test_tet_2D_order2_CellsPoints_AllData_vtk(self):
1410       reference="tet_2D_o2_cellnode_all.xml"       reference="tet_2D_o2_cellnode_all.xml"
1411       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1412       x_c=Function(dom).getX()       x_c=Function(dom).getX()
1413       x_p=ContinuousFunction(dom).getX()       x_p=ContinuousFunction(dom).getX()
1414       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_CellsPoints_AllData.xml"),data_sp=x_p[0],       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_CellsPoints_AllData.xml"),data_sp=x_p[0],
# Line 1424  class Test_VTKFiles(Test_VisualizationIn Line 1421  class Test_VTKFiles(Test_VisualizationIn
1421    # ======================================================================================================================    # ======================================================================================================================
1422    def test_tet_2D_order1_ContinuousFunction_Scalar_vtk(self):    def test_tet_2D_order1_ContinuousFunction_Scalar_vtk(self):
1423       reference="tet_2D_o1_node_s.xml"       reference="tet_2D_o1_node_s.xml"
1424       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1425       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1426       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ContinuousFunction_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ContinuousFunction_Scalar.xml"),data=x[0])
1427       self.check_vtk("tet_2D_order1_ContinuousFunction_Scalar.xml",reference)       self.check_vtk("tet_2D_order1_ContinuousFunction_Scalar.xml",reference)
1428    def test_tet_2D_order1_ContinuousFunction_Vector_vtk(self):    def test_tet_2D_order1_ContinuousFunction_Vector_vtk(self):
1429       reference="tet_2D_o1_node_v.xml"       reference="tet_2D_o1_node_v.xml"
1430       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1431       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1432       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.])
1433       self.check_vtk("tet_2D_order1_ContinuousFunction_Vector.xml",reference)       self.check_vtk("tet_2D_order1_ContinuousFunction_Vector.xml",reference)
1434    def test_tet_2D_order1_ContinuousFunction_Tensor_vtk(self):    def test_tet_2D_order1_ContinuousFunction_Tensor_vtk(self):
1435       reference="tet_2D_o1_node_t.xml"       reference="tet_2D_o1_node_t.xml"
1436       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1437       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1438       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1439       self.check_vtk("tet_2D_order1_ContinuousFunction_Tensor.xml",reference)       self.check_vtk("tet_2D_order1_ContinuousFunction_Tensor.xml",reference)
1440    def test_tet_2D_order1_Solution_Scalar_vtk(self):    def test_tet_2D_order1_Solution_Scalar_vtk(self):
1441       reference="tet_2D_o1_node_s.xml"       reference="tet_2D_o1_node_s.xml"
1442       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1443       x=Solution(dom).getX()       x=Solution(dom).getX()
1444       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Solution_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Solution_Scalar.xml"),data=x[0])
1445       self.check_vtk("tet_2D_order1_Solution_Scalar.xml",reference)       self.check_vtk("tet_2D_order1_Solution_Scalar.xml",reference)
1446    def test_tet_2D_order1_Solution_Vector_vtk(self):    def test_tet_2D_order1_Solution_Vector_vtk(self):
1447       reference="tet_2D_o1_node_v.xml"       reference="tet_2D_o1_node_v.xml"
1448       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1449       x=Solution(dom).getX()       x=Solution(dom).getX()
1450       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Solution_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Solution_Vector.xml"),data=x[0]*[1.,2.])
1451       self.check_vtk("tet_2D_order1_Solution_Vector.xml",reference)       self.check_vtk("tet_2D_order1_Solution_Vector.xml",reference)
1452    def test_tet_2D_order1_Solution_Tensor_vtk(self):    def test_tet_2D_order1_Solution_Tensor_vtk(self):
1453       reference="tet_2D_o1_node_t.xml"       reference="tet_2D_o1_node_t.xml"
1454       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1455       x=Solution(dom).getX()       x=Solution(dom).getX()
1456       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Solution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Solution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1457       self.check_vtk("tet_2D_order1_Solution_Tensor.xml",reference)       self.check_vtk("tet_2D_order1_Solution_Tensor.xml",reference)
1458    def test_tet_2D_order1_ReducedSolution_Scalar_vtk(self):    def test_tet_2D_order1_ReducedSolution_Scalar_vtk(self):
1459       reference="tet_2D_o1_node_s.xml"       reference="tet_2D_o1_node_s.xml"
1460       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1461       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1462       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedSolution_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedSolution_Scalar.xml"),data=x[0])
1463       self.check_vtk("tet_2D_order1_ReducedSolution_Scalar.xml",reference)       self.check_vtk("tet_2D_order1_ReducedSolution_Scalar.xml",reference)
1464    def test_tet_2D_order1_ReducedSolution_Vector_vtk(self):    def test_tet_2D_order1_ReducedSolution_Vector_vtk(self):
1465       reference="tet_2D_o1_node_v.xml"       reference="tet_2D_o1_node_v.xml"
1466       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1467       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1468       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.])
1469       self.check_vtk("tet_2D_order1_ReducedSolution_Vector.xml",reference)       self.check_vtk("tet_2D_order1_ReducedSolution_Vector.xml",reference)
1470    def test_tet_2D_order1_ReducedSolution_Tensor_vtk(self):    def test_tet_2D_order1_ReducedSolution_Tensor_vtk(self):
1471       reference="tet_2D_o1_node_t.xml"       reference="tet_2D_o1_node_t.xml"
1472       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1473       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1474       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1475       self.check_vtk("tet_2D_order1_ReducedSolution_Tensor.xml",reference)       self.check_vtk("tet_2D_order1_ReducedSolution_Tensor.xml",reference)
1476    def test_tet_2D_order1_Function_Scalar_vtk(self):    def test_tet_2D_order1_Function_Scalar_vtk(self):
1477       reference="tet_2D_o1_cell_s.xml"       reference="tet_2D_o1_cell_s.xml"
1478       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1479       x=Function(dom).getX()       x=Function(dom).getX()
1480       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Function_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Function_Scalar.xml"),data=x[0])
1481       self.check_vtk("tet_2D_order1_Function_Scalar.xml",reference)       self.check_vtk("tet_2D_order1_Function_Scalar.xml",reference)
1482    def test_tet_2D_order1_Function_Vector_vtk(self):    def test_tet_2D_order1_Function_Vector_vtk(self):
1483       reference="tet_2D_o1_cell_v.xml"       reference="tet_2D_o1_cell_v.xml"
1484       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1485       x=Function(dom).getX()       x=Function(dom).getX()
1486       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Function_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Function_Vector.xml"),data=x[0]*[1.,2.])
1487       self.check_vtk("tet_2D_order1_Function_Vector.xml",reference)       self.check_vtk("tet_2D_order1_Function_Vector.xml",reference)
1488    def test_tet_2D_order1_Function_Tensor_vtk(self):    def test_tet_2D_order1_Function_Tensor_vtk(self):
1489       reference="tet_2D_o1_cell_t.xml"       reference="tet_2D_o1_cell_t.xml"
1490       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1491       x=Function(dom).getX()       x=Function(dom).getX()
1492       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Function_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_Function_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1493       self.check_vtk("tet_2D_order1_Function_Tensor.xml",reference)       self.check_vtk("tet_2D_order1_Function_Tensor.xml",reference)
1494    def test_tet_2D_order1_ReducedFunction_Scalar_vtk(self):    def test_tet_2D_order1_ReducedFunction_Scalar_vtk(self):
1495       reference="tet_2D_o1_cell_s.xml"       reference="tet_2D_o1_cell_s.xml"
1496       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1497       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1498       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunction_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunction_Scalar.xml"),data=x[0])
1499       self.check_vtk("tet_2D_order1_ReducedFunction_Scalar.xml",reference)       self.check_vtk("tet_2D_order1_ReducedFunction_Scalar.xml",reference)
1500    def test_tet_2D_order1_ReducedFunction_Vector_vtk(self):    def test_tet_2D_order1_ReducedFunction_Vector_vtk(self):
1501       reference="tet_2D_o1_cell_v.xml"       reference="tet_2D_o1_cell_v.xml"
1502       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1503       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1504       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.])
1505       self.check_vtk("tet_2D_order1_ReducedFunction_Vector.xml",reference)       self.check_vtk("tet_2D_order1_ReducedFunction_Vector.xml",reference)
1506    def test_tet_2D_order1_ReducedFunction_Tensor_vtk(self):    def test_tet_2D_order1_ReducedFunction_Tensor_vtk(self):
1507       reference="tet_2D_o1_cell_t.xml"       reference="tet_2D_o1_cell_t.xml"
1508       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1509       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1510       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1511       self.check_vtk("tet_2D_order1_ReducedFunction_Tensor.xml",reference)       self.check_vtk("tet_2D_order1_ReducedFunction_Tensor.xml",reference)
1512    def test_tet_2D_order1_FunctionOnBoundary_Scalar_vtk(self):    def test_tet_2D_order1_FunctionOnBoundary_Scalar_vtk(self):
1513       reference="tet_2D_o1_boundary_s.xml"       reference="tet_2D_o1_boundary_s.xml"
1514       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1515       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1516       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_FunctionOnBoundary_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_FunctionOnBoundary_Scalar.xml"),data=x[0])
1517       self.check_vtk("tet_2D_order1_FunctionOnBoundary_Scalar.xml",reference)       self.check_vtk("tet_2D_order1_FunctionOnBoundary_Scalar.xml",reference)
1518    def test_tet_2D_order1_FunctionOnBoundary_Vector_vtk(self):    def test_tet_2D_order1_FunctionOnBoundary_Vector_vtk(self):
1519       reference="tet_2D_o1_boundary_v.xml"       reference="tet_2D_o1_boundary_v.xml"
1520       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1521       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1522       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
1523       self.check_vtk("tet_2D_order1_FunctionOnBoundary_Vector.xml",reference)       self.check_vtk("tet_2D_order1_FunctionOnBoundary_Vector.xml",reference)
1524    def test_tet_2D_order1_FunctionOnBoundary_Tensor_vtk(self):    def test_tet_2D_order1_FunctionOnBoundary_Tensor_vtk(self):
1525       reference="tet_2D_o1_boundary_t.xml"       reference="tet_2D_o1_boundary_t.xml"
1526       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1527       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1528       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1529       self.check_vtk("tet_2D_order1_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("tet_2D_order1_FunctionOnBoundary_Tensor.xml",reference)
1530    def test_tet_2D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):    def test_tet_2D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):
1531       reference="tet_2D_o1_boundary_s.xml"       reference="tet_2D_o1_boundary_s.xml"
1532       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1533       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1534       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
1535       self.check_vtk("tet_2D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference)       self.check_vtk("tet_2D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference)
1536    def test_tet_2D_order1_ReducedFunctionOnBoundary_Vector_vtk(self):    def test_tet_2D_order1_ReducedFunctionOnBoundary_Vector_vtk(self):
1537       reference="tet_2D_o1_boundary_v.xml"       reference="tet_2D_o1_boundary_v.xml"
1538       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1539       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1540       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
1541       self.check_vtk("tet_2D_order1_ReducedFunctionOnBoundary_Vector.xml",reference)       self.check_vtk("tet_2D_order1_ReducedFunctionOnBoundary_Vector.xml",reference)
1542    def test_tet_2D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self):    def test_tet_2D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self):
1543       reference="tet_2D_o1_boundary_t.xml"       reference="tet_2D_o1_boundary_t.xml"
1544       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
1545       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1546       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order1_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1547       self.check_vtk("tet_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("tet_2D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)
1548    # ======================================================================================================================    # ======================================================================================================================
1549    def test_tet_2D_order2_ContinuousFunction_Scalar_vtk(self):    def test_tet_2D_order2_ContinuousFunction_Scalar_vtk(self):
1550       reference="tet_2D_o2_node_s.xml"       reference="tet_2D_o2_node_s.xml"
1551       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1552       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1553       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ContinuousFunction_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ContinuousFunction_Scalar.xml"),data=x[0])
1554       self.check_vtk("tet_2D_order2_ContinuousFunction_Scalar.xml",reference)       self.check_vtk("tet_2D_order2_ContinuousFunction_Scalar.xml",reference)
1555    def test_tet_2D_order2_ContinuousFunction_Vector_vtk(self):    def test_tet_2D_order2_ContinuousFunction_Vector_vtk(self):
1556       reference="tet_2D_o2_node_v.xml"       reference="tet_2D_o2_node_v.xml"
1557       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1558       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1559       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.])
1560       self.check_vtk("tet_2D_order2_ContinuousFunction_Vector.xml",reference)       self.check_vtk("tet_2D_order2_ContinuousFunction_Vector.xml",reference)
1561    def test_tet_2D_order2_ContinuousFunction_Tensor_vtk(self):    def test_tet_2D_order2_ContinuousFunction_Tensor_vtk(self):
1562       reference="tet_2D_o2_node_t.xml"       reference="tet_2D_o2_node_t.xml"
1563       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1564       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1565       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1566       self.check_vtk("tet_2D_order2_ContinuousFunction_Tensor.xml",reference)       self.check_vtk("tet_2D_order2_ContinuousFunction_Tensor.xml",reference)
1567    def test_tet_2D_order2_Solution_Scalar_vtk(self):    def test_tet_2D_order2_Solution_Scalar_vtk(self):
1568       reference="tet_2D_o2_node_s.xml"       reference="tet_2D_o2_node_s.xml"
1569       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1570       x=Solution(dom).getX()       x=Solution(dom).getX()
1571       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Solution_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Solution_Scalar.xml"),data=x[0])
1572       self.check_vtk("tet_2D_order2_Solution_Scalar.xml",reference)       self.check_vtk("tet_2D_order2_Solution_Scalar.xml",reference)
1573    def test_tet_2D_order2_Solution_Vector_vtk(self):    def test_tet_2D_order2_Solution_Vector_vtk(self):
1574       reference="tet_2D_o2_node_v.xml"       reference="tet_2D_o2_node_v.xml"
1575       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1576       x=Solution(dom).getX()       x=Solution(dom).getX()
1577       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Solution_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Solution_Vector.xml"),data=x[0]*[1.,2.])
1578       self.check_vtk("tet_2D_order2_Solution_Vector.xml",reference)       self.check_vtk("tet_2D_order2_Solution_Vector.xml",reference)
1579    def test_tet_2D_order2_Solution_Tensor_vtk(self):    def test_tet_2D_order2_Solution_Tensor_vtk(self):
1580       reference="tet_2D_o2_node_t.xml"       reference="tet_2D_o2_node_t.xml"
1581       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1582       x=Solution(dom).getX()       x=Solution(dom).getX()
1583       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Solution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Solution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1584       self.check_vtk("tet_2D_order2_Solution_Tensor.xml",reference)       self.check_vtk("tet_2D_order2_Solution_Tensor.xml",reference)
1585    def test_tet_2D_order2_ReducedSolution_Scalar_vtk(self):    def test_tet_2D_order2_ReducedSolution_Scalar_vtk(self):
1586       reference="tet_2D_o1_node_s.xml"       reference="tet_2D_o1_node_s.xml"
1587       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1588       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1589       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedSolution_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedSolution_Scalar.xml"),data=x[0])
1590       self.check_vtk("tet_2D_order2_ReducedSolution_Scalar.xml",reference)       self.check_vtk("tet_2D_order2_ReducedSolution_Scalar.xml",reference)
1591    def test_tet_2D_order2_ReducedSolution_Vector_vtk(self):    def test_tet_2D_order2_ReducedSolution_Vector_vtk(self):
1592       reference="tet_2D_o1_node_v.xml"       reference="tet_2D_o1_node_v.xml"
1593       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1594       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1595       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.])
1596       self.check_vtk("tet_2D_order2_ReducedSolution_Vector.xml",reference)       self.check_vtk("tet_2D_order2_ReducedSolution_Vector.xml",reference)
1597    def test_tet_2D_order2_ReducedSolution_Tensor_vtk(self):    def test_tet_2D_order2_ReducedSolution_Tensor_vtk(self):
1598       reference="tet_2D_o1_node_t.xml"       reference="tet_2D_o1_node_t.xml"
1599       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1600       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1601       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1602       self.check_vtk("tet_2D_order2_ReducedSolution_Tensor.xml",reference)       self.check_vtk("tet_2D_order2_ReducedSolution_Tensor.xml",reference)
1603    def test_tet_2D_order2_Function_Scalar_vtk(self):    def test_tet_2D_order2_Function_Scalar_vtk(self):
1604       reference="tet_2D_o2_cell_s.xml"       reference="tet_2D_o2_cell_s.xml"
1605       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1606       x=Function(dom).getX()       x=Function(dom).getX()
1607       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Function_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Function_Scalar.xml"),data=x[0])
1608       self.check_vtk("tet_2D_order2_Function_Scalar.xml",reference)       self.check_vtk("tet_2D_order2_Function_Scalar.xml",reference)
1609    def test_tet_2D_order2_Function_Vector_vtk(self):    def test_tet_2D_order2_Function_Vector_vtk(self):
1610       reference="tet_2D_o2_cell_v.xml"       reference="tet_2D_o2_cell_v.xml"
1611       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1612       x=Function(dom).getX()       x=Function(dom).getX()
1613       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Function_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Function_Vector.xml"),data=x[0]*[1.,2.])
1614       self.check_vtk("tet_2D_order2_Function_Vector.xml",reference)       self.check_vtk("tet_2D_order2_Function_Vector.xml",reference)
1615    def test_tet_2D_order2_Function_Tensor_vtk(self):    def test_tet_2D_order2_Function_Tensor_vtk(self):
1616       reference="tet_2D_o2_cell_t.xml"       reference="tet_2D_o2_cell_t.xml"
1617       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1618       x=Function(dom).getX()       x=Function(dom).getX()
1619       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Function_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_Function_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1620       self.check_vtk("tet_2D_order2_Function_Tensor.xml",reference)       self.check_vtk("tet_2D_order2_Function_Tensor.xml",reference)
1621    def test_tet_2D_order2_ReducedFunction_Scalar_vtk(self):    def test_tet_2D_order2_ReducedFunction_Scalar_vtk(self):
1622       reference="tet_2D_o2_reduced_cell_s.xml"       reference="tet_2D_o2_reduced_cell_s.xml"
1623       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1624       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1625       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunction_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunction_Scalar.xml"),data=x[0])
1626       self.check_vtk("tet_2D_order2_ReducedFunction_Scalar.xml",reference)       self.check_vtk("tet_2D_order2_ReducedFunction_Scalar.xml",reference)
1627    def test_tet_2D_order2_ReducedFunction_Vector_vtk(self):    def test_tet_2D_order2_ReducedFunction_Vector_vtk(self):
1628       reference="tet_2D_o2_reduced_cell_v.xml"       reference="tet_2D_o2_reduced_cell_v.xml"
1629       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1630       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1631       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.])
1632       self.check_vtk("tet_2D_order2_ReducedFunction_Vector.xml",reference)       self.check_vtk("tet_2D_order2_ReducedFunction_Vector.xml",reference)
1633    def test_tet_2D_order2_ReducedFunction_Tensor_vtk(self):    def test_tet_2D_order2_ReducedFunction_Tensor_vtk(self):
1634       reference="tet_2D_o2_reduced_cell_t.xml"       reference="tet_2D_o2_reduced_cell_t.xml"
1635       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1636       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1637       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1638       self.check_vtk("tet_2D_order2_ReducedFunction_Tensor.xml",reference)       self.check_vtk("tet_2D_order2_ReducedFunction_Tensor.xml",reference)
1639    def test_tet_2D_order2_FunctionOnBoundary_Scalar_vtk(self):    def test_tet_2D_order2_FunctionOnBoundary_Scalar_vtk(self):
1640       reference="tet_2D_o2_boundary_s.xml"       reference="tet_2D_o2_boundary_s.xml"
1641       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1642       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1643       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_FunctionOnBoundary_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_FunctionOnBoundary_Scalar.xml"),data=x[0])
1644       self.check_vtk("tet_2D_order2_FunctionOnBoundary_Scalar.xml",reference)       self.check_vtk("tet_2D_order2_FunctionOnBoundary_Scalar.xml",reference)
1645    def test_tet_2D_order2_FunctionOnBoundary_Vector_vtk(self):    def test_tet_2D_order2_FunctionOnBoundary_Vector_vtk(self):
1646       reference="tet_2D_o2_boundary_v.xml"       reference="tet_2D_o2_boundary_v.xml"
1647       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1648       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1649       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
1650       self.check_vtk("tet_2D_order2_FunctionOnBoundary_Vector.xml",reference)       self.check_vtk("tet_2D_order2_FunctionOnBoundary_Vector.xml",reference)
1651    def test_tet_2D_order2_FunctionOnBoundary_Tensor_vtk(self):    def test_tet_2D_order2_FunctionOnBoundary_Tensor_vtk(self):
1652       reference="tet_2D_o2_boundary_t.xml"       reference="tet_2D_o2_boundary_t.xml"
1653       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1654       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1655       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1656       self.check_vtk("tet_2D_order2_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("tet_2D_order2_FunctionOnBoundary_Tensor.xml",reference)
1657    def test_tet_2D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):    def test_tet_2D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):
1658       reference="tet_2D_o2_boundary_s.xml"       reference="tet_2D_o2_boundary_s.xml"
1659       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1660       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1661       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
1662       self.check_vtk("tet_2D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference)       self.check_vtk("tet_2D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference)
1663    def test_tet_2D_order2_ReducedFunctionOnBoundary_Vector_vtk(self):    def test_tet_2D_order2_ReducedFunctionOnBoundary_Vector_vtk(self):
1664       reference="tet_2D_o2_boundary_v.xml"       reference="tet_2D_o2_boundary_v.xml"
1665       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1666       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1667       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.])
1668       self.check_vtk("tet_2D_order2_ReducedFunctionOnBoundary_Vector.xml",reference)       self.check_vtk("tet_2D_order2_ReducedFunctionOnBoundary_Vector.xml",reference)
1669    def test_tet_2D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self):    def test_tet_2D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self):
1670       reference="tet_2D_o2_boundary_t.xml"       reference="tet_2D_o2_boundary_t.xml"
1671       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_2D_order2.fly"),optimize=False)
1672       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1673       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_2D_order2_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.],[21.,22.]])
1674       self.check_vtk("tet_2D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("tet_2D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)
1675    # ======================================================================================================================    # ======================================================================================================================
1676    def test_tet_3D_order1_ContinuousFunction_Scalar_vtk(self):    def test_tet_3D_order1_ContinuousFunction_Scalar_vtk(self):
1677       reference="tet_3D_o1_node_s.xml"       reference="tet_3D_o1_node_s.xml"
1678       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1679       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1680       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ContinuousFunction_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ContinuousFunction_Scalar.xml"),data=x[0])
1681       self.check_vtk("tet_3D_order1_ContinuousFunction_Scalar.xml",reference)       self.check_vtk("tet_3D_order1_ContinuousFunction_Scalar.xml",reference)
1682    def test_tet_3D_order1_ContinuousFunction_Vector_vtk(self):    def test_tet_3D_order1_ContinuousFunction_Vector_vtk(self):
1683       reference="tet_3D_o1_node_v.xml"       reference="tet_3D_o1_node_v.xml"
1684       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1685       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1686       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.,3.])
1687       self.check_vtk("tet_3D_order1_ContinuousFunction_Vector.xml",reference)       self.check_vtk("tet_3D_order1_ContinuousFunction_Vector.xml",reference)
1688    def test_tet_3D_order1_ContinuousFunction_Tensor_vtk(self):    def test_tet_3D_order1_ContinuousFunction_Tensor_vtk(self):
1689       reference="tet_3D_o1_node_t.xml"       reference="tet_3D_o1_node_t.xml"
1690       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1691       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1692       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1693       self.check_vtk("tet_3D_order1_ContinuousFunction_Tensor.xml",reference)       self.check_vtk("tet_3D_order1_ContinuousFunction_Tensor.xml",reference)
1694    def test_tet_3D_order1_Solution_Scalar_vtk(self):    def test_tet_3D_order1_Solution_Scalar_vtk(self):
1695       reference="tet_3D_o1_node_s.xml"       reference="tet_3D_o1_node_s.xml"
1696       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1697       x=Solution(dom).getX()       x=Solution(dom).getX()
1698       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Solution_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Solution_Scalar.xml"),data=x[0])
1699       self.check_vtk("tet_3D_order1_Solution_Scalar.xml",reference)       self.check_vtk("tet_3D_order1_Solution_Scalar.xml",reference)
1700    def test_tet_3D_order1_Solution_Vector_vtk(self):    def test_tet_3D_order1_Solution_Vector_vtk(self):
1701       reference="tet_3D_o1_node_v.xml"       reference="tet_3D_o1_node_v.xml"
1702       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1703       x=Solution(dom).getX()       x=Solution(dom).getX()
1704       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Solution_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Solution_Vector.xml"),data=x[0]*[1.,2.,3.])
1705       self.check_vtk("tet_3D_order1_Solution_Vector.xml",reference)       self.check_vtk("tet_3D_order1_Solution_Vector.xml",reference)
1706    def test_tet_3D_order1_Solution_Tensor_vtk(self):    def test_tet_3D_order1_Solution_Tensor_vtk(self):
1707       reference="tet_3D_o1_node_t.xml"       reference="tet_3D_o1_node_t.xml"
1708       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1709       x=Solution(dom).getX()       x=Solution(dom).getX()
1710       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Solution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Solution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1711       self.check_vtk("tet_3D_order1_Solution_Tensor.xml",reference)       self.check_vtk("tet_3D_order1_Solution_Tensor.xml",reference)
1712    def test_tet_3D_order1_ReducedSolution_Scalar_vtk(self):    def test_tet_3D_order1_ReducedSolution_Scalar_vtk(self):
1713       reference="tet_3D_o1_node_s.xml"       reference="tet_3D_o1_node_s.xml"
1714       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1715       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1716       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedSolution_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedSolution_Scalar.xml"),data=x[0])
1717       self.check_vtk("tet_3D_order1_ReducedSolution_Scalar.xml",reference)       self.check_vtk("tet_3D_order1_ReducedSolution_Scalar.xml",reference)
1718    def test_tet_3D_order1_ReducedSolution_Vector_vtk(self):    def test_tet_3D_order1_ReducedSolution_Vector_vtk(self):
1719       reference="tet_3D_o1_node_v.xml"       reference="tet_3D_o1_node_v.xml"
1720       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1721       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1722       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.,3.])
1723       self.check_vtk("tet_3D_order1_ReducedSolution_Vector.xml",reference)       self.check_vtk("tet_3D_order1_ReducedSolution_Vector.xml",reference)
1724    def test_tet_3D_order1_ReducedSolution_Tensor_vtk(self):    def test_tet_3D_order1_ReducedSolution_Tensor_vtk(self):
1725       reference="tet_3D_o1_node_t.xml"       reference="tet_3D_o1_node_t.xml"
1726       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1727       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1728       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1729       self.check_vtk("tet_3D_order1_ReducedSolution_Tensor.xml",reference)       self.check_vtk("tet_3D_order1_ReducedSolution_Tensor.xml",reference)
1730    def test_tet_3D_order1_Function_Scalar_vtk(self):    def test_tet_3D_order1_Function_Scalar_vtk(self):
1731       reference="tet_3D_o1_cell_s.xml"       reference="tet_3D_o1_cell_s.xml"
1732       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1733       x=Function(dom).getX()       x=Function(dom).getX()
1734       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Function_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Function_Scalar.xml"),data=x[0])
1735       self.check_vtk("tet_3D_order1_Function_Scalar.xml",reference)       self.check_vtk("tet_3D_order1_Function_Scalar.xml",reference)
1736    def test_tet_3D_order1_Function_Vector_vtk(self):    def test_tet_3D_order1_Function_Vector_vtk(self):
1737       reference="tet_3D_o1_cell_v.xml"       reference="tet_3D_o1_cell_v.xml"
1738       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1739       x=Function(dom).getX()       x=Function(dom).getX()
1740       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Function_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Function_Vector.xml"),data=x[0]*[1.,2.,3.])
1741       self.check_vtk("tet_3D_order1_Function_Vector.xml",reference)       self.check_vtk("tet_3D_order1_Function_Vector.xml",reference)
1742    def test_tet_3D_order1_Function_Tensor_vtk(self):    def test_tet_3D_order1_Function_Tensor_vtk(self):
1743       reference="tet_3D_o1_cell_t.xml"       reference="tet_3D_o1_cell_t.xml"
1744       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1745       x=Function(dom).getX()       x=Function(dom).getX()
1746       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Function_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_Function_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1747       self.check_vtk("tet_3D_order1_Function_Tensor.xml",reference)       self.check_vtk("tet_3D_order1_Function_Tensor.xml",reference)
1748    def test_tet_3D_order1_ReducedFunction_Scalar_vtk(self):    def test_tet_3D_order1_ReducedFunction_Scalar_vtk(self):
1749       reference="tet_3D_o1_cell_s.xml"       reference="tet_3D_o1_cell_s.xml"
1750       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1751       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1752       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunction_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunction_Scalar.xml"),data=x[0])
1753       self.check_vtk("tet_3D_order1_ReducedFunction_Scalar.xml",reference)       self.check_vtk("tet_3D_order1_ReducedFunction_Scalar.xml",reference)
1754    def test_tet_3D_order1_ReducedFunction_Vector_vtk(self):    def test_tet_3D_order1_ReducedFunction_Vector_vtk(self):
1755       reference="tet_3D_o1_cell_v.xml"       reference="tet_3D_o1_cell_v.xml"
1756       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1757       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1758       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.,3.])
1759       self.check_vtk("tet_3D_order1_ReducedFunction_Vector.xml",reference)       self.check_vtk("tet_3D_order1_ReducedFunction_Vector.xml",reference)
1760    def test_tet_3D_order1_ReducedFunction_Tensor_vtk(self):    def test_tet_3D_order1_ReducedFunction_Tensor_vtk(self):
1761       reference="tet_3D_o1_cell_t.xml"       reference="tet_3D_o1_cell_t.xml"
1762       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1763       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1764       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1765       self.check_vtk("tet_3D_order1_ReducedFunction_Tensor.xml",reference)       self.check_vtk("tet_3D_order1_ReducedFunction_Tensor.xml",reference)
1766    def test_tet_3D_order1_FunctionOnBoundary_Scalar_vtk(self):    def test_tet_3D_order1_FunctionOnBoundary_Scalar_vtk(self):
1767       reference="tet_3D_o1_boundary_s.xml"       reference="tet_3D_o1_boundary_s.xml"
1768       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1769       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1770       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_FunctionOnBoundary_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_FunctionOnBoundary_Scalar.xml"),data=x[0])
1771       self.check_vtk("tet_3D_order1_FunctionOnBoundary_Scalar.xml",reference)       self.check_vtk("tet_3D_order1_FunctionOnBoundary_Scalar.xml",reference)
1772    def test_tet_3D_order1_FunctionOnBoundary_Vector_vtk(self):    def test_tet_3D_order1_FunctionOnBoundary_Vector_vtk(self):
1773       reference="tet_3D_o1_boundary_v.xml"       reference="tet_3D_o1_boundary_v.xml"
1774       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1775       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1776       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1777       self.check_vtk("tet_3D_order1_FunctionOnBoundary_Vector.xml",reference)       self.check_vtk("tet_3D_order1_FunctionOnBoundary_Vector.xml",reference)
1778    def test_tet_3D_order1_FunctionOnBoundary_Tensor_vtk(self):    def test_tet_3D_order1_FunctionOnBoundary_Tensor_vtk(self):
1779       reference="tet_3D_o1_boundary_t.xml"       reference="tet_3D_o1_boundary_t.xml"
1780       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1781       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1782       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1783       self.check_vtk("tet_3D_order1_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("tet_3D_order1_FunctionOnBoundary_Tensor.xml",reference)
1784    def test_tet_3D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):    def test_tet_3D_order1_ReducedFunctionOnBoundary_Scalar_vtk(self):
1785       reference="tet_3D_o1_boundary_s.xml"       reference="tet_3D_o1_boundary_s.xml"
1786       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1787       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1788       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
1789       self.check_vtk("tet_3D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference)       self.check_vtk("tet_3D_order1_ReducedFunctionOnBoundary_Scalar.xml",reference)
1790    def test_tet_3D_order1_ReducedFunctionOnBoundary_Vector_vtk(self):    def test_tet_3D_order1_ReducedFunctionOnBoundary_Vector_vtk(self):
1791       reference="tet_3D_o1_boundary_v.xml"       reference="tet_3D_o1_boundary_v.xml"
1792       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1793       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1794       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1795       self.check_vtk("tet_3D_order1_ReducedFunctionOnBoundary_Vector.xml",reference)       self.check_vtk("tet_3D_order1_ReducedFunctionOnBoundary_Vector.xml",reference)
1796    def test_tet_3D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self):    def test_tet_3D_order1_ReducedFunctionOnBoundary_Tensor_vtk(self):
1797       reference="tet_3D_o1_boundary_t.xml"       reference="tet_3D_o1_boundary_t.xml"
1798       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
1799       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1800       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order1_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1801       self.check_vtk("tet_3D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("tet_3D_order1_ReducedFunctionOnBoundary_Tensor.xml",reference)
1802    # ======================================================================================================================    # ======================================================================================================================
1803    def test_tet_3D_order2_ContinuousFunction_Scalar_vtk(self):    def test_tet_3D_order2_ContinuousFunction_Scalar_vtk(self):
1804       reference="tet_3D_o2_node_s.xml"       reference="tet_3D_o2_node_s.xml"
1805       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1806       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1807       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ContinuousFunction_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ContinuousFunction_Scalar.xml"),data=x[0])
1808       self.check_vtk("tet_3D_order2_ContinuousFunction_Scalar.xml",reference)       self.check_vtk("tet_3D_order2_ContinuousFunction_Scalar.xml",reference)
1809    def test_tet_3D_order2_ContinuousFunction_Vector_vtk(self):    def test_tet_3D_order2_ContinuousFunction_Vector_vtk(self):
1810       reference="tet_3D_o2_node_v.xml"       reference="tet_3D_o2_node_v.xml"
1811       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1812       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1813       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ContinuousFunction_Vector.xml"),data=x[0]*[1.,2.,3.])
1814       self.check_vtk("tet_3D_order2_ContinuousFunction_Vector.xml",reference)       self.check_vtk("tet_3D_order2_ContinuousFunction_Vector.xml",reference)
1815    def test_tet_3D_order2_ContinuousFunction_Tensor_vtk(self):    def test_tet_3D_order2_ContinuousFunction_Tensor_vtk(self):
1816       reference="tet_3D_o2_node_t.xml"       reference="tet_3D_o2_node_t.xml"
1817       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1818       x=ContinuousFunction(dom).getX()       x=ContinuousFunction(dom).getX()
1819       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ContinuousFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1820       self.check_vtk("tet_3D_order2_ContinuousFunction_Tensor.xml",reference)       self.check_vtk("tet_3D_order2_ContinuousFunction_Tensor.xml",reference)
1821    def test_tet_3D_order2_Solution_Scalar_vtk(self):    def test_tet_3D_order2_Solution_Scalar_vtk(self):
1822       reference="tet_3D_o2_node_s.xml"       reference="tet_3D_o2_node_s.xml"
1823       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1824       x=Solution(dom).getX()       x=Solution(dom).getX()
1825       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Solution_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Solution_Scalar.xml"),data=x[0])
1826       self.check_vtk("tet_3D_order2_Solution_Scalar.xml",reference)       self.check_vtk("tet_3D_order2_Solution_Scalar.xml",reference)
1827    def test_tet_3D_order2_Solution_Vector_vtk(self):    def test_tet_3D_order2_Solution_Vector_vtk(self):
1828       reference="tet_3D_o2_node_v.xml"       reference="tet_3D_o2_node_v.xml"
1829       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1830       x=Solution(dom).getX()       x=Solution(dom).getX()
1831       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Solution_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Solution_Vector.xml"),data=x[0]*[1.,2.,3.])
1832       self.check_vtk("tet_3D_order2_Solution_Vector.xml",reference)       self.check_vtk("tet_3D_order2_Solution_Vector.xml",reference)
1833    def test_tet_3D_order2_Solution_Tensor_vtk(self):    def test_tet_3D_order2_Solution_Tensor_vtk(self):
1834       reference="tet_3D_o2_node_t.xml"       reference="tet_3D_o2_node_t.xml"
1835       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1836       x=Solution(dom).getX()       x=Solution(dom).getX()
1837       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Solution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Solution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1838       self.check_vtk("tet_3D_order2_Solution_Tensor.xml",reference)       self.check_vtk("tet_3D_order2_Solution_Tensor.xml",reference)
1839    def test_tet_3D_order2_ReducedSolution_Scalar_vtk(self):    def test_tet_3D_order2_ReducedSolution_Scalar_vtk(self):
1840       reference="tet_3D_o1_node_s.xml"       reference="tet_3D_o1_node_s.xml"
1841       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1842       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1843       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedSolution_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedSolution_Scalar.xml"),data=x[0])
1844       self.check_vtk("tet_3D_order2_ReducedSolution_Scalar.xml",reference)       self.check_vtk("tet_3D_order2_ReducedSolution_Scalar.xml",reference)
1845    def test_tet_3D_order2_ReducedSolution_Vector_vtk(self):    def test_tet_3D_order2_ReducedSolution_Vector_vtk(self):
1846       reference="tet_3D_o1_node_v.xml"       reference="tet_3D_o1_node_v.xml"
1847       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1848       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1849       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedSolution_Vector.xml"),data=x[0]*[1.,2.,3.])
1850       self.check_vtk("tet_3D_order2_ReducedSolution_Vector.xml",reference)       self.check_vtk("tet_3D_order2_ReducedSolution_Vector.xml",reference)
1851    def test_tet_3D_order2_ReducedSolution_Tensor_vtk(self):    def test_tet_3D_order2_ReducedSolution_Tensor_vtk(self):
1852       reference="tet_3D_o1_node_t.xml"       reference="tet_3D_o1_node_t.xml"
1853       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1854       x=ReducedSolution(dom).getX()       x=ReducedSolution(dom).getX()
1855       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedSolution_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1856       self.check_vtk("tet_3D_order2_ReducedSolution_Tensor.xml",reference)       self.check_vtk("tet_3D_order2_ReducedSolution_Tensor.xml",reference)
1857    def test_tet_3D_order2_Function_Scalar_vtk(self):    def test_tet_3D_order2_Function_Scalar_vtk(self):
1858       reference="tet_3D_o2_cell_s.xml"       reference="tet_3D_o2_cell_s.xml"
1859       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1860       x=Function(dom).getX()       x=Function(dom).getX()
1861       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Function_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Function_Scalar.xml"),data=x[0])
1862       self.check_vtk("tet_3D_order2_Function_Scalar.xml",reference)       self.check_vtk("tet_3D_order2_Function_Scalar.xml",reference)
1863    def test_tet_3D_order2_Function_Vector_vtk(self):    def test_tet_3D_order2_Function_Vector_vtk(self):
1864       reference="tet_3D_o2_cell_v.xml"       reference="tet_3D_o2_cell_v.xml"
1865       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1866       x=Function(dom).getX()       x=Function(dom).getX()
1867       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Function_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Function_Vector.xml"),data=x[0]*[1.,2.,3.])
1868       self.check_vtk("tet_3D_order2_Function_Vector.xml",reference)       self.check_vtk("tet_3D_order2_Function_Vector.xml",reference)
1869    def test_tet_3D_order2_Function_Tensor_vtk(self):    def test_tet_3D_order2_Function_Tensor_vtk(self):
1870       reference="tet_3D_o2_cell_t.xml"       reference="tet_3D_o2_cell_t.xml"
1871       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1872       x=Function(dom).getX()       x=Function(dom).getX()
1873       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Function_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_Function_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1874       self.check_vtk("tet_3D_order2_Function_Tensor.xml",reference)       self.check_vtk("tet_3D_order2_Function_Tensor.xml",reference)
1875    def test_tet_3D_order2_ReducedFunction_Scalar_vtk(self):    def test_tet_3D_order2_ReducedFunction_Scalar_vtk(self):
1876       reference="tet_3D_o2_reduced_cell_s.xml"       reference="tet_3D_o2_reduced_cell_s.xml"
1877       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1878       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1879       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunction_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunction_Scalar.xml"),data=x[0])
1880       self.check_vtk("tet_3D_order2_ReducedFunction_Scalar.xml",reference)       self.check_vtk("tet_3D_order2_ReducedFunction_Scalar.xml",reference)
1881    def test_tet_3D_order2_ReducedFunction_Vector_vtk(self):    def test_tet_3D_order2_ReducedFunction_Vector_vtk(self):
1882       reference="tet_3D_o2_reduced_cell_v.xml"       reference="tet_3D_o2_reduced_cell_v.xml"
1883       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1884       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1885       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunction_Vector.xml"),data=x[0]*[1.,2.,3.])
1886       self.check_vtk("tet_3D_order2_ReducedFunction_Vector.xml",reference)       self.check_vtk("tet_3D_order2_ReducedFunction_Vector.xml",reference)
1887    def test_tet_3D_order2_ReducedFunction_Tensor_vtk(self):    def test_tet_3D_order2_ReducedFunction_Tensor_vtk(self):
1888       reference="tet_3D_o2_reduced_cell_t.xml"       reference="tet_3D_o2_reduced_cell_t.xml"
1889       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1890       x=ReducedFunction(dom).getX()       x=ReducedFunction(dom).getX()
1891       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunction_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1892       self.check_vtk("tet_3D_order2_ReducedFunction_Tensor.xml",reference)       self.check_vtk("tet_3D_order2_ReducedFunction_Tensor.xml",reference)
1893    def test_tet_3D_order2_FunctionOnBoundary_Scalar_vtk(self):    def test_tet_3D_order2_FunctionOnBoundary_Scalar_vtk(self):
1894       reference="tet_3D_o2_boundary_s.xml"       reference="tet_3D_o2_boundary_s.xml"
1895       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1896       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1897       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_FunctionOnBoundary_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_FunctionOnBoundary_Scalar.xml"),data=x[0])
1898       self.check_vtk("tet_3D_order2_FunctionOnBoundary_Scalar.xml",reference)       self.check_vtk("tet_3D_order2_FunctionOnBoundary_Scalar.xml",reference)
1899    def test_tet_3D_order2_FunctionOnBoundary_Vector_vtk(self):    def test_tet_3D_order2_FunctionOnBoundary_Vector_vtk(self):
1900       reference="tet_3D_o2_boundary_v.xml"       reference="tet_3D_o2_boundary_v.xml"
1901       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1902       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1903       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_FunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1904       self.check_vtk("tet_3D_order2_FunctionOnBoundary_Vector.xml",reference)       self.check_vtk("tet_3D_order2_FunctionOnBoundary_Vector.xml",reference)
1905    def test_tet_3D_order2_FunctionOnBoundary_Tensor_vtk(self):    def test_tet_3D_order2_FunctionOnBoundary_Tensor_vtk(self):
1906       reference="tet_3D_o2_boundary_t.xml"       reference="tet_3D_o2_boundary_t.xml"
1907       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1908       x=FunctionOnBoundary(dom).getX()       x=FunctionOnBoundary(dom).getX()
1909       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_FunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1910       self.check_vtk("tet_3D_order2_FunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("tet_3D_order2_FunctionOnBoundary_Tensor.xml",reference)
1911    def test_tet_3D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):    def test_tet_3D_order2_ReducedFunctionOnBoundary_Scalar_vtk(self):
1912       reference="tet_3D_o2_reduced_boundary_s.xml"       reference="tet_3D_o2_reduced_boundary_s.xml"
1913       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1914       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1915       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunctionOnBoundary_Scalar.xml"),data=x[0])
1916       self.check_vtk("tet_3D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference)       self.check_vtk("tet_3D_order2_ReducedFunctionOnBoundary_Scalar.xml",reference)
1917    def test_tet_3D_order2_ReducedFunctionOnBoundary_Vector_vtk(self):    def test_tet_3D_order2_ReducedFunctionOnBoundary_Vector_vtk(self):
1918       reference="tet_3D_o2_reduced_boundary_v.xml"       reference="tet_3D_o2_reduced_boundary_v.xml"
1919       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1920       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1921       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunctionOnBoundary_Vector.xml"),data=x[0]*[1.,2.,3.])
1922       self.check_vtk("tet_3D_order2_ReducedFunctionOnBoundary_Vector.xml",reference)       self.check_vtk("tet_3D_order2_ReducedFunctionOnBoundary_Vector.xml",reference)
1923    def test_tet_3D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self):    def test_tet_3D_order2_ReducedFunctionOnBoundary_Tensor_vtk(self):
1924       reference="tet_3D_o2_reduced_boundary_t.xml"       reference="tet_3D_o2_reduced_boundary_t.xml"
1925       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"))       dom=ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"tet_3D_order2.fly"),optimize=False)
1926       x=ReducedFunctionOnBoundary(dom).getX()       x=ReducedFunctionOnBoundary(dom).getX()
1927       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])       saveVTK(os.path.join(FINLEY_WORKDIR_PATH,"tet_3D_order2_ReducedFunctionOnBoundary_Tensor.xml"),data=x[0]*[[11.,12.,13.],[21.,22.,23],[31.,32.,33.]])
1928       self.check_vtk("tet_3D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)       self.check_vtk("tet_3D_order2_ReducedFunctionOnBoundary_Tensor.xml",reference)
# Line 2505  if __name__ == '__main__': Line 2502  if __name__ == '__main__':
2502     suite.addTest(unittest.makeSuite(Test_VTKFiles))     suite.addTest(unittest.makeSuite(Test_VTKFiles))
2503     suite.addTest(unittest.makeSuite(Test_DXFiles))     suite.addTest(unittest.makeSuite(Test_DXFiles))
2504     s=unittest.TextTestRunner(verbosity=2).run(suite)     s=unittest.TextTestRunner(verbosity=2).run(suite)
2505       if not s.wasSuccessful(): sys.exit(1)

Legend:
Removed from v.1312  
changed lines
  Added in v.1379

  ViewVC Help
Powered by ViewVC 1.1.26