Utilising ffddm

Hello developers,

When I want to use ffddm I get an error " The identifier mpsize doesn’t exist. For using ffddm I have to install a package or add particular library?

I just tried a simple command, but got error.
ffddmbuildDmesh( M , ThGlobal , mpiCommWorld )

Thanks.

Hi,

How did you lanch your script ? You have to perform a parallel computation with:

ff-mpirun -np NUMBER_OF_PROCS NAME_OF_YOUR_SCRIPT.edp

Lucas

I was just compiling it without any parallel computation. I am new and dont know how to do it.
So as an example I have to add this section in a script test.edp:

“macro dimension 2// EOM // 2D or 3D
include “ffddm.idp”
mesh ThGlobal = square(100,100); // global mesh
// Step 1: Decompose the mesh
ffddmbuildDmesh( M , ThGlobal , mpiCommWorld )
medit(“Th”+mpirank, MThi);”

and this “ff-mpirun -np 2 test.edp” in another script?

Thanks.
Niaa

If you are new to parallel computing with FreeFEM, you may be interested in these two tutorial videos: [1, 2].

1 Like

Too helpful, thanks alot.