mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
GetParentNodes in impl.hpp file
This commit is contained in:
parent
6034f6ecc3
commit
ba620a5b41
@ -311,5 +311,18 @@ NGX_INLINE DLL_HEADER Ng_Buffer<int[2]> Ngx_Mesh :: GetPeriodicVertices(int idnr
|
||||
}
|
||||
|
||||
|
||||
NGX_INLINE void Ngx_Mesh :: GetParentNodes (int ni, int * parents) const
|
||||
{
|
||||
ni++;
|
||||
if (ni <= mesh->mlbetweennodes.Size())
|
||||
{
|
||||
parents[0] = mesh->mlbetweennodes.Get(ni).I1()-1;
|
||||
parents[1] = mesh->mlbetweennodes.Get(ni).I2()-1;
|
||||
}
|
||||
else
|
||||
parents[0] = parents[1] = -1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
inline auto Ngx_Mesh :: GetTimeStamp() const { return mesh->GetTimeStamp(); }
|
||||
|
@ -675,19 +675,6 @@ namespace netgen
|
||||
}
|
||||
|
||||
|
||||
void Ngx_Mesh :: GetParentNodes (int ni, int * parents) const
|
||||
{
|
||||
ni++;
|
||||
if (ni <= mesh->mlbetweennodes.Size())
|
||||
{
|
||||
parents[0] = mesh->mlbetweennodes.Get(ni).I1()-1;
|
||||
parents[1] = mesh->mlbetweennodes.Get(ni).I2()-1;
|
||||
}
|
||||
else
|
||||
parents[0] = parents[1] = -1;
|
||||
}
|
||||
|
||||
|
||||
int Ngx_Mesh :: GetParentElement (int ei) const
|
||||
{
|
||||
ei++;
|
||||
|
Loading…
Reference in New Issue
Block a user