GetNode returns constant value

This commit is contained in:
Matthias 2016-03-22 18:16:04 +01:00
parent 9dc8aa9ffb
commit 7525e2c09b
2 changed files with 4 additions and 4 deletions

View File

@ -240,7 +240,7 @@ namespace netgen
template <int DIM>
Ng_Node<DIM> GetNode (int nr) const;
const Ng_Node<DIM> GetNode (int nr) const;
template <int DIM>

View File

@ -612,7 +612,7 @@ namespace netgen
return mesh->GetTopology().GetNFaces();
}
template <> DLL_HEADER Ng_Node<0> Ngx_Mesh :: GetNode<0> (int vnr) const
template <> DLL_HEADER const Ng_Node<0> Ngx_Mesh :: GetNode<0> (int vnr) const
{
Ng_Node<0> node;
vnr++;
@ -646,14 +646,14 @@ namespace netgen
}
template <> DLL_HEADER Ng_Node<1> Ngx_Mesh :: GetNode<1> (int nr) const
template <> DLL_HEADER const Ng_Node<1> Ngx_Mesh :: GetNode<1> (int nr) const
{
Ng_Node<1> node;
node.vertices.ptr = mesh->GetTopology().GetEdgeVerticesPtr(nr);
return node;
}
template <> DLL_HEADER Ng_Node<2> Ngx_Mesh :: GetNode<2> (int nr) const
template <> DLL_HEADER const Ng_Node<2> Ngx_Mesh :: GetNode<2> (int nr) const
{
Ng_Node<2> node;
node.vertices.ptr = mesh->GetTopology().GetFaceVerticesPtr(nr);