/usr/share/doc/rheolef-doc/examples/level_set_sphere.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 15 | #include "rheolef.h"
using namespace rheolef;
using namespace std;
#include "sphere.icc"
int main (int argc, char**argv) {
environment rheolef (argc,argv);
geo lambda (argv[1]);
level_set_option_type opts;
opts.split_to_triangle
= (argc > 2 && argv[2] == std::string("-tq")) ? false : true;
space Xh (lambda, "P1");
field phi_h = interpolate(Xh, phi);
geo gamma = level_set (phi_h, opts);
dout << gamma;
}
|