X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDMEM%2FMEDMEM_Init.cxx;h=32a646747e6df34d840e8b184fe55862a6550cb8;hb=4b36a0d2a14649d6cf81c3df1d157eb1c7f7c271;hp=1b7efb06bc64c4b17e592da0338441a476b6de77;hpb=397699dcea83b0f9e94d9062c046e8443ee685fb;p=modules%2Fmed.git diff --git a/src/MEDMEM/MEDMEM_Init.cxx b/src/MEDMEM/MEDMEM_Init.cxx index 1b7efb06b..32a646747 100644 --- a/src/MEDMEM/MEDMEM_Init.cxx +++ b/src/MEDMEM/MEDMEM_Init.cxx @@ -1,4 +1,30 @@ -#include "LocalTraceCollector.hxx" +// Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// +#include +#include +#include + +#include "MEDMEM_Utilities.hxx" +# ifdef MED_WITH_KERNEL +//#include "LocalTraceCollector.hxx" +# endif /* ifdef MED_WITH_KERNEL*/ namespace MEDMEM { @@ -13,5 +39,18 @@ MEDMEM::INIT init; MEDMEM::INIT::INIT() { - LocalTraceCollector::instance(); +#ifdef MED_WITH_KERNEL +// LocalTraceCollector::instance(); +#endif /* ifdef MED_WITH_KERNEL*/ + +// char* traceKind = getenv("SALOME_trace"); + +// if (traceKind == NULL) +// { +// setenv("SALOME_trace","local",1); +// traceKind = getenv("SALOME_trace"); +// assert(traceKind); +// } + +// MESSAGE("Med Memory Initialization with $SALOME_trace = " << traceKind); }