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

help, parallel udf problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2009, 16:54
Default help, parallel udf problem
  #1
New Member
 
Ellen
Join Date: Mar 2009
Posts: 11
Rep Power: 17
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,
ellen
EllenW is offline   Reply With Quote

Old   August 1, 2010, 06:30
Default udf_names.c(7) : error C2059: syntax error : '}'
  #2
Member
 
ahmad
Join Date: Jul 2010
Posts: 57
Rep Power: 15
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

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem loading UDF library in parallel cluster Veera Gutti FLUENT 8 July 26, 2016 08:24
Parallel UDF problem Lindsay FLUENT 4 June 20, 2016 10:37
UDF parallel Lucy Fluent UDF and Scheme Programming 3 May 28, 2013 14:14
udf on parallel fluent stud Main CFD Forum 0 December 12, 2008 08:45
parallel mode - small problem? co2 FLUENT 2 June 2, 2004 00:47


All times are GMT -4. The time now is 18:30.