|
[Sponsors] |
January 10, 2005, 21:58 |
error of compilling udf
|
#1 |
Guest
Posts: n/a
|
hi my program of udf is following:
#include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; real y; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); z = x[1]; F_PROFILE(f, thread, position) = -43478.26*z*z-291.30*z+1.00; } end_f_loop(f, thread) } when i compile the C program,my compter tell me there is an error.i want to know "why?" pls help! |
|
January 11, 2005, 07:38 |
Re: error of compilling udf
|
#2 |
Guest
Posts: n/a
|
You have to declare your variable z before you use it. You defined y instead of z!
maybe this is the error ?! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
UDF compilling error | Lightning | FLUENT | 0 | June 16, 2010 10:07 |
UDF compilling | 1986 | FLUENT | 4 | April 3, 2010 10:10 |
About Compilling The UDF | Seyed Farid Hosseinizadeh | FLUENT | 0 | February 15, 2006 22:22 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |