mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Return useful values in Ng_GetNode<0> for 1d meshes
This commit is contained in:
parent
05add9530d
commit
1a64efc213
@ -189,8 +189,9 @@ template <> NGX_INLINE DLL_HEADER const Ng_Node<0> Ngx_Mesh :: GetNode<0> (int v
|
||||
node.elements.ne = ia.Size();
|
||||
node.elements.ptr = (int*)&ia[0];
|
||||
|
||||
node.bnd_elements.ne = 1; // nothing useful ...
|
||||
node.bnd_elements.ptr = nullptr;
|
||||
FlatArray<int> bia = mesh->GetTopology().GetVertexPointElements(vnr);
|
||||
node.bnd_elements.ne = bia.Size();
|
||||
node.bnd_elements.ptr = (int*)&bia[0];
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user