Hello,
First I am not running in parallel. I have just written a filter inherited from 
vtkPolyDataAlgorithm that generates 4 output ports.
I probably did not understand well, what I did is to add the  method:

int
vtkFlowCoordinates::RequestInformation(vtkInformation* vtkNotUsed(request), 
vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* 
outputVector)
{
  
outputVector->GetInformationObject(0)->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),
 -1);
  
outputVector->GetInformationObject(1)->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),
 -1);
  
outputVector->GetInformationObject(2)->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),
 -1);
  
outputVector->GetInformationObject(3)->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),
 -1);
  return 1;
}

but I still get the same errors, even if the result is ok, ie all 4 ports 
contain polydata, so it is just annoying to get this popup widget with error 
each time I Apply again!



ERROR: In 
/usr/local/ParaView3/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 
806
vtkCompositeDataPipeline (0x2605d570): No maximum number of pieces has been set 
in the information for output port 1 on algorithm 
vtkFlowCoordinates(0x2605cc20).


ERROR: In 
/usr/local/ParaView3/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 
806
vtkCompositeDataPipeline (0x2605d570): No maximum number of pieces has been set 
in the information for output port 2 on algorithm 
vtkFlowCoordinates(0x2605cc20).


ERROR: In 
/usr/local/ParaView3/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 
806
vtkCompositeDataPipeline (0x2605d570): No maximum number of pieces has been set 
in the information for output port 3 on algorithm 
vtkFlowCoordinates(0x2605cc20).



Date: Wed, 3 Feb 2010 15:50:21 -0500
Subject: Re: [Paraview] Maximum number of pieces, what does it mean?
From: [email protected]
To: [email protected]
CC: [email protected]

Hi Fred,

I am guessing that this is a filter that you wrote and that you are running in 
parallel. If that's case, you need something like:

  vtkInformation *outInfo = outputVector->GetInformationObject(NNN);

  outInfo->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),
               -1);

where NNN is the output port number. This goes in RequestInformation().

Best,
-berk


On Wed, Feb 3, 2010 at 12:03 PM, Fred Fred <[email protected]> wrote:






Or how to cope with it? I mean how to specify the maximum number of pieces in a 
multi-output filter?

From: [email protected]
To: [email protected]

Date: Tue, 2 Feb 2010 23:57:02 +0100
Subject: [Paraview] Maximum number of pieces, what does it mean?









I get this error when I select the 2nd output as displayable, although it 
contains 4 cells and 10 points, so it is not empty.
What does it mean?

ERROR: In 
/usr/local/ParaView3/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 
806

vtkCompositeDataPipeline
(0x2361e150): No maximum number of pieces has been set in the
information for output port 1 on algorithm vtkFlowCoordinates(0x2361d8c0).


                                          
Avec Internet Explorer, surfez en toute discrétion sur internet Cliquez ici !   
                                  

Faites une bonne action avec Bing Solidaire ! C'est ici !

_______________________________________________

Powered by www.kitware.com



Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html



Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView



Follow this link to subscribe/unsubscribe:

http://www.paraview.org/mailman/listinfo/paraview



                                          
_________________________________________________________________
Tchattez en direct en en vidéo avec vos amis !  
http://www.windowslive.fr/messenger/
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to