CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

help, parallel udf problem

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

LinkBack Thread Tools Display Modes
Old   June 26, 2009, 15:54
Default help, parallel udf problem
New Member
Join Date: Mar 2009
Posts: 11
Rep Power: 8
EllenW is on a distinguished road
Hi everyone,

I guess I still don't understand well how things work in parallel mode, so I got all kinds of problems when trying to run udfs which worked fine in the serial mode. Now I narrow down my problems into this one:

my udf has two parts: part I is reading a table of property data and store it into an array, which is done in a DEFINE_EXECUTE_ON_LOADING macro; the second part is to define a property using the data stored in the array from part I, and this is done using a DEFINE_PROPERTY macro.

when trying to run this udf in parallel mode, I used the directive #!RP_NODE on part I, since the file-read operations (fopen, fread...) normally are handled by the host or serial process.
Then I used the directive #!RP_HOST on part II, since the host process doesn't contain any grid information.

my problems are:
1. This parallelized file can be sucessfully complied, but after loading it, I found the part I of my code was not executed (I checked using a Message statement in part I)

2. If I take out part II, trying to test Part I only, then it cannot pass the complilation. I was prompted something like "improper end of file";

3. if I take out part II and take out the directive (#!RP_NODE) around part I, then I have this compliation error:
udf_names.c(7) : error C2059: syntax error : '}'
udf_names.c(8) : warning C4034: sizeof returns 0

I'm really stuck here, any suggestions from you would be helpful, especially examples (or tips) on how to handle DEFINE_EXECUTE_ON_LOADING type of macro.

Thank you in advance,
EllenW is offline   Reply With Quote

Old   August 1, 2010, 05:30
Default udf_names.c(7) : error C2059: syntax error : '}'
Join Date: Jul 2010
Posts: 57
Rep Power: 7
almostafa67 is on a distinguished road
hello dear Ellen...
did u find your answer hot to correct this error message ( udf_names.c(7) : error C2059: syntax error : '}') that fluent have given you.know i'm facing with this problem and i want u as a Experienced person help me out...
looking forward to ur help
almostafa67 is offline   Reply With Quote


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
problem loading UDF library in parallel cluster Veera Gutti FLUENT 7 July 3, 2011 09:15
udf on parallel fluent stud Main CFD Forum 0 December 12, 2008 08:45
Parallel UDF problem Lindsay FLUENT 0 November 7, 2008 05:31
parallel mode - small problem? co2 FLUENT 2 June 1, 2004 23:47

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