Maybe this post will be helpful, although it is given in dolfinx. Gather solutions in parallel in FEniCSX - #2 by dokken