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

Parallel UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2008, 15: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, 09:38
Default Re: Parallel UDF
  #2
Paul
Guest
 
Posts: n/a
Try this:

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

------
  Reply With Quote

Old   April 25, 2017, 02:36
Default
  #3
New Member
 
slyan
Join Date: Mar 2017
Posts: 4
Rep Power: 9
slyan0913 is on a distinguished road
What do you mean, can you tell me more about it? Thank you very much!
slyan0913 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
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


All times are GMT -4. The time now is 21:58.