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
95429f9a
Commit
95429f9a
authored
4 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[bugfix][embedded] Fix index constants
parent
78496c41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2200
[bugfix][embedded] Fix index constants
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/multidomain/embedded/extendedsourcestencil.hh
+7
-9
7 additions, 9 deletions
dumux/multidomain/embedded/extendedsourcestencil.hh
with
7 additions
and
9 deletions
dumux/multidomain/embedded/extendedsourcestencil.hh
+
7
−
9
View file @
95429f9a
...
...
@@ -52,10 +52,8 @@ class ExtendedSourceStencil
template
<
std
::
size_t
id
>
using
GridView
=
typename
GridGeometry
<
id
>::
GridView
;
template
<
std
::
size_t
id
>
using
Element
=
typename
GridView
<
id
>::
template
Codim
<
0
>
::
Entity
;
template
<
std
::
size_t
id
>
static
constexpr
std
::
size_t
subDomainIdx
=
typename
MDTraits
::
template
SubDomain
<
id
>
::
Index
();
static
constexpr
std
::
size_t
bulkIdx
=
subDomainIdx
<
0
>
;
static
constexpr
std
::
size_t
lowDimIdx
=
subDomainIdx
<
1
>
;
static
constexpr
auto
bulkIdx
=
typename
MDTraits
::
template
SubDomain
<
0
>
::
Index
();
static
constexpr
auto
lowDimIdx
=
stypename
MDTraits
::
template
SubDomain
<
1
>
::
Index
();
template
<
std
::
size_t
id
>
static
constexpr
bool
isBox
()
...
...
@@ -169,16 +167,16 @@ public:
private
:
//! the extended source stencil due to the source average (always empty for lowdim, but may be filled for bulk)
template
<
std
::
size_t
id
>
const
auto
&
extendedSourceStencil_
(
const
CouplingManager
&
couplingManager
,
Dune
::
index_constant
<
id
>
bulkD
omain
,
const
Element
<
id
>&
bulkE
lement
)
const
const
auto
&
extendedSourceStencil_
(
const
CouplingManager
&
couplingManager
,
Dune
::
index_constant
<
id
>
d
omain
Id
,
const
Element
<
id
>&
e
lement
)
const
{
if
constexpr
(
subDomainIdx
<
id
>
==
bulkIdx
)
if
constexpr
(
id
==
bulkIdx
()
)
{
const
auto
bulkElementIdx
=
couplingManager
.
problem
(
bulkIdx
).
gridGeometry
().
elementMapper
().
index
(
bulkE
lement
);
const
auto
bulkElementIdx
=
couplingManager
.
problem
(
bulkIdx
).
gridGeometry
().
elementMapper
().
index
(
e
lement
);
if
(
sourceStencils_
.
count
(
bulkElementIdx
))
return
sourceStencils_
.
at
(
bulkElementIdx
);
}
return
couplingManager
.
emptyStencil
(
subD
omainId
x
<
id
>
);
return
couplingManager
.
emptyStencil
(
d
omainId
);
}
//! the additional stencil for the kernel evaluations / circle averages
...
...
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