problems on multi-file udf compiling
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! |
Btw:
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. |
All times are GMT -4. The time now is 13:13. |