|
[Sponsors] |
April 23, 2008, 15:16 |
Parallel UDF
|
#1 |
Guest
Posts: n/a
|
I am getting the following errors with regards to my SEND AND RECV functions: ..\..\src\steady11.c(115) : error C2440: 'function' : cannot convert from 'real' to 'float *' ..\..\src\steady11.c(115) : warning C4024: 'MPT_csend_float' : different types for formal and actual parameter 2 ..\..\src\steady11.c(124) : error C2440: 'function' : cannot convert from 'real' to 'float *' ..\..\src\steady11.c(124) : warning C4024: 'MPT_crecv_float' : different types for formal and actual parameter 2
Any help would be appreciated. #include "udf.h" real inmfr; DEFINE_PROFILE(uvelocity, thread, position) { #if !RP_HOST face_t f; int i,j; real uvel = 0.20; /* meters/sec */ real A[ND_ND]; inmfr = 0.0; begin_f_loop(f, thread) { F_AREA(A, f, thread); inmfr = inmfr + NV_MAG(A); } end_f_loop(f, thread) #endif #if RP_NODE if(! I_AM_NODE_ZERO_P) { PRF_CSEND_REAL(node_zero, inmfr, 1, myid); } #endif #if RP_NODE if(I_AM_NODE_ZERO_P) { compute_node_loop_not_zero(i) { PRF_CRECV_REAL(i, inmfr, 1, i); } } #endif node_to_host_real_1(inmfr); host_to_node_real_1(inmfr); } |
|
April 24, 2008, 09:38 |
Re: Parallel UDF
|
#2 |
Guest
Posts: n/a
|
Try this:
PRF_CSEND_REAL(node_zero, &inmfr, 1, myid); ------ |
|
April 25, 2017, 02:36 |
|
#3 |
New Member
slyan
Join Date: Mar 2017
Posts: 4
Rep Power: 9 |
What do you mean, can you tell me more about it? Thank you very much!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF parallel | Lucy | Fluent UDF and Scheme Programming | 3 | May 28, 2013 14:14 |
Where is my Parallel Log | andrewburns | OpenFOAM Running, Solving & CFD | 5 | February 5, 2008 00:07 |
udf parallel | Phil | FLUENT | 4 | May 28, 2004 20:49 |
cfx parallel | Rao | CFX | 7 | April 17, 2004 00:53 |
Parallel run | Bogdan | Siemens | 2 | June 26, 2002 11:31 |