Solution vector from Formulation::solve()
Hi everyone,
I'd like to access the whole solution vector of a Formulation
.
Is there already a handy way to do so?
I know we can play with FieldInterface::getUnknownValues()
and FieldInterface::getUnknownIndices()
, but that's not very convenient when there's more than one field.
If there's no simpler way to do so, this MR proposes to expose the solution vector by adding a Formulation::solve(bool, Vector)
method.
Any comments or changes are of course more than welcome :). Cheers, Nicolas.