Skip to content
Snippets Groups Projects
Commit e87766f3 authored by Christian Engwer's avatar Christian Engwer Committed by Ansgar Burchardt
Browse files

Merge branch 'feature/avoid-calling-deprecated-size-methods' into 'master'

Avoid calling deprecated methods

This silences several compiler warnings from gcc 6.2.0 looking like this:

    dune/grid/common/grid.hh:730:45: warning:
    ‘int Dune::OneDGrid::overlapSize(int, int) const’ is deprecated:
    "overlapSize() is deprecated. Use the method on the
    LevelGridView instead." [-Wdeprecated-declarations]

See merge request !107
parent bbd9d1bc
No related branches found
No related tags found
2 merge requests!113Do not force grids to subclass Entity or Geometry,!110Merge branch 'feature/avoid-calling-deprecated-size-methods' into 'master'
Pipeline #
......@@ -726,32 +726,28 @@ namespace Dune {
DUNE_DEPRECATED_MSG("overlapSize() is deprecated. Use the method on the LevelGridView instead.")
int overlapSize (int level, int codim) const
{
CHECK_INTERFACE_IMPLEMENTATION(asImp().overlapSize(level,codim));
return asImp().overlapSize(level,codim);
return levelGridView(level).overlapSize(codim);
}
//! Return size of overlap region for a given codim on the leaf grid
DUNE_DEPRECATED_MSG("overlapSize() is deprecated. Use the method on the LeafGridView instead.")
int overlapSize (int codim) const
{
CHECK_INTERFACE_IMPLEMENTATION(asImp().overlapSize(codim));
return asImp().overlapSize(codim);
return leafGridView().overlapSize(codim);
}
//! Return size of ghost region for a given codim on a given level
DUNE_DEPRECATED_MSG("ghostSize() is deprecated. Use the method on the LevelGridView instead.")
int ghostSize (int level, int codim) const
{
CHECK_INTERFACE_IMPLEMENTATION(asImp().ghostSize(level,codim));
return asImp().ghostSize(level,codim);
return levelGridView(level).ghostSize(codim);
}
//! Return size of ghost region for a given codim on the leaf grid
DUNE_DEPRECATED_MSG("ghostSize() is deprecated. Use the method on the LeafGridView instead.")
int ghostSize (int codim) const
{
CHECK_INTERFACE_IMPLEMENTATION(asImp().ghostSize(codim));
return asImp().ghostSize(codim);
return leafGridView().ghostSize(codim);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment