UDF works in Windows but not on Linux?
Hello here is a udf I am using for Fluent for the velocity inlet.
#include "udf.h" DEFINE_PROFILE(velocity_magnitude, t, i) { real velocity; real the_current_time; face_t f; the_current_time = CURRENT_TIME; if (the_current_time<1) { velocity=0.01; } if (the_current_time>=1) { velocity=0; } begin_f_loop(f,t) { F_PROFILE(f,t,i) = velocity; } end_f_loop(f,t) } I dont understand why it does not work on Linux I get an error saying SYNTAX ERROR ON LINE 2, but i dont have anything written on line 2? Thanks |
All times are GMT -4. The time now is 22:56. |