Hi, everyone!
I want to solve a 3D MHD model, but when I used solver=UMFPACK to solve it, an error occurred on the [16,16,16] grid, which exceeded the memory, and the running speed was extremely slow.
My aim is to obtain the error convergence order of the solution model on meshes of different mesh sizes, with the finest mesh reaching [32,32,32]. I have learned that using PETSc parallel computing can speed up the operation and save memory.
But I’m a beginner at Freefem and not very good at converting the current code into PETSc parallel code. Can someone help me? Thank you and look forward to your valuable suggestions!
Probably there are some choices that are not good (prj will tell). In particular concerning the preconditioner (“lu” is used).
It does not necessarily work better than with a single process.
I think it would be worthwile do have a scheme with decoupled u,E,B to have smaller matrices.