Commit 49d40c4b authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

Merge branch 'fix/newton-solver' into 'master'

[newtonsolver] Pass shared_ptr by copy

See merge request !1144
parents e8944efa 7ea50938
......@@ -214,7 +214,7 @@ public:
* \brief Run the Newton method to solve a non-linear system.
* The solver is responsible for all the strategic decisions.
*/
void solve(SolutionVector& uCurrentIter, std::shared_ptr<ConvergenceWriter>& convWriter = nullptr)
void solve(SolutionVector& uCurrentIter, std::shared_ptr<ConvergenceWriter> convWriter = nullptr)
{
const bool converged = solve_(uCurrentIter, convWriter);
if (!converged)
......@@ -646,7 +646,7 @@ private:
* \brief Run the Newton method to solve a non-linear system.
* The solver is responsible for all the strategic decisions.
*/
bool solve_(SolutionVector& uCurrentIter, std::shared_ptr<ConvergenceWriter>& convWriter = nullptr)
bool solve_(SolutionVector& uCurrentIter, std::shared_ptr<ConvergenceWriter> convWriter = nullptr)
{
// the given solution is the initial guess
SolutionVector uLastIter(uCurrentIter);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment