Dear all,
I need something easy, in theory: assemble two forms. Let's say I have two RHS forms, and only one LHS, right now I have this code, assembling just one form:
// Init variables
A.reset(new dolfin::PETScMatrix());
b.reset(new dolfin::PETScVector());
// Init assembler
assembler_.reset(new dolfin::SystemAssembler(dolfin::reference_to_no_delete_pointer(lhs), dolfin::reference_to_no_delete_pointer(rhs), bcsptr));
// Initial assmebly
assembler_->assemble(*A);
assembler_->assemble(*b);
What if now I want to keep A
, and assemble only another b
with another form with the same BCs?
Thanks!