PARALLELIZING UDF - node to host error
Hi everybody,
I'm trying to parallelize my udf: there are a DEFINE_ADJUST and a DEFINE_PROFILE (that depends on the first) I put the basic compiler directives like #if !RP_HOST but I had some problem! this is my UDF: Code:
ERROR: /Fluent/..../.... line 175: function "mpnode_to_host_double_2" not found (pc=19) ERROR: /Fluent/..../.... line 175: function "mpnode_to_host_double_2" not found (pc=399) ERROR: /Fluent/..../.... line 175: function "mpnode_to_host_double_2" not found (pc=399) ... etc... why the macro node_to_host does not work? |
Working for me (Fluent header files version 12.1 & GCC 4.6.2). Are you compiling or interpreting it?
|
Interpreting! Should I compile my udf?
|
Definitely! Interpreted UDF are useful only for very simple problems. The only their advantage is you don't need to bother with configuration of a compiler. On the other hand compiled UDF can use whole potential of C programming language and also their performance is better. Here is lovely tutorial how to setup a compiler on a Windows platform.
|
Thank you! I'll try to compile my UDF! :)
Can you give me some advice for Linux platform? |
For compiling on Linux systems just follow Fluent's UDF manual. It is really straightforward. Basically it consists of 2 files, which you need to customize. Personally I prefer compiling on Linux machines, because it is working out of the box and with little extra effort you can link an UDF against external libraries (e.g. GSL) and use it in your code.
|
All times are GMT -4. The time now is 17:01. |