Merge branch 'ng_comm_dll' into 'master'

DLL_HEADER for ng_comm

See merge request jschoeberl/netgen!125
This commit is contained in:
Matthias Hochsteger 2019-02-01 15:22:56 +00:00
commit fca2d40a3d
5 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

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