]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
NPAL14110 : Traces
authorrahuel <rahuel@opencascade.com>
Tue, 13 Feb 2007 08:59:16 +0000 (08:59 +0000)
committerrahuel <rahuel@opencascade.com>
Tue, 13 Feb 2007 08:59:16 +0000 (08:59 +0000)
src/GraphBase/DataFlowBase_OutPort.cxx
src/GraphBase/DataFlowBase_PortsOfNode.cxx
src/GraphExecutor/DataFlowExecutor_DataFlow.cxx

index 2f52c5adcceb37c89e3e0a19c40c4a0537340f6f..776bc747567201c6155de3c1e1fa0caa99c73dbc 100644 (file)
@@ -127,8 +127,9 @@ bool GraphBase::OutPort::RemoveInPort( GraphBase::InPort * toPort ) {
   int i ;
   int index = _MapOfInPorts[ toPort->NodePortName() ] ;
   if ( index <= 0 || index > _InPortsSize ) {
-    cdebug << "GraphBase::OutPort::RemoveInPort Error " << NodeName() << "( " << PortName()<< " ) --> "
-           << toPort->NodeName() << "( " << toPort->PortName() << " )" << endl ;
+//JR NPAL14110 09.02.2007 : Not an error with MacroNodes ...
+    //JRcdebug << "GraphBase::OutPort::RemoveInPort Error " << NodeName() << "( " << PortName()<< " ) --> "
+    //JR       << toPort->NodeName() << "( " << toPort->PortName() << " )" << endl ;
     return false ;
   }
   cdebug << "OutPort::RemoveInPort " << NodeName() << "(" << PortName() << ") --> "
index 3fa97562c1b424adcddf2b18459c5d2581ba908e..97a9b4256a8679370ee75cdbcf86fb2fa0a677c8 100644 (file)
@@ -29,7 +29,7 @@
 using namespace std;
 #include "DataFlowBase_PortsOfNode.hxx"
 
-#define PortsOfNodeTrace 1
+#define PortsOfNodeTrace 0
 
 GraphBase::PortsOfNode::PortsOfNode() :
   GraphBase::Service::Service( SALOME_ModuleCatalog::Service() ) {
index 9e08779ec0b617da3badf5078e7a1a9cf19161b0..4552e07d21771cdd1a483eec219d40579f9ba7b8 100644 (file)
@@ -239,8 +239,8 @@ bool GraphExecutor::DataFlow::OutputOfAny( const char * aNodeName ,
   for ( i = 0 ; i < anOutPort->InPortsSize() ; i++ ) {
     const char * ToNodeName = anOutPort->ChangeInPorts( i )->NodeName() ;
     const char * ToParameterName = anOutPort->ChangeInPorts( i )->PortName() ;
-    GraphBase::ComputingNode * aComputingNode = Graph()->GetChangeGraphNode( ToNodeName ) ;
     if ( strcmp( ToNodeName , Name() ) ) {
+      GraphBase::ComputingNode * aComputingNode = Graph()->GetChangeGraphNode( ToNodeName ) ;
       GraphExecutor::InNode * aLinkedNode = (GraphExecutor::InNode * ) aComputingNode->GetInNode() ;
       cdebug << pthread_self() << "/" << aLinkedNode->ThreadNo()
              << "GraphExecutor::DataFlow::OutputOfAny to Node "
@@ -293,8 +293,9 @@ bool GraphExecutor::DataFlow::OutputOfAny( const char * aNodeName ,
                                                             anOutPort->Value() ) ;
     }
     else {
-      cdebug << "GraphExecutor::DataFlow::OutputOfAny to Graph " << ToNodeName
-             << "(" << ToParameterName << ") ignored" << endl ;
+      cdebug << pthread_self() << "GraphExecutor::DataFlow::OutputOfAny to Node "
+             << ToNodeName << "(" << ToParameterName << ") from MacroNode " << aNodeName
+             << ") ignored" << endl ;
     }
   }
   cdebug_out << pthread_self() << "/" << ThreadNo() << " GraphExecutor::DataFlow::OutputOfAny " << RetVal