Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
49d40c4b
Commit
49d40c4b
authored
Jul 25, 2018
by
Bernd Flemisch
Browse files
Merge branch 'fix/newton-solver' into 'master'
[newtonsolver] Pass shared_ptr by copy See merge request
!1144
parents
e8944efa
7ea50938
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/nonlinear/newtonsolver.hh
View file @
49d40c4b
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment