FEM: Update netgenplugin src files to fix builds with netgen >= 6.2.2601 (#27508)

This commit is contained in:
Chris
2026-02-13 11:50:04 -06:00
committed by GitHub
parent 9289e27230
commit e595cc49f2
2 changed files with 10 additions and 2 deletions

View File

@@ -126,7 +126,11 @@ namespace netgen {
#endif
//extern void OCCSetLocalMeshSize(OCCGeometry & geom, Mesh & mesh);
DLL_HEADER extern MeshingParameters mparam;
DLL_HEADER extern volatile multithreadt multithread;
#if NETGEN_VERSION >= NETGEN_VERSION_STRING(6,2,2601)
using ngcore::multithread;
#else
DLL_HEADER extern volatile multithreadt multithread;
#endif
DLL_HEADER extern bool merge_solids;
}

View File

@@ -112,7 +112,11 @@ namespace netgen {
DLL_HEADER extern int OCCGenerateMesh (OCCGeometry&, Mesh*&, int, int, char*);
#endif
DLL_HEADER extern MeshingParameters mparam;
DLL_HEADER extern volatile multithreadt multithread;
#if NETGEN_VERSION >= NETGEN_VERSION_STRING(6,2,2601)
using ngcore::multithread;
#else
DLL_HEADER extern volatile multithreadt multithread;
#endif
}
using namespace nglib;
using namespace std;