Hi,
I am encountering an issue with the bounding_box_tree
method in parallel. Consider the following example:
from dolfin import *
# Parameters
N = 30
xc, yc = 0.5, 0.75
rc = 0.12
# Construct the mesh and mark subdomains (a disk in a square)
mesh = UnitSquareMesh(N,N)
subdomains = MeshFunction("size_t", mesh, 2, 0)
for cell in cells(mesh):
if (cell.midpoint()[0]-xc)**2 + (cell.midpoint()[1]-yc)**2 < rc**2:
subdomains.set_value(cell.index(),1)
# create meshview
submesh = MeshView.create(subdomains, 1)
# Here is the seg fault
tree= submesh.bounding_box_tree()
Running it with mpirun -np 3
in docker container (dev version) gives the following segmentation fault:
mpirun -np 3 python3 boundingboxtree.py
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 12240 RUNNING AT afc601d15854
= EXIT CODE: 139
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions
fenics@afc601d15854:~/shared/minimal/parallel_interpolation$ mpirun -np 3 python3 boundingboxtree.py
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 12257 RUNNING AT afc601d15854
= EXIT CODE: 139
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions
fenics@afc601d15854:~/shared/minimal/parallel_interpolation$ mpirun -np 3 python3 boundingboxtree.py
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= PID 12274 RUNNING AT afc601d15854
= EXIT CODE: 139
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault (signal 11)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions