/usr/share/doc/rheolef-doc/examples/eta.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 | struct eta : std::unary_function<Float,Float> {
Float operator() (const Float& z) const {
check_macro(z != 0 || p > 2, "eta: division by zero (HINT: check mesh)");
return pow(z, (p-2)/2);
}
Float derivative (const Float& z) const {
check_macro(z != 0 || p > 4, "eta': division by zero (HINT: check mesh)");
return 0.5*(p-2)*pow(z, (p-4)/2);
}
eta (const Float& q) : p(q) {}
Float p;
};
|