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

Parallel UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 23, 2008, 14:16
Default Parallel UDF
  #1
Karo
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);

}

  Reply With Quote

Old   April 24, 2008, 08:38
Default Re: Parallel UDF
  #2
Paul
Guest
 
Posts: n/a
Try this:

PRF_CSEND_REAL(node_zero, &inmfr, 1, myid);

------
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF parallel Lucy Fluent UDF and Scheme Programming 3 May 28, 2013 13: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 19:49
cfx parallel Rao CFX 7 April 16, 2004 23:53
Parallel run Bogdan CD-adapco 2 June 26, 2002 10:31


All times are GMT -4. The time now is 19:08.