less ifdef PARALLEL

This commit is contained in:
Joachim Schöberl 2019-02-11 07:57:09 +01:00
parent 9500f8d8f2
commit 68c320fd53
2 changed files with 6 additions and 7 deletions

View File

@ -363,9 +363,8 @@ namespace netgen
int * const indices = NULL, int numind = 0) const; int * const indices = NULL, int numind = 0) const;
#ifdef PARALLEL // for MPI-parallel
std::tuple<int,int*> GetDistantProcs (int nodetype, int locnum) const; std::tuple<int,int*> GetDistantProcs (int nodetype, int locnum) const;
#endif
shared_ptr<Mesh> GetMesh () const { return mesh; } shared_ptr<Mesh> GetMesh () const { return mesh; }
shared_ptr<Mesh> SelectMesh () const; shared_ptr<Mesh> SelectMesh () const;

View File

@ -1245,11 +1245,11 @@ void Ngx_Mesh::SetSurfaceElementOrders (int enr, int ox, int oy)
#ifdef PARALLEL
std::tuple<int,int*> Ngx_Mesh :: GetDistantProcs (int nodetype, int locnum) const std::tuple<int,int*> Ngx_Mesh :: GetDistantProcs (int nodetype, int locnum) const
{ {
#ifdef PARALLEL
switch (nodetype) switch (nodetype)
{ {
case 0: case 0:
@ -1270,10 +1270,10 @@ void Ngx_Mesh::SetSurfaceElementOrders (int enr, int ox, int oy)
default: default:
return std::tuple<int,int*>(0,nullptr); return std::tuple<int,int*>(0,nullptr);
} }
} #else
return std::tuple<int,int*>(0,nullptr);
#endif #endif
}
} }