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
2f04955e
Commit
2f04955e
authored
6 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[multidomain] Add GridVariables alias in FVAssembler
parent
42ff4f83
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1337
WIP Fix/dirichlet caching v2
,
!1330
Feature/improve privar switch
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/multidomain/fvassembler.hh
+6
-2
6 additions, 2 deletions
dumux/multidomain/fvassembler.hh
with
6 additions
and
2 deletions
dumux/multidomain/fvassembler.hh
+
6
−
2
View file @
2f04955e
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#define DUMUX_MULTIDOMAIN_FV_ASSEMBLER_HH
#define DUMUX_MULTIDOMAIN_FV_ASSEMBLER_HH
#include
<type_traits>
#include
<type_traits>
#include
<tuple>
#include
<dune/common/hybridutilities.hh>
#include
<dune/common/hybridutilities.hh>
#include
<dune/istl/matrixindexset.hh>
#include
<dune/istl/matrixindexset.hh>
...
@@ -67,6 +68,9 @@ public:
...
@@ -67,6 +68,9 @@ public:
template
<
std
::
size_t
id
>
template
<
std
::
size_t
id
>
using
LocalResidual
=
GetPropType
<
SubDomainTypeTag
<
id
>
,
Properties
::
LocalResidual
>
;
using
LocalResidual
=
GetPropType
<
SubDomainTypeTag
<
id
>
,
Properties
::
LocalResidual
>
;
template
<
std
::
size_t
id
>
using
GridVariables
=
typename
std
::
tuple_element_t
<
id
,
typename
MDTraits
::
GridVariablesTuple
>::
element_type
;
using
JacobianMatrix
=
typename
MDTraits
::
JacobianMatrix
;
using
JacobianMatrix
=
typename
MDTraits
::
JacobianMatrix
;
using
SolutionVector
=
typename
MDTraits
::
SolutionVector
;
using
SolutionVector
=
typename
MDTraits
::
SolutionVector
;
using
ResidualType
=
SolutionVector
;
using
ResidualType
=
SolutionVector
;
...
@@ -337,12 +341,12 @@ public:
...
@@ -337,12 +341,12 @@ public:
//! the grid variables of domain i
//! the grid variables of domain i
template
<
std
::
size_t
i
>
template
<
std
::
size_t
i
>
auto
&
gridVariables
(
Dune
::
index_constant
<
i
>
domainId
)
GridVariables
<
i
>
&
gridVariables
(
Dune
::
index_constant
<
i
>
domainId
)
{
return
*
std
::
get
<
domainId
>
(
gridVariablesTuple_
);
}
{
return
*
std
::
get
<
domainId
>
(
gridVariablesTuple_
);
}
//! the grid variables of domain i
//! the grid variables of domain i
template
<
std
::
size_t
i
>
template
<
std
::
size_t
i
>
const
auto
&
gridVariables
(
Dune
::
index_constant
<
i
>
domainId
)
const
const
GridVariables
<
i
>
&
gridVariables
(
Dune
::
index_constant
<
i
>
domainId
)
const
{
return
*
std
::
get
<
domainId
>
(
gridVariablesTuple_
);
}
{
return
*
std
::
get
<
domainId
>
(
gridVariablesTuple_
);
}
//! the coupling manager
//! the coupling manager
...
...
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