From db526b40cf0618a333929e08c04b0e2e2cd4ff68 Mon Sep 17 00:00:00 2001 From: Gaetan Compere <gaetan.compere@siemens.com> Date: Wed, 21 Mar 2012 11:45:48 +0000 Subject: [PATCH] Rudi Peeters: Added function round since it does not exist in the Visual Studio 2010 math library. --- Geo/GFaceCompound.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Geo/GFaceCompound.cpp b/Geo/GFaceCompound.cpp index ec56ef6b80..5b13c75860 100644 --- a/Geo/GFaceCompound.cpp +++ b/Geo/GFaceCompound.cpp @@ -46,6 +46,13 @@ #include "Numeric.h" #include "meshGFace.h" +#if AE_COMPILER==AE_MSVC +int round(double number) +{ + return (number >= 0) ? (int)(number + 0.5) : (int)(number - 0.5); +} +#endif + static void fixEdgeToValue(GEdge *ed, double value, dofManager<double> &myAssembler) { myAssembler.fixVertex(ed->getBeginVertex()->mesh_vertices[0], 0, 1, value); -- GitLab