Skip to content
Snippets Groups Projects
Commit e46d5bd1 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/subgrid-boundary-index' into 'master'

[disc] Throw not implemented for sub-grid boundary segment index in scvf

See merge request !1078
parents e39a50c5 a3679f8f
No related branches found
No related tags found
1 merge request!1078[disc] Throw not implemented for sub-grid boundary segment index in scvf
......@@ -31,6 +31,12 @@
#include <dune/alugrid/grid.hh>
#endif
// dune-subgrid specific includes
#if HAVE_DUNE_SUBGRID
#include <dune/subgrid/subgrid.hh>
#endif
namespace Dumux {
/*!
......@@ -85,6 +91,27 @@ private:
};
#endif
#if HAVE_DUNE_SUBGRID
//! dune-subgrid doesn't have this implemented
template<int dim, class HostGrid>
class BoundaryFlag<Dune::SubGrid<dim, HostGrid>>
{
public:
BoundaryFlag() : flag_(-1) {}
template<class Intersection>
BoundaryFlag(const Intersection& i) : flag_(-1) {}
using value_type = int;
value_type get() const
{ DUNE_THROW(Dune::NotImplemented, "Sub-grid doesn't implement boundary segment indices!"); }
private:
int flag_;
};
#endif
} // end namespace Dumux
#endif
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