I’m looking to understand how to parallelise my project in fenicsX with the supported openMPI framework. I was looking for resources for this and could only find this.
Unfortunately, as soon as fenicsx calls are used the example scripts do not run - I presume the API has changed in more recent versions.
Just quickly, before I wrestle with that, my project is using the non-linear assembly with dolfinx-MPC to get periodic boundaries, as implemented here and discussed here. Will application to that be the same? Or will that create any significant hurdles?
DOLFINx_MPC is built as an extension of DOLFINx, and uses DOLFINx structures, such as dofmaps, index-maps, functions etc.
The only major difference between the DOLFINx and DOLFINx_MPC is that DOLFINx MPC creates special index_maps and dofmaps with constraint information, and does assembly in a specific way, as specified in https://fenics2021.com/slides/dokken.pdf
Sorry, I’m not particularly fluent with all of the machinery and am guilty of “cargo cult coding” my way through to some extent.
So I was just wondering if the application in the link you provided - which implements a linear solver without the MPC extension - can be applied to my case, in terms of dolfinx calls, without further guidance/modification of the function calls etc. So the hurdles I was anticipating were really my adapt it to my case, not technical issues with MPC etc.
I’ll give it a go first and see if I run into any trouble.