Skip to content

Solution vector from Formulation::solve()

Nicolas Marsic requested to merge rawSolution into master

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.

Merge request reports

Loading