Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-metagrid
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
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-metagrid
Commits
9b905bd9
Commit
9b905bd9
authored
3 years ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
Remove some EntityPointers
parent
eddf2126
No related branches found
No related tags found
1 merge request
!2
Some updates for parallelgrid
Pipeline
#37193
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/grid/parallelgrid/communication.hh
+4
-8
4 additions, 8 deletions
dune/grid/parallelgrid/communication.hh
with
4 additions
and
8 deletions
dune/grid/parallelgrid/communication.hh
+
4
−
8
View file @
9b905bd9
...
@@ -189,7 +189,6 @@ namespace Dune
...
@@ -189,7 +189,6 @@ namespace Dune
{
{
typedef
typename
Grid
::
template
Codim
<
0
>
::
Entity
Element
;
typedef
typename
Grid
::
template
Codim
<
0
>
::
Entity
Element
;
typedef
typename
Grid
::
template
Codim
<
codim
>
::
EntityPointer
EntityPointer
;
typedef
typename
Grid
::
template
Codim
<
codim
>
::
Entity
Entity
;
typedef
typename
Grid
::
template
Codim
<
codim
>
::
Entity
Entity
;
template
<
class
DataHandleIF
>
template
<
class
DataHandleIF
>
...
@@ -204,12 +203,11 @@ namespace Dune
...
@@ -204,12 +203,11 @@ namespace Dune
const
bool
variableSize
=
!
dataHandle
.
fixedSize
(
HostGrid
::
dimension
,
codim
);
const
bool
variableSize
=
!
dataHandle
.
fixedSize
(
HostGrid
::
dimension
,
codim
);
const
int
numSubEntities
=
element
.
template
count
<
codim
>(
);
const
int
numSubEntities
=
element
.
subEntities
(
codim
);
for
(
int
subEntity
=
0
;
subEntity
<
numSubEntities
;
++
subEntity
)
for
(
int
subEntity
=
0
;
subEntity
<
numSubEntities
;
++
subEntity
)
{
{
// get subentity
// get subentity
EntityPointer
entityPtr
=
element
.
template
subEntity
<
codim
>(
subEntity
);
const
Entity
&
entity
=
element
.
template
subEntity
<
codim
>(
subEntity
);
const
Entity
&
entity
=
*
entityPtr
;
// get partition info
// get partition info
const
PartitionInfo
&
info
=
rankManager
.
partitionInfo
(
entity
.
impl
().
hostEntity
()
);
const
PartitionInfo
&
info
=
rankManager
.
partitionInfo
(
entity
.
impl
().
hostEntity
()
);
...
@@ -246,7 +244,6 @@ namespace Dune
...
@@ -246,7 +244,6 @@ namespace Dune
{
{
typedef
typename
Grid
::
template
Codim
<
0
>
::
Entity
Element
;
typedef
typename
Grid
::
template
Codim
<
0
>
::
Entity
Element
;
typedef
typename
Grid
::
template
Codim
<
codim
>
::
EntityPointer
EntityPointer
;
typedef
typename
Grid
::
template
Codim
<
codim
>
::
Entity
Entity
;
typedef
typename
Grid
::
template
Codim
<
codim
>
::
Entity
Entity
;
template
<
class
DataHandleIF
>
template
<
class
DataHandleIF
>
...
@@ -263,12 +260,11 @@ namespace Dune
...
@@ -263,12 +260,11 @@ namespace Dune
const
bool
variableSize
=
!
dataHandle
.
fixedSize
(
dimension
,
codim
);
const
bool
variableSize
=
!
dataHandle
.
fixedSize
(
dimension
,
codim
);
// get number of sub entities
// get number of sub entities
const
int
numSubEntities
=
element
.
template
count
<
codim
>(
);
const
int
numSubEntities
=
element
.
subEntities
(
codim
);
for
(
int
subEntity
=
0
;
subEntity
<
numSubEntities
;
++
subEntity
)
for
(
int
subEntity
=
0
;
subEntity
<
numSubEntities
;
++
subEntity
)
{
{
// get subentity
// get subentity
EntityPointer
entityPtr
=
element
.
template
subEntity
<
codim
>(
subEntity
);
const
Entity
&
entity
=
element
.
template
subEntity
<
codim
>(
subEntity
);
const
Entity
&
entity
=
*
entityPtr
;
// get partition info
// get partition info
const
PartitionInfo
&
info
=
rankManager
.
partitionInfo
(
entity
.
impl
().
hostEntity
()
);
const
PartitionInfo
&
info
=
rankManager
.
partitionInfo
(
entity
.
impl
().
hostEntity
()
);
...
...
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