DLL_HEADER for ng_comm

This commit is contained in:
Lukas 2019-02-01 16:12:30 +01:00
parent 5fafe3c36f
commit e880bff515
5 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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:

View File

@ -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

View File

@ -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)

View File

@ -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;
} }