From fdb9d0392c339368b60fc4a9afef0c0dc40ab3be Mon Sep 17 00:00:00 2001 From: Gaetan Bricteux <gaetan.bricteux@uclouvain.be> Date: Thu, 20 Sep 2012 08:01:12 +0000 Subject: [PATCH] fix compile --- Geo/GModel.cpp | 3 ++- Geo/GModelIO_BDF.cpp | 2 ++ Geo/GModelIO_DIFF.cpp | 2 ++ Geo/GModelIO_MESH.cpp | 2 ++ Geo/GModelIO_PLY.cpp | 2 ++ Geo/GModelIO_UNV.cpp | 2 ++ Geo/GModelIO_VRML.cpp | 2 ++ 7 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp index e1cf2e06b1..8d2ece39a7 100644 --- a/Geo/GModel.cpp +++ b/Geo/GModel.cpp @@ -3,6 +3,7 @@ // See the LICENSE.txt file for license information. Please report all // bugs and problems to <gmsh@geuz.org>. +#include <limits> #include <stdlib.h> #include <sstream> #include <stack> @@ -578,7 +579,7 @@ int GModel::adaptMesh(std::vector<int> technique, char name[256]; sprintf(name, "meshAdapt-%d.msh", ITER); writeMSH(name); - //metric->exportInfo(name); + metric->exportInfo(name); if (ITER++ >= niter) break; if (ITER > 3 && fabs((double)(nbElems - nbElemsOld)) < 0.01 * nbElemsOld) break; diff --git a/Geo/GModelIO_BDF.cpp b/Geo/GModelIO_BDF.cpp index 23fee9d620..2decedd0e6 100644 --- a/Geo/GModelIO_BDF.cpp +++ b/Geo/GModelIO_BDF.cpp @@ -3,6 +3,8 @@ // See the LICENSE.txt file for license information. Please report all // bugs and problems to <gmsh@geuz.org>. +#include <stdlib.h> +#include <string.h> #include "GModel.h" #include "MPoint.h" #include "MLine.h" diff --git a/Geo/GModelIO_DIFF.cpp b/Geo/GModelIO_DIFF.cpp index 58cee819d8..079fe25b15 100644 --- a/Geo/GModelIO_DIFF.cpp +++ b/Geo/GModelIO_DIFF.cpp @@ -3,6 +3,8 @@ // See the LICENSE.txt file for license information. Please report all // bugs and problems to <gmsh@geuz.org>. +#include <stdlib.h> +#include <string.h> #include "GModel.h" #include "MElement.h" diff --git a/Geo/GModelIO_MESH.cpp b/Geo/GModelIO_MESH.cpp index dcd0b6ec0e..0081084e60 100644 --- a/Geo/GModelIO_MESH.cpp +++ b/Geo/GModelIO_MESH.cpp @@ -3,6 +3,8 @@ // See the LICENSE.txt file for license information. Please report all // bugs and problems to <gmsh@geuz.org>. +#include <stdlib.h> +#include <string.h> #include "GModel.h" #include "MLine.h" #include "MTriangle.h" diff --git a/Geo/GModelIO_PLY.cpp b/Geo/GModelIO_PLY.cpp index 44bd881771..408036ad62 100644 --- a/Geo/GModelIO_PLY.cpp +++ b/Geo/GModelIO_PLY.cpp @@ -3,6 +3,8 @@ // See the LICENSE.txt file for license information. Please report all // bugs and problems to <gmsh@geuz.org>. +#include <stdlib.h> +#include <string.h> #include "GmshConfig.h" #include "GModel.h" #include "MTriangle.h" diff --git a/Geo/GModelIO_UNV.cpp b/Geo/GModelIO_UNV.cpp index 1dc2a17e2c..132afebc1e 100644 --- a/Geo/GModelIO_UNV.cpp +++ b/Geo/GModelIO_UNV.cpp @@ -3,6 +3,8 @@ // See the LICENSE.txt file for license information. Please report all // bugs and problems to <gmsh@geuz.org>. +#include <stdlib.h> +#include <string.h> #include "GModel.h" #include "MLine.h" #include "MTriangle.h" diff --git a/Geo/GModelIO_VRML.cpp b/Geo/GModelIO_VRML.cpp index e17d956a7e..c93e9c63d6 100644 --- a/Geo/GModelIO_VRML.cpp +++ b/Geo/GModelIO_VRML.cpp @@ -3,6 +3,8 @@ // See the LICENSE.txt file for license information. Please report all // bugs and problems to <gmsh@geuz.org>. +#include <stdlib.h> +#include <string.h> #include "GModel.h" #include "MLine.h" #include "MTriangle.h" -- GitLab