CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   problems on multi-file udf compiling (http://www.cfd-online.com/Forums/fluent/67888-problems-multi-file-udf-compiling.html)

phoenixchen903 August 30, 2009 02:31

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!

phoenixchen903 August 30, 2009 02:35

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 06:48.