mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
GetNode returns constant value
This commit is contained in:
parent
9dc8aa9ffb
commit
7525e2c09b
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user