1
#include "boost/tuple/tuple.hpp"
5
using namespace dolfin;
7
int main(int args, char* argv[])
10
dolfin_set("linear algebra backend","MTL4");
12
// Create mesh and forms
13
UnitSquare mesh(2, 2);
15
PoissonBilinearForm a;
16
PoissonLinearForm L(f);
18
Assembler assembler(mesh);
21
assembler.assemble(A, a, false);
24
assembler.assemble(x, L);
36
cout << x.size() << endl;
41
for(int i=0; i<9; i++) cout << val[i] << " ";
52
dolfin::uint cols[2] = {0, 2};
55
for(int i=0; i<2; i++) cout << vval[i] << " ";
58
double dot = x.inner(x);