UDF: Parse error line 3
I am having numerous problems trying to get fluent to read my c file. Initially I had the problem of it stating a parse error line 1, now I have moved my case file and c file to the ntx86 folder, and when loading my case it says:
Building... grid, materials, interface, domains, mixture zones, cpp -IC:\FLUENT.INC\fluent6.0/src -IC:\FLUENT.INC\fluent6.0/cortex/src -IC:\FLUENT.INC\fluent6.0/client/src -IC:\FLUENT.INC\fluent6.0/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" myprog.cError: myprog.c: line 3: parse error. It says something similar to the last few lines when i try to load the c file in interpreted UDF's. My c file is: #include udf.h DEFINE_PROFILE(inlet_x_velocity, thread, index) { real x[ND_ND]; real y; face_t f; begin_f_loop(f,thread) { F_CENTROID(x,f,thread); y = x[1]; F_PROFILE(f, thread, index) = 20. - y*y/(.0745*.745)*20.; } end_f_loop(f,thread) } Thanks for any help! |
Re: UDF: Parse error line 3
Does udf have to be in quotes in #include "udf.c"
Just a thought ? |
Re: UDF: Parse error line 3
Absolutely excellent, it worked! Thankyou!
|
All times are GMT -4. The time now is 23:46. |