Skip to content
Snippets Groups Projects
Commit c1998c75 authored by Oliver Sander's avatar Oliver Sander
Browse files

Deprecate the methods ghostSize and overlapSize of the OneDGrid class

They are already deprecated in the interface class.  Since few people
actually use the interface class, let's deprecate the methods on the
implementation class OneDGrid as well.
parent 59023f74
No related branches found
No related tags found
1 merge request!91Various OneDGrid cleanup patches
Pipeline #
......@@ -212,24 +212,28 @@ namespace Dune {
/** \brief The processor overlap for parallel computing. Always zero because
this is a strictly sequential grid */
DUNE_DEPRECATED_MSG("overlapSize() is deprecated. Use the method on the LeafGridView instead.")
int overlapSize(int codim) const {
return 0;
}
/** \brief The processor ghost overlap for parallel computing. Always zero because
this is a strictly sequential grid */
DUNE_DEPRECATED_MSG("ghostSize() is deprecated. Use the method on the LeafGridView instead.")
int ghostSize(int codim) const {
return 0;
}
/** \brief The processor overlap for parallel computing. Always zero because
this is a strictly sequential grid */
DUNE_DEPRECATED_MSG("overlapSize() is deprecated. Use the method on the LevelGridView instead.")
int overlapSize(int level, int codim) const {
return 0;
}
/** \brief The processor ghost overlap for parallel computing. Always zero because
this is a strictly sequential grid */
DUNE_DEPRECATED_MSG("ghostSize() is deprecated. Use the method on the LevelGridView instead.")
int ghostSize(int level, int codim) const {
return 0;
}
......
......@@ -171,13 +171,13 @@ namespace Dune
/** \brief Return size of the overlap region for a given codim on the grid view. */
int overlapSize(int codim) const
{
return grid().overlapSize(level_, codim);
return 0;
}
/** \brief Return size of the ghost region for a given codim on the grid view. */
int ghostSize(int codim) const
{
return grid().ghostSize(level_, codim);
return 0;
}
/** communicate data on this view */
......@@ -349,13 +349,13 @@ namespace Dune
/** \brief Return size of the overlap region for a given codim on the grid view. */
int overlapSize(int codim) const
{
return grid().overlapSize(codim);
return 0;
}
/** \brief Return size of the ghost region for a given codim on the grid view. */
int ghostSize(int codim) const
{
return grid().ghostSize(codim);
return 0;
}
/** \brief Communicate data on this view -- does nothing because OneDGrid is purely sequential */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment