CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   name variable in UDF using Thread : syntax error before numeric constant (https://www.cfd-online.com/Forums/fluent/68997-name-variable-udf-using-thread-syntax-error-before-numeric-constant.html)

Laurence Wallian October 8, 2009 09:18

name variable in UDF using Thread : syntax error before numeric constant
 
hello,
Just an information for those who use UDF function like F_C0_THREAD ... : I suggest you to not specify any variable as t0 !
I've done this, and I've the error message : syntax error before numeric constant

It seems to be a strange error since the variable t0 I've defined was just a #define t0 0.0001 in front of my program...

And it takes me a long time to find this error. So, if it can help someone else !

P.S. add_Cell = F_C0_THREAD( Face, add_Face ) seems to be equivalent to add_Cell = THREAD_T0( add_Face ), and add_Cell = add_Face->t0




All times are GMT -4. The time now is 06:48.