CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Messagge Passing Macros

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2009, 10:47
Default Messagge Passing Macros
  #1
New Member
 
Arianna Angeletti
Join Date: Mar 2009
Posts: 1
Rep Power: 0
Arianna is on a distinguished road
Hi there,

I'm trying to parallelize a new function and I need to pass the 1D array V (with n elements)from the current node (with ID=myid) to the next one, so I wrote something like this:

#if RP_NODE
if(!I_AM_NODE_LAST_P)
{
PRF_CSEND_DOUBLE(myid+1,V,n,myid);
}
else
{
PRF_CSEND_DOUBLE(node_zero,V,n,myid);/*if myid=node_last it send V to node_zero node*/
}
#endif

and this part seems to work fine, while I couldn't fix the second part:

#if RP_NODE
if(!I_AM_NODE_ZERO_P)
{
PRF_CRECV_DOUBLE(myid,V,n,myid);
}
else
{
PRF_CRECV_DOUBLE(node_last,V,n,node_last);
}
#endif

since I can't select the receiving node IDs (instead of the current node ID).

Thanks in advance for any suggestions!!!

Arianna
Arianna 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
Macros mahadevan.swamy Fluent UDF and Scheme Programming 2 July 7, 2009 08:34
help with macros F_ID and C_ID Jack Martinez FLUENT 0 August 19, 2007 08:27
What are UDF macros C_T_S , C_T_AP,...???? Asghari FLUENT 0 January 28, 2007 10:54
Difference between G and RG vector macros Tomik FLUENT 0 April 3, 2006 17:28
Orientation of Face Variable Macros hirokata FLUENT 0 February 17, 2006 00:12


All times are GMT -4. The time now is 12:38.