|
[Sponsors] |
February 7, 2002, 12:15 |
Compiled UDF
|
#1 |
Guest
Posts: n/a
|
Anybody has tried to use thread_loop_c in compiled UDF(OS: Win2k Professional)? I wrote one like this:
#include "udf.h" extern Domain* domain; DEFINE_ON_DEMAND(test) { Thread *t; cell_t c; thread_loop_c(t,domain) { begin_c_loop(c,t) { } end_c_loop(c,t) } } I can compile the file and get the .dll file. But when I tried to run the udf in Fluent, it gave the error message: Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: () Seems I cannot use thread_loop_c. Has anybody encountered similar problem? Thanks. Lu |
|
February 14, 2002, 08:15 |
Re: Compiled UDF
|
#2 |
Guest
Posts: n/a
|
Hi,
the reason of error is "extern Domain* domain". this macro does not work on any Windows . So you have to replace this macro to "Domain *domain = Get_Domain(1)". Thanks. |
|
February 14, 2002, 12:19 |
Re: Compiled UDF
|
#3 |
Guest
Posts: n/a
|
Thank you. It works!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
I want to use pressure of 1 face in udf that compiled on other face | iman_1844 | Fluent UDF and Scheme Programming | 3 | June 10, 2010 12:55 |
Why udf can not be compiled in my pc? | Xinqiang | FLUENT | 0 | June 10, 2009 14:32 |
difference between udf compiled and udf interprete | chandra sekhar | FLUENT | 2 | April 11, 2006 00:04 |
how to quit compiled or interprited UDF | tian | FLUENT | 0 | April 8, 2003 23:53 |