2
using namespace rheolef;
4
int main (int argc, char** argv) {
5
environment rheolef (argc, argv);
8
string valued = (uh.size() == 3) ? "vector" : "scalar";
9
space Ph (uh.get_geo(), "P2", valued);
10
Ph.block("top"); Ph.block("bottom");
11
if (uh.get_geo().dimension() == 3) {
12
Ph.block("back"); Ph.block("front");
14
Ph.block("left"); Ph.block("right");
16
const space& Xh = uh.get_space();
17
form a (Ph, Ph, "grad_grad");
18
form b (Xh, Ph, "curl");
22
psi_h.set_u() = sa.solve (lh.u() - a.ub()*psi_h.b());
23
dout << catchmark("psi") << psi_h;