[Paraview-developers] Plugin client/server

Biddiscombe, John A. biddisco at cscs.ch
Wed Jul 27 01:11:30 EDT 2011


I believe that the client does collect boxes from all nodes and generate the information you need, but on the servers ... if my filters require the global bounds, I use this.

#ifdef VTK_USE_MPI
  vtkMPICommunicator *communicator = vtkMPICommunicator::SafeDownCast(this->Controller->GetCommunicator());
  MPI_Comm mpiComm = MPI_COMM_NULL;
  if (communicator) {
    mpiComm = *(communicator->GetMPIComm()->GetHandle());
  }

...

  double bounds[6];
  input->GetBounds(bounds);
  double bmin[3], bmn[3] = {bounds[0], bounds[2], bounds[4]};
  double bmax[3], bmx[3] = {bounds[1], bounds[3], bounds[5]};
  MPI_Allreduce(bmn, bmin, 3, MPI_DOUBLE, MPI_MIN, mpiComm);
  MPI_Allreduce(bmx, bmax, 3, MPI_DOUBLE, MPI_MAX, mpiComm);

Cut'n'pasted with some extra code removed. Apologies if I deleted the wrong lines

JB



From: paraview-developers-bounces at paraview.org [mailto:paraview-developers-bounces at paraview.org] On Behalf Of Scott, W Alan
Sent: 27 July 2011 03:56
To: paraview-developers at paraview.org
Subject: [Paraview-developers] Plugin client/server

I have written a filter that runs client/ multiple remote server.  This filter works correctly, from what I can see.  (It just replicates a dataset, in order to create a larger dataset in memory for testing and benching.)

I am trying to convert this filter to a plugin.  It works local server, but fails client/ remote server.  I believe that my problem is that I am trying to calculate the geometric bounds of the dataset, and each of the processors is returning a different bounding box - representing the bounding box of this server's data.  What I want is the bounding box of all server's data.  I am using a vtkDataSet function called GetBounds.

My questions are as follows:
*         Is there an example of how to make plugins that work for remote servers, that calculate the bounds of all of the data, for all processors?
*         If not, is there anywhere that I should look for ldeas?
*         If not, is there someone I should talk to?

Thanks,

Alan


--------------------------------------------------------
W. Alan Scott
ParaView Support Manager

GAITS
Sandia National Laboratories, MS 0822
Org 9326 - Building 880 A1-C
(505) 284-0932   FAX (505) 845-0833
---------------------------------------------------------



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20110727/7290ab2e/attachment.htm>


More information about the Paraview-developers mailing list