summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/lib/rouge/demos/freefem
blob: 9205675dd884b2ef5bb0a6d2c54c354281db5597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include "MUMPS"

// Parameters
func f = 1.;

// Mesh
int nn = 25;	//Mesh quality
mesh Th = square(nn, nn);

// Fespace
func Pk = P2;
fespace Uh(Th, Pk);
Uh u;

// Plot
plot(u, nbiso=30, fill=true, value=true, cmm="A");