Skip to content
Snippets Groups Projects
Commit d096ba88 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

[gridfactory] provide a comm() method

parent 9b9860fa
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,8 @@ namespace Dune ...@@ -65,6 +65,8 @@ namespace Dune
//! type of matrix from world coordinates to world coordinates //! type of matrix from world coordinates to world coordinates
typedef typename Transformation::WorldMatrix WorldMatrix; typedef typename Transformation::WorldMatrix WorldMatrix;
typedef typename Grid::CollectiveCommunication Communication;
private: private:
static_assert ( (elementType == tetra || elementType == hexa), static_assert ( (elementType == tetra || elementType == hexa),
"ALU3dGridFactory supports only grids containing " "ALU3dGridFactory supports only grids containing "
...@@ -318,6 +320,11 @@ namespace Dune ...@@ -318,6 +320,11 @@ namespace Dune
const std::vector<unsigned int>& ordering () const { return ordering_; } const std::vector<unsigned int>& ordering () const { return ordering_; }
Communication comm() const
{
return Communication(communicator_);
}
private: private:
unsigned int boundaryInsertionIndex ( const typename Codim< 0 >::Entity &entity, int face ) const unsigned int boundaryInsertionIndex ( const typename Codim< 0 >::Entity &entity, int face ) const
{ {
......
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