CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   all.c of UDF (http://www.cfd-online.com/Forums/fluent/28668-all-c-udf.html)

sean July 3, 2001 15:07

all.c of UDF
 
I'm defining UDFs. I want to make use of more than one interpreted UDF in a simulation. The help file tells me that they can be concatenated iogether into a single C file, all.c, for example. The concatented function can be compiled in the interpreted UDFs panel. Is there some one who know how to concatenate them? Need I do it in Turbo C?

thanks a lot sean

Greg Perkins July 3, 2001 19:33

Re: all.c of UDF
 
in your main c file use

#include "file1.c" #include "file2.c"

etc

to read in additional source files. Its very simple

Greg


All times are GMT -4. The time now is 08:54.