diff --git a/libsrc/meshing/global.cpp b/libsrc/meshing/global.cpp index f01a0ab8..4a6237c3 100644 --- a/libsrc/meshing/global.cpp +++ b/libsrc/meshing/global.cpp @@ -88,7 +88,8 @@ namespace netgen DebugParameters debugparam; bool verbose = 0; - int timestamp = 0; + size_t timestamp = 0; + /* int GetTimeStamp() { return timestamp; @@ -99,4 +100,5 @@ namespace netgen timestamp++; return timestamp; } + */ } diff --git a/libsrc/meshing/meshtype.hpp b/libsrc/meshing/meshtype.hpp index 1471c541..fe2b98af 100644 --- a/libsrc/meshing/meshtype.hpp +++ b/libsrc/meshing/meshtype.hpp @@ -54,10 +54,22 @@ namespace netgen enum OPTIMIZEGOAL { OPT_QUALITY, OPT_CONFORM, OPT_REST, OPT_WORSTCASE, OPT_LEGAL }; + extern size_t timestamp; + inline size_t GetTimeStamp() + { + return timestamp; + } + inline size_t NextTimeStamp() + { + timestamp++; + return timestamp; + } + + /* extern DLL_HEADER int GetTimeStamp(); extern DLL_HEADER int NextTimeStamp(); - + */ class PointGeomInfo { public: