|
|

楼主 |
发表于 2004-4-6 13:46:08
|
显示全部楼层
编译解释型udf总出现这样的错误,郁闷啊
Error: C:\Documents and Settings\asus\桌面\exampleubebank\udfex.c: line 1: parse error.
按书上的例子compile,总是出现这样提示,就是这个程序
#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, index)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f, thread)
/* loops over all faces in the thread passed in the DEFINE macro argument */
{
F_CENTROID(x,f,thread);
y = x[1];
F_PROFILE(f, thread, index) = 20. - y*y/(.0745*.0745)*20.;
}
end_f_loop(f, thread)
} |
|