[Paraview-developers] Error in sharing vtkArrayData across Paraview ranks

Prashant V prashant.v at quest-global.com
Wed Sep 16 05:32:12 EDT 2015


Hi,

I have developed a Paraview source plugin. While running Paraview in parallel mode, I am trying to share a vtkArrayData from root process to other processes using vtkMPI send-receive. However, I am getting errors: 'Can not send vtkArrayData' and 'Can not receive vtkArrayData'. Is it that vtkArrayData is not allowed using send-receive? Is there any other alternative to share vtkArrayData across processes? Thanks.

Below is code snippet:

vtkMultiProcessController* Controller; // defined in header file

Code in cxx:

this->Controller = vtkMultiProcessController::GetGlobalController();
if(this->Controller)
{
     this->Controller->Register(this);
}

vtkSmartPointer<vtkArrayData> masterArray;

if(proc == 0) //root process
{
    masterArray =  from_some_method();
    for(int p=1; p < procCount; ++p)
    {
         this->Controller->Send(masterArray, p, 9999);
    }
}
else
{
    this->Controller->Receive(masterArray, 0, 9999);
}

Regards,
Prashant
---Disclaimer------------------------------ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Opinions, conclusions and other information in this transmission that do not relate to the official business of QuEST Global and/or its subsidiaries, shall be understood as neither given nor endorsed by it. Any statements made herein that are tantamount to contractual obligations, promises, claims or commitments shall not be binding on the Company unless followed by written confirmation by an authorized signatory of the Company. -----------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150916/f16eb445/attachment.html>


More information about the Paraview-developers mailing list