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
7ea50938
Commit
7ea50938
authored
Jul 25, 2018
by
Kilian Weishaupt
Browse files
[newtonsolver] Pass shared_ptr by copy
* won't compile otherwise
parent
e8944efa
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/nonlinear/newtonsolver.hh
View file @
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
);
...
...
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