Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
1d7401c8
Commit
1d7401c8
authored
4 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[pdesolver] provide access to assembler/linear solver
parent
8bf983ed
No related branches found
No related tags found
1 merge request
!2296
Feature/timestep methods
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/common/pdesolver.hh
+9
-6
9 additions, 6 deletions
dumux/common/pdesolver.hh
with
9 additions
and
6 deletions
dumux/common/pdesolver.hh
+
9
−
6
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
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment