<div dir="ltr">Hi Prashant,<div><br></div><div>Indeed, transmitting vtkArrayData is not currently supported in vtkMultiProcessController. It looks like it could be supported with some modifications to VTK, but I'm not aware of anyone working on it right now.</div><div><br></div><div>If you wanted to contribute support for communicating this type, you can look at modifying vtkCommunicator.cxx by adding the data set type VTK_ARRAY_DATA to the switch statements in </div><div><br></div><div>vtkCommunicator::Send(vtkDataObject* data, int remoteHandle, int tag)</div><div><br></div><div>and</div><div><br></div><div><div>vtkCommunicator::ReceiveDataObject(vtkDataObject* data, int remoteHandle, int tag, int dataType)</div></div><div><br></div><div>and then modify vtkGenericDataObjectWriter.cxx to instantiate a vtkArrayDataWriter in</div><div><br></div><div>void vtkGenericDataObjectWriter::WriteData()<br></div><div><br></div><div>when the input type is VTK_ARRAY_DATA.</div><div><br></div><div>If you can get that to work satisfactorily in your plugin, I would be happy to review any patch you might push to VTK. See [1] for details how to submit a patch.</div><div><br></div><div>Thanks,</div><div>Cory</div><div><br></div><div>[1] <a href="https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md">https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 16, 2015 at 5:32 AM, Prashant V <span dir="ltr"><<a href="mailto:prashant.v@quest-global.com" target="_blank">prashant.v@quest-global.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi,<br>
<br>
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.<br>
<br>
Below is code snippet:<br>
<br>
vtkMultiProcessController* Controller; // defined in header file<br>
<br>
Code in cxx:<br>
<br>
this->Controller = vtkMultiProcessController::GetGlobalController();<br>
if(this->Controller)<br>
{<br>
this->Controller->Register(this);<br>
}<br>
<br>
vtkSmartPointer<vtkArrayData> masterArray;<br>
<br>
if(proc == 0) //root process<br>
{ <br>
masterArray = from_some_method();<br>
for(int p=1; p < procCount; ++p)<br>
{<br>
this->Controller->Send(masterArray, p, 9999);<br>
}<br>
}<br>
else<br>
{<br>
this->Controller->Receive(masterArray, 0, 9999);<br>
}<br>
<br>
Regards,<br>
Prashant<br>
</div>
---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. -----------------------------------------------------------------------------------
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>