mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
DLL_HEADER for ng_comm
This commit is contained in:
parent
5fafe3c36f
commit
e880bff515
@ -23,7 +23,7 @@ namespace netgen
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** This is the "standard" communicator that will be used for netgen-objects. **/
|
/** This is the "standard" communicator that will be used for netgen-objects. **/
|
||||||
extern MPI_Comm ng_comm;
|
extern DLL_HEADER MPI_Comm ng_comm;
|
||||||
|
|
||||||
#ifdef PARALLEL
|
#ifdef PARALLEL
|
||||||
inline int MyMPI_GetNTasks (MPI_Comm comm = ng_comm)
|
inline int MyMPI_GetNTasks (MPI_Comm comm = ng_comm)
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#ifndef PARALLEL
|
#ifndef PARALLEL
|
||||||
typedef int MPI_Comm;
|
typedef int MPI_Comm;
|
||||||
#endif
|
#endif
|
||||||
namespace netgen { extern MPI_Comm ng_comm; }
|
namespace netgen { extern DLL_HEADER MPI_Comm ng_comm; }
|
||||||
|
|
||||||
|
|
||||||
// implemented element types:
|
// implemented element types:
|
||||||
|
@ -29,7 +29,7 @@ enum NG_REFINEMENT_TYPE { NG_REFINE_H = 0, NG_REFINE_P = 1, NG_REFINE_HP = 2 };
|
|||||||
#ifndef PARALLEL
|
#ifndef PARALLEL
|
||||||
typedef int MPI_Comm;
|
typedef int MPI_Comm;
|
||||||
#endif
|
#endif
|
||||||
namespace netgen { extern MPI_Comm ng_comm; }
|
namespace netgen { extern DLL_HEADER MPI_Comm ng_comm; }
|
||||||
|
|
||||||
|
|
||||||
namespace netgen
|
namespace netgen
|
||||||
|
@ -32,7 +32,7 @@ namespace netgen
|
|||||||
// TraceGlobal glob2("global2");
|
// TraceGlobal glob2("global2");
|
||||||
|
|
||||||
// global communicator for netgen
|
// global communicator for netgen
|
||||||
MPI_Comm ng_comm = MPI_COMM_WORLD;
|
DLL_HEADER MPI_Comm ng_comm = MPI_COMM_WORLD;
|
||||||
|
|
||||||
weak_ptr<Mesh> global_mesh;
|
weak_ptr<Mesh> global_mesh;
|
||||||
void SetGlobalMesh (shared_ptr<Mesh> m)
|
void SetGlobalMesh (shared_ptr<Mesh> m)
|
||||||
|
@ -61,7 +61,7 @@ namespace netgen
|
|||||||
DLL_HEADER void SetGlobalMesh (shared_ptr<Mesh> m);
|
DLL_HEADER void SetGlobalMesh (shared_ptr<Mesh> m);
|
||||||
|
|
||||||
// global communicator for netgen (dummy if no MPI)
|
// global communicator for netgen (dummy if no MPI)
|
||||||
extern MPI_Comm ng_comm;
|
extern DLL_HEADER MPI_Comm ng_comm;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user