Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-grid
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
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
Core Modules
dune-grid
Commits
59023f74
Commit
59023f74
authored
8 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
Deprecate the OneDGrid::communicate methods
parent
16f21e0b
No related branches found
No related tags found
1 merge request
!91
Various OneDGrid cleanup patches
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/grid/onedgrid.hh
+2
-0
2 additions, 0 deletions
dune/grid/onedgrid.hh
dune/grid/onedgrid/onedgridviews.hh
+3
-7
3 additions, 7 deletions
dune/grid/onedgrid/onedgridviews.hh
with
5 additions
and
7 deletions
dune/grid/onedgrid.hh
+
2
−
0
View file @
59023f74
...
...
@@ -318,10 +318,12 @@ namespace Dune {
// dummy parallel functions
template
<
class
DataHandle
>
DUNE_DEPRECATED_MSG
(
"communicate() is deprecated. Use the method on the LevelGridView instead."
)
void
communicate
(
DataHandle
&
data
,
InterfaceType
iftype
,
CommunicationDirection
dir
,
int
level
)
const
{}
template
<
class
DataHandle
>
DUNE_DEPRECATED_MSG
(
"communicate() is deprecated. Use the method on the LeafGridView instead."
)
void
communicate
(
DataHandle
&
data
,
InterfaceType
iftype
,
CommunicationDirection
dir
)
const
{}
...
...
This diff is collapsed.
Click to expand it.
dune/grid/onedgrid/onedgridviews.hh
+
3
−
7
View file @
59023f74
...
...
@@ -185,9 +185,7 @@ namespace Dune
void
communicate
(
CommDataHandleIF
<
DataHandleImp
,
DataType
>
&
data
,
InterfaceType
iftype
,
CommunicationDirection
dir
)
const
{
return
grid
().
communicate
(
data
,
iftype
,
dir
,
level_
);
}
{}
private
:
const
Grid
*
grid_
;
...
...
@@ -360,14 +358,12 @@ namespace Dune
return
grid
().
ghostSize
(
codim
);
}
/**
c
ommunicate data on this view */
/**
\brief C
ommunicate data on this view
-- does nothing because OneDGrid is purely sequential
*/
template
<
class
DataHandleImp
,
class
DataType
>
void
communicate
(
CommDataHandleIF
<
DataHandleImp
,
DataType
>
&
data
,
InterfaceType
iftype
,
CommunicationDirection
dir
)
const
{
return
grid
().
communicate
(
data
,
iftype
,
dir
);
}
{}
private
:
const
Grid
*
grid_
;
...
...
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