mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
paralleltop also in sequential version
This commit is contained in:
parent
fd77d17e2b
commit
76c0c52bed
@ -560,10 +560,10 @@ namespace netgen
|
|||||||
order = 1;
|
order = 1;
|
||||||
|
|
||||||
auto comm = mesh.GetCommunicator();
|
auto comm = mesh.GetCommunicator();
|
||||||
#ifdef PARALLEL
|
// #ifdef PARALLEL
|
||||||
enum { MPI_TAG_CURVE = MPI_TAG_MESH+20 };
|
enum { MPI_TAG_CURVE = MPI_TAG_MESH+20 };
|
||||||
const ParallelMeshTopology & partop = mesh.GetParallelTopology ();
|
const ParallelMeshTopology & partop = mesh.GetParallelTopology ();
|
||||||
#endif
|
//#endif
|
||||||
int ntasks = comm.Size();
|
int ntasks = comm.Size();
|
||||||
bool working = (ntasks == 1) || (comm.Rank() > 0);
|
bool working = (ntasks == 1) || (comm.Rank() > 0);
|
||||||
|
|
||||||
|
@ -150,10 +150,10 @@ namespace netgen
|
|||||||
mutable int ps_startelement;
|
mutable int ps_startelement;
|
||||||
|
|
||||||
|
|
||||||
#ifdef PARALLEL
|
// #ifdef PARALLEL
|
||||||
/// connection to parallel meshes
|
/// connection to parallel meshes
|
||||||
unique_ptr<ParallelMeshTopology> paralleltop;
|
unique_ptr<ParallelMeshTopology> paralleltop;
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
|
|
||||||
shared_ptr<NetgenGeometry> geometry;
|
shared_ptr<NetgenGeometry> geometry;
|
||||||
@ -903,12 +903,11 @@ namespace netgen
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef PARALLEL
|
|
||||||
/// returns parallel topology
|
/// returns parallel topology
|
||||||
class ParallelMeshTopology & GetParallelTopology () const
|
class ParallelMeshTopology & GetParallelTopology () const
|
||||||
{ return *paralleltop; }
|
{ return *paralleltop; }
|
||||||
|
|
||||||
|
#ifdef PARALLEL
|
||||||
/// distributes the master-mesh to local meshes
|
/// distributes the master-mesh to local meshes
|
||||||
void Distribute ();
|
void Distribute ();
|
||||||
void Distribute (NgArray<int> & volume_weights, NgArray<int> & surface_weights,
|
void Distribute (NgArray<int> & volume_weights, NgArray<int> & surface_weights,
|
||||||
|
Loading…
Reference in New Issue
Block a user