/usr/share/doc/rheolef-doc/examples/dirichlet.icc is in rheolef-doc 6.5-1build1.
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 | void dirichlet (const field& lh, field& uh) {
const space& Xh = lh.get_space();
trial u (Xh); test v (Xh);
form a = integrate (dot(grad(u),grad(v)));
solver sa (a.uu());
uh.set_u() = sa.solve (lh.u() - a.ub()*uh.b());
}
|