Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-multidomaingrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
extensions
dune-multidomaingrid
Commits
afcb7fbd
Commit
afcb7fbd
authored
2 years ago
by
Santiago Ospina De Los Ríos
Browse files
Options
Downloads
Patches
Plain Diff
Use subIndex interface correctly and hide index set copy constructor
parent
4d4286af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!39
Use subIndex interface correctly and hide index set copy constructor
Pipeline
#54545
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/grid/multidomaingrid/indexsets.hh
+7
-7
7 additions, 7 deletions
dune/grid/multidomaingrid/indexsets.hh
with
7 additions
and
7 deletions
dune/grid/multidomaingrid/indexsets.hh
+
7
−
7
View file @
afcb7fbd
...
...
@@ -376,16 +376,15 @@ public:
}
//! Returns the subdindex of the i-th subentity of e with codimension codim.
template
<
int
codim
,
typename
Entity
>
IndexType
subIndex
(
const
Entity
&
e
,
int
i
)
const
{
return
_hostGridView
.
indexSet
().
subIndex
(
_grid
.
hostEntity
(
e
),
i
,
c
odim
);
template
<
int
codim
>
IndexType
subIndex
(
const
typename
Grid
::
Traits
::
template
Codim
<
codim
>
::
Entity
&
e
,
int
i
,
unsigned
int
cd
)
const
{
return
_hostGridView
.
indexSet
().
template
subIndex
<
codim
>
(
_grid
.
hostEntity
(
e
),
i
,
c
d
);
}
//! Returns the subdindex of the i-th subentity of e with codimension codim.
template
<
typename
Entity
>
IndexType
subIndex
(
const
Entity
&
e
,
int
i
,
unsigned
int
codim
)
const
{
IndexType
r
=
_hostGridView
.
indexSet
().
subIndex
(
_grid
.
hostEntity
(
e
),
i
,
codim
);
return
r
;
IndexType
subIndex
(
const
Entity
&
e
,
int
i
,
unsigned
int
cd
)
const
{
return
_hostGridView
.
indexSet
().
subIndex
(
_grid
.
hostEntity
(
e
),
i
,
cd
);
}
//! Returns a list of all geometry types with codimension codim contained in the grid.
...
...
@@ -677,13 +676,14 @@ public:
_hostGridView
(
hostGridView
)
{}
private
:
explicit
IndexSetWrapper
(
const
ThisType
&
rhs
)
:
_grid
(
rhs
.
_grid
),
_hostGridView
(
rhs
.
_hostGridView
),
_containers
(
rhs
.
_containers
)
{}
private
:
//! Returns the index map for the given codimension.
//! \tparam cc The requested codimension.
...
...
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