Hello,
I have just started learning FreeFEM and have independently compiled FreeFEM on an Ubuntu 22.04 system. When studying the code, the plot
function runs normally, but the following code does not display any image when run using FreeFem++-mpi
, even though no error is reported. I also tried using other executables like ffglut
and ffmaster
, but they resulted in errors. Why doesn’t the program display the image? And I didn’t see functions ‘plotD’ and ‘plotDmesh’ on the Function page of the official website. Is there a page for their usage. Below are the program and its output. Any help would be greatly appreciated!
/*******************************************************
* This file is part of the FreeFEM tutorial made by *
* Pierre Jolivet <pierre@joliv.et> *
* *
* See https://joliv.et/FreeFem-tutorial for more *
* *
* Description: Mat data structure and basic usage *
*******************************************************/
load "PETSc"
macro dimension()2// EOM
include "macro_ddm.idp"
func Pk = P1;
border upper(t=0, pi) { x=cos(t); y=sin(t); label=1; }
border lower(t=pi, 2*pi) { x=cos(t); y=sin(t); label=2; }
mesh Th = buildmesh(upper(100) + lower(100));
Mat A;
MatCreate(Th, A, Pk);
plotDmesh(Th, cmm = "Domain decomposition");
fespace Vh(Th, Pk);
Vh u;
u[] = 0:Vh.ndof - 1;
plotD(Th, u, cmm = "Local numbering");
GlobalNumbering(A, u[]);
plotD(Th, u, cmm = "Global numbering");
$ FreeFem++-mpi example1.edp -v 0
WARNING! There are options you set that were not used!
WARNING! could be spelling mistake, etc!
There is one unused database option. It is:
Option left: name:-v value: 0 source: command line