CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Tag issue with MPI

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2014, 18:45
Default Tag issue with MPI
  #1
Senior Member
 
Joachim
Join Date: Mar 2012
Location: Paris, France
Posts: 145
Rep Power: 15
Joachim is on a distinguished road
Hey everyone!

I am using MPI to exchange a large number of values between many processors, more or less simultaneously.

I have been using mpi_send/mpi_recv, but I am not sure what to do regarding the tags. At some point, I am afraid that two 'sends' will get the same tag value, which I assume will generate some problems.

Is there a way to deal with this? Right now, I have been using tags like 1000*a + 10000*b, etc where a and b are the indices associated with my parameters. It is working just fine, but my code is quickly becoming messy. Is there a more elegant way to solve this problem?

Thanks!

Joachim
Joachim is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MPI issue on multiple nodes sail OpenFOAM Running, Solving & CFD 32 November 2, 2022 05:48
AVL start problem :MPI issue gafoorcp AVL FIRE 1 June 21, 2022 02:27
Multi-region MPI parallel issue psosnows OpenFOAM Running, Solving & CFD 0 June 29, 2011 15:46
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 10:54
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 11:12


All times are GMT -4. The time now is 03:50.