/usr/share/doc/rheolef-doc/examples/vorticity.cc 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 | #include "rheolef.h"
using namespace rheolef;
using namespace std;
int main(int argc, char** argv) {
environment rheolef (argc, argv);
field uh;
din >> uh;
const space& Xh = uh.get_space();
string grad_approx = "P" + itos(Xh.degree()-1) + "d";
string valued = (uh.size() == 3) ? "vector" : "scalar";
space Lh (uh.get_geo(), grad_approx, valued);
field curl_uh = interpolate (Lh, curl(uh));
dout << catchmark("w") << curl_uh;
}
|