Dear all
I have a question related to an example of parallelization in FreeFEM++. The example is VG.edp, found in the FreeFEM example directory. When I ran the program, it seemed that each single core performed calculations individually rather than using parallelization.
Below one is my command;
mpirun -np 4 FreeFem+±mpi.exe ./VG.edp
These is the results;
lambda,mu,gravity =115079 83333.3 -0.05
===============================================
==== CPU time =====
===============================================
ALL solving steps :::: 6.827
Matrix :::: 2.383
Fact :::: 0
Second member :::: 0.062
Solve :::: 4.382
===============================================
0 max deplacement = 1.43944e-06
lambda,mu,gravity =115079 83333.3 -0.05
===============================================
==== CPU time =====
===============================================
ALL solving steps :::: 8.343
Matrix :::: 3.036
Fact :::: 0
Second member :::: 0.125
Solve :::: 5.182
===============================================
0 max deplacement = 1.43944e-06
lambda,mu,gravity =115079 83333.3 -0.05
===============================================
==== CPU time =====
===============================================
ALL solving steps :::: 9.366
Matrix :::: 3.939
Fact :::: 0
Second member :::: 0.125
Solve :::: 5.302
===============================================
0 max deplacement = 1.43944e-06
lambda,mu,gravity =115079 83333.3 -0.05
===============================================
==== CPU time =====
===============================================
ALL solving steps :::: 9.625
Matrix :::: 4.423
Fact :::: 0
Second member :::: 0.125
Solve :::: 5.077
===============================================
0 max deplacement = 1.43944e-06
The below one is the result when I use only one core.
$ mpirun -np 1 FreeFem++-mpi.exe ./VG.edp -wp -v 0
lambda,mu,gravity =115079 83333.3 -0.05
===============================================
==== CPU time =====
===============================================
ALL solving steps :::: 6.387
Matrix :::: 2.321
Fact :::: 0
Second member :::: 0.062
Solve :::: 4.004
===============================================
0 max deplacement = 1.43944e-06
So I am slightly confused of this example in FreeFEM
Thanks.