Skip to content
Snippets Groups Projects
Commit 25bbbe93 authored by Oliver Sander's avatar Oliver Sander
Browse files

Don't mix up grid dimension and world dimension

Otherwise the code won't compile when the two dimensions differ.
parent c554e576
No related branches found
No related tags found
No related merge requests found
......@@ -168,15 +168,16 @@ public:
#endif
static const int dim = GridType::dimension;
static const int dimworld = GridType::dimensionworld;
typedef typename GridViewType :: template Codim<dim> :: Iterator NodeIterator;
typedef typename GridType :: template Codim<dim> :: Geometry NodeGeometry;
typedef Dune::FieldVector<double, dim> DomainPointType; // type of point in the domain
typedef Node< DomainPointType , dim > NodeType; // type of nodes
typedef Dune::FieldVector<double, dimworld> DomainPointType; // type of point in the domain
typedef Dune::FieldVector<typename GridType::ctype, dimworld> CoordinateType;
typedef Node< CoordinateType, dim > NodeType; // type of nodes
typedef std::vector< NodeType > NodeListType; // array type list of nodes
typedef Dune::FieldVector<typename GridType::ctype, GridType::dimensionworld> CoordinateType;
const GridViewType gridView_;
......@@ -226,7 +227,7 @@ private:
{
const NodeGeometry& node_geometry = node->geometry();
DomainPointType global_coordinate_node = node_geometry.corner(0);
CoordinateType global_coordinate_node = node_geometry.corner(0);
node_list_[idSet.index(*node)].set_node_index( idSet.index(*node) );
node_list_[idSet.index(*node)].set_permuted_node_index( idSet.index(*node) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment