Demo_poisson with mpirun

I just did run the demo_poisson.py example with mpirun - just to checkif it works - and finally the images of the results are drawn separately according to the processor used for the area. How to change the example to get the entire solution in one array and one grafics back?

  1. You have not specified what version of DOLFIN you are using (legacy or DOLFINx).
  2. Plotting in script with MPI is not recommended, it requires quite a lot of work to plot on one process, see for instance: Gather solutions in parallel in FEniCSX - #2 by dokken

Recommended way to visualise parallel results is to write the result to file (xdmf, pvd) and use ParaView to view the result.