send array using MPI



Hi,

I try to write a small fortran/mpi program to solve the
poisson eqn. To accomplish that, I have to send a part of
the calculated 2D array to the other processors.

The array is defined in a COMMON file: f(i,j) with i=100 and
j=100.

I want to send the values for j=10 and i=1 to 100; so I
actually send 100 values to the other processors.

My problem is, that I do not know, how I declare the range
of the sending array to the MPI_SEND routine.


CALL MPI_Send(f(1,100),count,MPI_FLOAT,1, 0,MPI_COMM_WORLD, ierr)

'count' should be set to 100, but how can I declare the
range!?

Would be nice, if you have an idea, how I can do that in
fortran77!

Greetings!
Fabian
.



Relevant Pages

  • Re: send array using MPI
    ... I try to write a small fortran/mpi program to solve the ... the calculated 2D array to the other processors. ... i don't think there's a way to allow for a "stride" in the mpi calls. ... either sent the elements individualy or copy them to a temporary array. ...
    (comp.lang.fortran)
  • Re: send array using MPI
    ... I try to write a small fortran/mpi program to solve the ... To accomplish that, I have to send a part of ... the calculated 2D array to the other processors. ... My problem is, that I do not know, how I declare the range ...
    (comp.lang.fortran)
  • Re: send array using MPI
    ... I try to write a small fortran/mpi program to solve the ... To accomplish that, I have to send a part of ... the calculated 2D array to the other processors. ... My problem is, that I do not know, how I declare the range ...
    (comp.lang.fortran)
  • Re: vb.net class
    ... about fixed array lenghts or using ReDim statements. ... code ensures everything in the array is a String because you declare it ... Count can be generated from the time list, not need to store ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Scope of Variant / Array
    ... Even though you declared the array "public" in the main (parent) form, ... a form code module is the same as a class module. ... Constants, fixed-length strings, arrays, user-defined types and Declare ...
    (microsoft.public.access.formscoding)