Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] MPI::WORLD_COMM.Send Complex class structure definedin boost::ptr_vector
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2009-12-02 16:01:22

boost.MPI is probably your best bet. They export some nice C++ functionality through MPI.

On Dec 2, 2009, at 2:37 PM, Ivan Marin wrote:

> Hello all,
> I'm developing an groundwater simulation application that will use openmpi to distribute the data and solve a linear system. The problem is that my primary data structure is composed of a base class and derived classes, and they are inserted in a boost ptr_vector, as they are of different class types, with inheritance and pointers to other members of the vector. I would like to pass parts of this vector to the processes, to build locally the matrix, but I don't know how to do it. I followed the discussion on this thread (, and the route to use boost.MPI the only way out?
> I can provide the class template, if this would help. I'm using openmpi 1.3.3 on debian sid amd64.
> Ivan Marin
> Laboratório de Hidráulica Computacional - LHC
> Departamento de Hidráulica e Saneamento - SHS
> Escola de Engenharia de São Carlos - EESC
> Universidade de São Paulo - USP
> +55 16 3373 8270
> _______________________________________________
> users mailing list
> users_at_[hidden]

Jeff Squyres