Skip to content
Snippets Groups Projects
Commit 59635f68 authored by Robert Kloefkorn's avatar Robert Kloefkorn
Browse files

make compile with dune-alugrid.

parent a319e66e
No related branches found
No related tags found
No related merge requests found
......@@ -227,29 +227,8 @@ protected:
enum { dim = GridType :: dimension };
#ifdef GRAPHVERTEX_WITH_CENTER
double center[ 3 ] = { 0.0, 0.0, 0.0 };
{
typedef typename GridType :: ctype ctype;
const Dune::ReferenceElement< ctype, dim > & refElem =
Dune::ReferenceElements< ctype, dim>::general(entity.type());
FieldVector<ctype, dim> c =
entity.geometry().global( refElem.position(0,0) );
for( int i = 0; i < dim ; ++ i )
{
center[ i ] = c[ i ];
}
}
#endif
db.vertexUpdate ( typename LoadBalancerType ::
GraphVertex ( getIndex( entity ), weight
#ifdef GRAPHVERTEX_WITH_CENTER
, center
#endif
) ) ;
GraphVertex ( getIndex( entity ), weight ) );
++graphSize_;
}
......
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