mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
DLL_HEADER for ng_comm
This commit is contained in:
parent
5fafe3c36f
commit
e880bff515
@ -23,7 +23,7 @@ namespace netgen
|
||||
#endif
|
||||
|
||||
/** 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
|
||||
inline int MyMPI_GetNTasks (MPI_Comm comm = ng_comm)
|
||||
|
@ -40,7 +40,7 @@
|
||||
#ifndef PARALLEL
|
||||
typedef int MPI_Comm;
|
||||
#endif
|
||||
namespace netgen { extern MPI_Comm ng_comm; }
|
||||
namespace netgen { extern DLL_HEADER MPI_Comm ng_comm; }
|
||||
|
||||
|
||||
// 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
|
||||
typedef int MPI_Comm;
|
||||
#endif
|
||||
namespace netgen { extern MPI_Comm ng_comm; }
|
||||
namespace netgen { extern DLL_HEADER MPI_Comm ng_comm; }
|
||||
|
||||
|
||||
namespace netgen
|
||||
|
@ -32,7 +32,7 @@ namespace netgen
|
||||
// TraceGlobal glob2("global2");
|
||||
|
||||
// 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;
|
||||
void SetGlobalMesh (shared_ptr<Mesh> m)
|
||||
|
@ -61,7 +61,7 @@ namespace netgen
|
||||
DLL_HEADER void SetGlobalMesh (shared_ptr<Mesh> m);
|
||||
|
||||
// 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