Skip to content
Snippets Groups Projects
Commit c4dcdbe3 authored by John Sayut's avatar John Sayut
Browse files

Update file cheartio.py

parent 81386ed1
No related branches found
No related tags found
1 merge request!2Update file cheartio.py
......@@ -23,7 +23,7 @@ vol_to_surf_elem = {'hexahedron': 'quad',
def read_mesh(path, meshio=False, element=None):
# Load mesh
xyz = np.loadtxt(path + '_FE.X', skiprows = 1)
ien = np.loadtxt(path + '_FE.T', skiprows = 1, dtype=int) - 1
ien = np.loadtxt(path + '_FE.T', skiprows = 1, dtype=int, ndmin=2) - 1
try: bfile = np.loadtxt(path + '_FE.B', skiprows = 1)
except: bfile = np.array([])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment