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
1d7401c8
Commit
1d7401c8
authored
Oct 23, 2020
by
Dennis Gläser
Committed by
Dennis Gläser
Mar 24, 2021
Browse files
[pdesolver] provide access to assembler/linear solver
parent
8bf983ed
Changes
1
Show whitespace changes
Inline
Side-by-side
dumux/common/pdesolver.hh
View file @
1d7401c8
...
...
@@ -64,16 +64,19 @@ using AssemblerVariables = typename VariablesChooser<Assembler>::Type;
* and has a method solve that linearizes (if not already linear), assembles, solves and updates
* given an initial solution producing a new solution.
*
* \tparam Assembler
A PDE
linearized system
assembler
* \tparam L
inearSolver A l
inear system solver
* \tparam
A
Assembler
for
linearized system
of the PDE
* \tparam L
S L
inear system solver
*/
template
<
class
A
ssembler
,
class
L
inearSolver
>
template
<
class
A
,
class
L
S
>
class
PDESolver
{
using
Scalar
=
typename
A
ssembler
::
Scalar
;
using
Scalar
=
typename
A
::
Scalar
;
using
TimeLoop
=
TimeLoopBase
<
Scalar
>
;
public:
//! export the assembler and linear solver types
using
Assembler
=
A
;
using
LinearSolver
=
LS
;
//! export the type of variables that represent a numerical solution
using
Variables
=
Detail
::
AssemblerVariables
<
Assembler
>
;
...
...
@@ -112,8 +115,6 @@ public:
solve
(
vars
);
}
protected:
/*!
* \brief Access the assembler
*/
...
...
@@ -132,6 +133,8 @@ protected:
const
LinearSolver
&
linearSolver
()
const
{
return
*
linearSolver_
;
}
protected:
/*!
* \brief Access the linear solver
*/
...
...
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