/usr/share/doc/rheolef-doc/examples/p_laplacian2.icc is in rheolef-doc 6.7-6.
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 | 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;
}
Float p_laplacian::space_norm (const field& uh) const {
return sqrt (m(uh,uh));
}
Float p_laplacian::dual_space_norm (const field& mrh) const {
field rh (Xh, 0);
rh.set_u() = sm.solve (mrh.u());
return sqrt (dual(mrh, rh));
}
|