hillator |
May 8, 2012 15:09 |
comipling code
when i try to compile the folwing code
Code:
#include"udf.h"
DEFINE_PROFILE(U_velocity, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
real p;
face_t f;
begin_f_loop(f,thread)
{
F_CENTROID(x, f, thread);
y = x[1];
p=0.993*sin(0.1331*y+1.585) + 0.7255*sin(0.2035*y-0.7726) + 0.05753*sin(0.6634*y+1.885) +0.02917*sin(1.27*y+0.05926) +0.1001*sin(0.7195*y-0.4312) +0.01529*sin(1.796*y-0.1304) + 0.0114*sin(2.31*y-0.0199);
F_PROFILE(f,thread,position) = 0.2927*sin(6.199*p-1.601) + 0.1601*sin(2.196*p+0.613) + 0.2657*sin(12.7*p+1.393) +0.03703*sin(20.04*p-1.096) + 0.03782*sin(26.73*p-2.7) +0.009516*sin(34.47*p+0.1639);
}
end_f_loop(f, thread)
}
it writen to me erorr 160?
what is the problem?
thanks for the help
hilla
|