/usr/share/doc/rheolef-doc/examples/proj_band.cc is in rheolef-doc 6.5-1build1.
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 16 | #include "rheolef.h"
using namespace std;
using namespace rheolef;
int main (int argc, char**argv) {
environment rheolef (argc, argv);
field phi_h;
din >> catchmark("phi") >> phi_h;
const space& Xh = phi_h.get_space();
band gamma_h (phi_h);
space Bh (gamma_h.band(), "P1");
field uh(Bh);
din >> catchmark("u") >> uh;
space Wh (gamma_h.level_set(), "P1");
gamma_h.level_set().save();
dout << interpolate (Wh, uh);
}
|