Use new function FixedSize for DataHandles with DUNE 2.8.

The lower case version is deprecated now and will be removed.
This commit is contained in:
Markus Blatt
2021-08-26 15:53:47 +02:00
parent 7fb622bba6
commit 1c203cd504
3 changed files with 28 additions and 0 deletions

View File

@@ -58,7 +58,11 @@ public:
return codim == commCodim; return codim == commCodim;
} }
#if DUNE_VERSION_LT(DUNE_GRID, 2, 8)
bool fixedsize(int, int) const bool fixedsize(int, int) const
#else
bool fixedSize(int, int) const
#endif
{ {
// for each DOF we communicate a single value which has a // for each DOF we communicate a single value which has a
// fixed size // fixed size
@@ -118,7 +122,11 @@ public:
return codim == commCodim; return codim == commCodim;
} }
#if DUNE_VERSION_LT(DUNE_GRID, 2, 8)
bool fixedsize(int, int) const bool fixedsize(int, int) const
#else
bool fixedSize(int, int) const
#endif
{ {
// for each DOF we communicate a single value which has a // for each DOF we communicate a single value which has a
// fixed size // fixed size
@@ -173,7 +181,11 @@ public:
return codim == commCodim; return codim == commCodim;
} }
#if DUNE_VERSION_LT(DUNE_GRID, 2, 8)
bool fixedsize(int, int) const bool fixedsize(int, int) const
#else
bool fixedSize(int, int) const
#endif
{ {
// for each DOF we communicate a single value which has a // for each DOF we communicate a single value which has a
// fixed size // fixed size
@@ -230,7 +242,11 @@ public:
return codim == commCodim; return codim == commCodim;
} }
#if DUNE_VERSION_LT(DUNE_GRID, 2, 8)
bool fixedsize(int, int) const bool fixedsize(int, int) const
#else
bool fixedSize(int, int) const
#endif
{ {
// for each DOF we communicate a single value which has a // for each DOF we communicate a single value which has a
// fixed size // fixed size

View File

@@ -84,7 +84,11 @@ class ElementBorderListFromGrid
bool contains(int, int codim) const bool contains(int, int codim) const
{ return codim == 0; } { return codim == 0; }
#if DUNE_VERSION_LT(DUNE_GRID, 2, 8)
bool fixedsize(int, int) const bool fixedsize(int, int) const
#else
bool fixedSize(int, int) const
#endif
{ return true; } { return true; }
template <class EntityType> template <class EntityType>
@@ -174,7 +178,11 @@ class ElementBorderListFromGrid
bool contains(int, int codim) const bool contains(int, int codim) const
{ return codim == 0; } { return codim == 0; }
#if DUNE_VERSION_LT(DUNE_GRID, 2, 8)
bool fixedsize(int, int) const bool fixedsize(int, int) const
#else
bool fixedSize(int, int) const
#endif
{ return true; } { return true; }
template <class EntityType> template <class EntityType>

View File

@@ -83,7 +83,11 @@ public:
bool contains(int dim, int codim) const bool contains(int dim, int codim) const
{ return dim == codim; } { return dim == codim; }
#if DUNE_VERSION_LT(DUNE_GRID, 2, 8)
bool fixedsize(int, int) const bool fixedsize(int, int) const
#else
bool fixedSize(int, int) const
#endif
{ return true; } { return true; }
template <class EntityType> template <class EntityType>