|
[Sponsors] |
September 11, 2009, 10:47 |
Messagge Passing Macros
|
#1 |
New Member
Arianna Angeletti
Join Date: Mar 2009
Posts: 1
Rep Power: 0 |
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 |
|
|
|
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 |