Closed drtloudon closed 5 months ago
I would need the xdmf and h5 file to diagnose the issue.
I'm able to recreate the error with the mesh I emailed you yesterday, but I'll also send you this particular file. Thanks.
You are reading the the facet tags in the wrong way. Here is an MWE:
from dolfinx import io
import dolfinx
from mpi4py import MPI
xfile = io.XDMFFile(MPI.COMM_WORLD, 'quarter_shell_tet.xdmf', 'r')
mesh = xfile.read_mesh(name='Mesh')
block_data = xfile.read_meshtags(mesh, name='Mesh')
mesh.topology.create_connectivity(mesh.topology.dim-1, mesh.topology.dim)
bdry_data = xfile.read_meshtags(mesh, name='Facet_Mesh') # Problem
xfile.close()
I've created a simple exodus tetrahedral mesh of the domain (-1, +1)^3 with cell blocks and facet blocks. I'm able to successfully convert the mesh to .xdmf format using mesh_converter. However, when I try and read the facet meshtags into dolfinx I get a PETSc seg fault error. The following lines of code reproduce the error:
The above runs fine with the last line commented. The error message is:
The .xdmf file looks perfect in Paraview and correctly shows the cell blocks and facet blocks. Any help is appreciated. My goal is to use the bdry_data meshtags to apply boundary conditions in dolfinx.