From: vsr Date: Fri, 29 May 2009 07:03:25 +0000 (+0000) Subject: Issue 20371: remove the creation of netgen.prof ? X-Git-Tag: V4_1_0_maintainance_FINAL~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=470c44510c0500d34220a73735d301e0f21ef86d;p=plugins%2Fnetgenplugin.git Issue 20371: remove the creation of netgen.prof ? --- diff --git a/src/NETGEN/netgen45ForSalome.patch b/src/NETGEN/netgen45ForSalome.patch index fac1fc0..ad2060e 100644 --- a/src/NETGEN/netgen45ForSalome.patch +++ b/src/NETGEN/netgen45ForSalome.patch @@ -1226,4 +1226,31 @@ diff -Naur netgen-4.5.old/libsrc/occ/utilities.h netgen-4.5.new/libsrc/occ/utili +#include #include // #include "SALOME_Log.hxx" + +diff -Naur netgen-4.5.old/libsrc/general/profiler.cpp netgen-4.5.new/libsrc/general/profiler.cpp +--- netgen-4.5.old/libsrc/general/profiler.cpp 2006-01-11 13:05:59.000000000 +0300 ++++ netgen-4.5.new/libsrc/general/profiler.cpp 2009-05-28 18:47:00.000000000 +0400 +@@ -35,7 +35,10 @@ + StopTimer (total_timer); + + ofstream prof ("netgen.prof"); +- Print (prof); ++ ++ ostream& pprof = getenv("NETGEN_PROF") ? prof : std::cout; ++ ++ Print (pprof); + } + + +diff -Naur netgen-4.5.old/libsrc/meshing/meshtype.hpp netgen-4.5.new/libsrc/meshing/meshtype.hpp +--- netgen-4.5.old/libsrc/meshing/meshtype.hpp 2009-05-28 19:22:04.000000000 +0400 ++++ netgen-4.5.new/libsrc/meshing/meshtype.hpp 2009-05-28 18:37:18.000000000 +0400 +@@ -13,7 +13,7 @@ + Classes for NETGEN + */ +- ++class Mesh; + enum ELEMENT_TYPE { + SEGMENT = 1, SEGMENT3 = 2, + TRIG = 10, QUAD=11, TRIG6 = 12, QUAD6 = 13, QUAD8 = 14,