Error using Real element

Hi all,
I am unable to parallelize a code with a Real element. The code is running well for n=20. But with increasing n value, I am getting an error of Segmentation fault.

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 702 RUNNING AT ab759c7bf63f
=   EXIT CODE: 11
=   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

The MWE is-

from fenics import *

n=50
mesh = UnitCubeMesh(n, n, n)
R = FunctionSpace(mesh, "R", 0)
assemble(TestFunction(R)*dx)
print("done")

This query has reference to my two posts-

1 Like

I cannot reproduce this issue using:

docker run -ti -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $(pwd):/root/shared -w /root/shared --rm quay.io/fenicsproject/dev:latest

MWE

from fenics import *

n = 50
mesh = UnitCubeMesh(n, n, n)
R = FunctionSpace(mesh, "R", 0)
assemble(TestFunction(R)*dx)
print("done")

returning

 sudo mpirun -n 5 python3 test.py 
done
done
done
done
done
1 Like