[Paraview] Maximum number of pieces, what does it mean?

Berk Geveci berk.geveci at kitware.com
Wed Feb 3 19:42:06 EST 2010


That's weird. It am guessing a bug somewhere. Can you post the source code
so that we can take a look?

On Wed, Feb 3, 2010 at 5:27 PM, Fred Fred <stan1313 at hotmail.fr> wrote:

>
> 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: berk.geveci at kitware.com
> To: stan1313 at hotmail.fr
> CC: paraview at paraview.org
>
>
> 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 <stan1313 at hotmail.fr> wrote:
>
>  Or how to cope with it? I mean how to specify the maximum number of pieces
> in a multi-output filter?
>
> ------------------------------
> From: stan1313 at hotmail.fr
> To: paraview at paraview.org
> 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 ! <http://clk.atdmt.com/FRM/go/182932252/direct/01/>
> ------------------------------
> Faites une bonne action avec Bing Solidaire ! C'est ici !<http://www.bingsolidaire.com>
>
> _______________________________________________
> 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
>
>
>
> ------------------------------
> Windows 7 : Trouvez le PC qui vous convient! Découvrez notre offre !
> <http://clk.atdmt.com/FRM/go/181574577/direct/01/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100203/ced7a05e/attachment.htm>


More information about the ParaView mailing list