MPI COMMUNICATION IN ELMER

Discussion about coding and new developments
Post Reply
Franz Pichler
Posts: 196
Joined: 29 Sep 2011, 12:25
Antispam: Yes

MPI COMMUNICATION IN ELMER

Post by Franz Pichler »

Hello Everaybody,

i couldnt solve an interpolation issue in a satisfying way and so i decided to use good old processor ciommunication.
What i have to schieve is that every processor sends a certain number (which is different from processor to processor) to all the other processors. after that every processor can do the interpolation for itself.

so i think it should work something like this

Code: Select all

do while (next_guy>number_of_guys)
  if myname==next_guy:
    send(number_of_my_data_to_send
    do i=1, numberof_my_data_to_send
      send(data(i))
    end do
    next_guy+=1
  else:
    number_of_data_from_next_guy = recv()
    do i=1,number_of_next_guy
       data_of_next_guy[i]=recv()
    end do
    next_guy+=1
  end if
end do


What is the recommended way in ELmer to do so?

is it the pure Mpi methods?
or are there elmer mwthods, that are recommended?

thanks allready
bye
Franz
Franz Pichler
Posts: 196
Joined: 29 Sep 2011, 12:25
Antispam: Yes

Re: MPI COMMUNICATION IN ELMER

Post by Franz Pichler »

I just figured that i can do it with the parallelreduce and let all the processors have an array the size of the processor arrays together. then i put zeros everywhere that doesnt belong to the processor and sum reduce.

mee brain always to sloer than me forum post.

bye
bye
Franz
Post Reply