|
[Sponsors] |
August 30, 2009, 03:31 |
problems on multi-file udf compiling
|
#1 |
New Member
Join Date: Mar 2009
Posts: 6
Rep Power: 17 |
Hello Guys, I meet a problem on the multi-**.c-udf-file compling in fluent.
since the function is complex, I put some functions in a seperated files, and add both of them into the "source file". However, the compling is failed. the example files are as follows. *************************** major.c: #include "udf.c" DEFINE_CG_MOTION (****) { real FUNC(); xxxxxx; FUNC(); xxxxx; vel[0] = xxx; return; } ************************* FUNC.c: real FUNC() { real A; xxxx; return A; } ************************ How can I deal with the problem? Thx a lot! |
|
August 30, 2009, 03:35 |
Btw:
|
#2 |
New Member
Join Date: Mar 2009
Posts: 6
Rep Power: 17 |
When code is lile,
********************** major.c: #include "udf.c" DEFINE_CG_MOTION(***) { real FUNC(); vel[0]=xxx; return; } real FUNC() { real A; ... return A; } ************************** that's OK. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF with output text file | manu | Fluent UDF and Scheme Programming | 18 | December 12, 2018 23:46 |
problems with STEP file | ertan | FLUENT | 0 | August 1, 2008 18:51 |
gcc and executable file from Mac to Linux | simone Marras | Main CFD Forum | 0 | April 8, 2007 16:49 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |
On Compiling a UDF | David Chabot | FLUENT | 5 | May 20, 2005 10:13 |