C functions in UDF Macro
I have a problem with compiling C function in UDF. It seems that Flueent does not accept C functions. For instance, a short code:
DEFINE_ON_DEMAND { ... int imin(int, int); // line 1 ... int imin(int n, int m) // line 2 { ... } } So, Fluent doesn't accept the function definition (line 2): "syntax error: missing ';' before '(' ". So, it treats the definition as a variable declaration. Remove "int" befor "init", it yields next problems, untill you remove the whole function definition. What is the difference in the function syntax in pure C and the UDF? |
All times are GMT -4. The time now is 13:33. |