Issue with hp-Refinement using MPI

Hi,
I hope this message finds you well.
I have been successfully working on implementing hp-refinement in my code. I am attempting to optimize the performance further by incorporating MPI for parallelization.
However, the finite element space (ex: H1) could not be created. The code didn’t crash. There is no error, but it seems stuck at the abovementioned step.

I would appreciate any insights or suggestions on how to speed up this process. Has anyone successfully implemented MPI with hp-refinement in a similar context? Any guidance on how to address this would be beneficial.

Thank you in advance for your assistance.
Vien Che

Would you mind sharing your code? :slight_smile: