Suppose I have 2 PDE's, say:
a1 = inner(grad(u), grad(v))dx
b1 = 5v*dx
and
a2 = inner(25grad(u), grad(v))dx
b2 = 20vdx
Now I assemble these as follows:
A1 = assemble(a1)
L1 = assemble(b1)
A2 = assemble(a2)
L2 = assemble(b2)
Now, I want to access the values stored in matrices A1, A2 and form a new matrix A using A1 and A2. This A is finally to be used to solve PDE for u.
for ex: solve (A, u.vector(), L1)
Is this possible..?