24#ifndef DUMUX_DISCRETIZATION_CHECK_OVERLAP_SIZE_HH
25#define DUMUX_DISCRETIZATION_CHECK_OVERLAP_SIZE_HH
38template<DiscretizationMethod discMethod>
41 template<
class Gr
idView>
42 static bool isValid(
const GridView& gridView)
noexcept
43 {
return gridView.comm().size() <= 1 || gridView.overlapSize(0) + gridView.ghostSize(0) > 0; }
50 template<
class Gr
idView>
51 static bool isValid(
const GridView& gridView)
noexcept
52 {
return gridView.comm().size() <= 1 || gridView.overlapSize(0) == 0; }
60 template<
class FEBasis>
61 static bool isValid(
const FEBasis& feBasis)
noexcept
62 {
return feBasis.gridView().comm().size() <= 1 || feBasis.gridView().overlapSize(0) == 0; }
The available discretization methods in Dumux.
DiscretizationMethod
The available discretization methods in Dumux.
Definition: method.hh:37
Check if the overlap size is valid for a given discretization method.
Definition: checkoverlapsize.hh:40
static bool isValid(const GridView &gridView) noexcept
Definition: checkoverlapsize.hh:42
static bool isValid(const GridView &gridView) noexcept
Definition: checkoverlapsize.hh:51
static bool isValid(const FEBasis &feBasis) noexcept
Definition: checkoverlapsize.hh:61