About how to use DDM tool

Hello everyone,:
I have studied the following DDM case and I have a question. For the ffddmsetupOperator and ffddmbuildrhs functions, it is necessary to define the macro Varf(varfName, meshName, VhName). Suppose my problem has a vector unknown and a scalar unknown (electromagnetic field problem) defined in different function spaces, how to handle this issue? For complex multi-variable, multi-function space or multi-mesh problems, does it mean that the tool becomes ineffective?

3Dexample.edp (940 Bytes)

ffddm documentation

You can use a PETSc MatNest instead and let fieldsplit do the coupling.

Thank you for your reply, Professor. Do you have any case studies or links to refer to?

Here are some: FreeFem-sources/examples/hpddm at develop · FreeFem/FreeFem-sources · GitHub .