/usr/share/doc/rheolef-doc/examples/p_laplacian_circle.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 | struct u_exact {
Float operator() (const point& x) const {
return (1 - pow(norm2(x), p/(2*p-2)))/((p/(p-1))*pow(2.,1/(p-1)));
}
u_exact (Float q) : p(q) {}
protected: Float p;
};
struct grad_u {
point operator() (const point& x) const {
return - (pow(norm2(x), p/(2*p-2) - 1)/pow(2.,1/(p-1)))*x;
}
grad_u (Float q) : p(q) {}
protected: Float p;
};
|