/usr/share/doc/rheolef-doc/examples/p_laplacian2.icc is in rheolef-doc 6.5-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 16 17 18 19 20 | Float p_laplacian::dual_space_norm (const field& mrh) const {
field rh (Xh, 0);
rh.set_u() = sm.solve (mrh.u());
return rh.max_abs();
}
Float p_laplacian::space_norm (const field& uh) const {
return sqrt (m(uh,uh));
}
Float p_laplacian::duality_product (const field& mrh, const field& msh) const {
field rh (Xh, 0);
rh.set_u() = sm.solve (mrh.u());
return dual (rh, msh);
}
field p_laplacian::derivative_trans_mult (const field& mrh) const {
field rh (Xh, 0);
rh.set_u() = sm.solve(mrh.u());
field mgh = a1*rh;
mgh.set_b() = 0;
return mgh;
}
|