I am currently learning parallelization in FreeFEM and started with a simple diffusion problem. The serial version works as expected, but after parallelizing it using PETSc and macro_ddm.idp, the contour plots do not appear correct. Could you please review the code and point out any issues or suggest improvements to the parallel implementation?
Thank you for your response. The contour plot was being generated, but the results did not match the serial solution and appeared incorrect. Since I am new to FreeFEM parallelization, I was hoping to understand what might be causing this discrepancy and whether there are any issues with my implementation.
Yes, with a single process, the code outputs the contour plot correctly and writes the data as expected. However, when running with multiple processes, the through-depth temperature output is incorrect.
I am running a parallel simulation using PETSc and DDM in FreeFEM. I want to properly export my solution fields to VTK. Can you verify if my setup correctly handles the local-to-global mesh mapping (n2o), or if I need to modify it for parallel execution?