/usr/share/doc/freefem++/examples/examples++-load/metis.edp is in freefem++-doc 3.19.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | load "metis"
mesh Th=square(100,100);
fespace Ph(Th,P0);
int[int] nupart(Th.nt);
Ph part;
metisnodal(nupart,Th,100);
for(int i=0;i<nupart.n;++i)
part[][i]=nupart[i];
plot(part,fill=1,cmm="nodal",wait=1);
metisdual(nupart,Th,100);
for(int i=0;i<nupart.n;++i)
part[][i]=nupart[i];
plot(part,fill=1,cmm="dual",wait=1);
|