CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF works in Windows but not on Linux? (

nha1g08 April 9, 2011 13:15

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)
if (the_current_time>=1)

F_PROFILE(f,t,i) = velocity;

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?


All times are GMT -4. The time now is 10:58.