]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Update for Salome 4.1.2
authormaintenance team <salome-mnt@opencascade.com>
Fri, 18 Apr 2008 07:38:08 +0000 (07:38 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Fri, 18 Apr 2008 07:38:08 +0000 (07:38 +0000)
config_files/patches/netgen-4.5-for-SALOME.patch

index 62e575bb8a5f4497092382eb9bbaeceba22f12a0..f23405f6a886e72d60e7262eb1a11747174836a1 100755 (executable)
@@ -88,6 +88,26 @@ diff -Naur netgen-4.5.old/libsrc/makefile.mach.LINUX netgen-4.5.new/libsrc/makef
        -ftemplate-depth-99 -finline-limit=10000 \
        -Wdisabled-optimization  -funroll-loops  -DnoNGSOLVE
  
+diff -Naur netgen-4.5.old/libsrc/meshing/meshtype.cpp netgen-4.5.new/libsrc/meshing/meshtype.cpp
+--- netgen-4.5.old/libsrc/meshing/meshtype.cpp 2006-02-10 13:11:08.000000000 +0300
++++ netgen-4.5.new/libsrc/meshing/meshtype.cpp 2008-03-14 13:19:53.000000000 +0300
+@@ -1,4 +1,5 @@
+ #include <mystdlib.h>
++#include <float.h>
+ #include "meshing.hpp"  
+@@ -774,7 +775,7 @@
+       frob /= 2;
+       double det = trans.Det();
+-      if (det <= 0)
++      if (det <= DBL_MIN)
+       err += 1e12;
+       else
+       err += frob * frob / det;
+
+
 diff -Naur netgen-4.5.old/libsrc/meshing/improve2.cpp netgen-4.5.new/libsrc/meshing/improve2.cpp
 --- netgen-4.5.old/libsrc/meshing/improve2.cpp 2006-01-11 19:08:19.000000000 +0300
 +++ netgen-4.5.new/libsrc/meshing/improve2.cpp 2008-02-12 14:57:01.000000000 +0300