I am trying to obtain the coordinates of each quadrature points using tabulate_dofs_coordinates however I get the following error:
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
[0]PETSC ERROR: or see https://petsc.org/release/faq/#valgrind and https://petsc.org/release/faq/
[0]PETSC ERROR: configure using --with-debugging=yes, recompile, link, and run
[0]PETSC ERROR: to get more information on the crash.
[0]PETSC ERROR: Run with -malloc_debug to check if memory corruption is causing the crash.
Abort(59) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0
Here is a minimal example of what I am trying to do.
import ufl
from dolfinx import fem, mesh
from mpi4py import MPI
msh = mesh.create_rectangle(comm=MPI.COMM_WORLD,
points=((0.0, 0.0), (2.0, 1.0)), n=(32, 16),
cell_type=mesh.CellType.triangle,)
QF_ele = ufl.FiniteElement("Quadrature", ufl.triangle, degree=2, quad_scheme="default")
QF = fem.FunctionSpace(msh, QF_ele)
coords = QF.tabulate_dof_coordinates()