remove some duplicate code
@@ -64,27 +64,6 @@ _extension_to_filetype = {
'.xmf': 'xdmf3',
}
-num_nodes_per_cell = {
- 'vertex': 1,
- 'line': 2,
- 'triangle': 3,
- 'quad': 4,
- 'tetra': 4,
- 'hexahedron': 8,
- 'wedge': 6,
- 'pyramid': 5,
- #
- 'line3': 3,
- 'triangle6': 6,
- 'quad9': 9,
- 'tetra10': 10,
- 'hexahedron27': 27,
- 'prism18': 18,
- 'pyramid14': 14,
- 'line4': 4,
- 'quad16': 16,
- }
-
def read(filename, file_format=None):
'''Reads an unstructured mesh with added data.
@@ -161,7 +140,7 @@ def write(filename,
# check cells for sanity
for key in cells:
- assert cells[key].shape[1] == num_nodes_per_cell[key]
+ assert cells[key].shape[1] == gmsh_io.num_nodes_per_cell[key]
if file_format == 'moab':
h5m_io.write(
