getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] (no subject)


From: Tetsuo Koyama
Subject: [Getfem-commits] (no subject)
Date: Sat, 3 Oct 2020 20:46:06 -0400 (EDT)

branch: devel-tetsuo-xml-binary
commit a59760ad47bb3136cc11c29432060f989ca9f91a
Author: Tetsuo Koyama <tkoyama010@gmail.com>
AuthorDate: Sun Sep 13 01:22:10 2020 +0900

    Update test and vtu files
---
 interface/tests/python/check_export_vtu.py   |  6 +++---
 interface/tests/python/check_mesh_ascii.vtu  |  8 +++++---
 interface/tests/python/check_mesh_binary.vtu | 10 +++++-----
 3 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/interface/tests/python/check_export_vtu.py 
b/interface/tests/python/check_export_vtu.py
index bab0760..bd96492 100644
--- a/interface/tests/python/check_export_vtu.py
+++ b/interface/tests/python/check_export_vtu.py
@@ -30,8 +30,8 @@ import getfem as gf
 import numpy as np
 import pyvista as pv
 
-convex_connectivity = np.array([0, 1])
-mesh = gf.Mesh("cartesian", convex_connectivity)
+convex_connectivity = np.array([0, 1, 1, 2])
+mesh = gf.Mesh("cartesian", [0.0, 1.0, 2.0])
 pts = mesh.pts()[0]
 
 
@@ -39,7 +39,7 @@ filenames = ["check_mesh_ascii.vtu", "check_mesh_binary.vtu"]
 
 # mesh.export_to_vtu(filenames[0], "ascii")
 
-mesh.export_to_vtu(filenames[1])
+# mesh.export_to_vtu(filenames[1])
 
 for filename in filenames:
     print(filename)
diff --git a/interface/tests/python/check_mesh_ascii.vtu 
b/interface/tests/python/check_mesh_ascii.vtu
index 2813ee4..97edd31 100644
--- a/interface/tests/python/check_mesh_ascii.vtu
+++ b/interface/tests/python/check_mesh_ascii.vtu
@@ -2,22 +2,24 @@
 <VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
 <!--Exported by GetFEM-->
 <UnstructuredGrid>
-<Piece NumberOfPoints="2" NumberOfCells="1">
+<Piece NumberOfPoints="3" NumberOfCells="2">
 <Points>
 <DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii">
  0 0 0
  1 0 0
+ 2 0 0
 </DataArray>
 </Points>
 <Cells>
 <DataArray type="Int64" Name="connectivity" format="ascii">
  0 1
+ 1 2
 </DataArray>
 <DataArray type="Int64" Name="offsets" format="ascii">
- 2
+ 2 4
 </DataArray>
 <DataArray type="Int64" Name="types" format="ascii">
- 3
+ 3 3
 </DataArray>
 </Cells>
 </Piece>
diff --git a/interface/tests/python/check_mesh_binary.vtu 
b/interface/tests/python/check_mesh_binary.vtu
index d1d97c3..e271a5f 100644
--- a/interface/tests/python/check_mesh_binary.vtu
+++ b/interface/tests/python/check_mesh_binary.vtu
@@ -2,21 +2,21 @@
 <VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
 <!--Exported by GetFEM-->
 <UnstructuredGrid>
-<Piece NumberOfPoints="2" NumberOfCells="1">
+<Piece NumberOfPoints="3" NumberOfCells="2">
 <Points>
 <DataArray type="Float32" Name="Points" NumberOfComponents="3" format="binary">
-GAAAAAAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAA==
+JAAAAAAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAEAAAAAAAAAAAA==
 </DataArray>
 </Points>
 <Cells>
 <DataArray type="Int64" Name="connectivity" format="binary">
-EAAAAAAAAAAAAAAAAQAAAAAAAAA=
+IAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAIAAAAAAAAA
 </DataArray>
 <DataArray type="Int64" Name="offsets" format="binary">
-CAAAAAIAAAAAAAAA
+EAAAAAIAAAAAAAAABAAAAAAAAAA=
 </DataArray>
 <DataArray type="Int64" Name="types" format="binary">
-CAAAAAMAAAAAAAAA
+EAAAAAMAAAAAAAAAAwAAAAAAAAA=
 </DataArray>
 </Cells>
 </Piece>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]