LAM/MPI logo

LAM/MPI Development Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Alexandre Lemaire (rm1x_at_[hidden])
Date: 2005-10-04 10:45:42


Hi,

    I have a basic usage question - running into a hurdle with C++.

    I have a series of int * arrays which I need to send in one to one communication between processors. These arrays are of varying sizes, so I can't guarantee a receive count on the receiving end (the MPI functions seem to require this..)

    How do I send and receive an array if integers?

    ex:

    int * arr = new int[X]; // X varies
    MPI::COMM_WORLD.Send(...

    // and then down on receiving end:
    ???

Thanks!
Alex