|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND];/* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1];
F_PROFILE(f, thread, position) = 20. - y*y/(.0745*.0745)*20.;
}
end_f_loop(f, thread)
}
这是udf程序,在vc++中编译时出错:
fatal error C1083: Cannot open include file: ';udf.h';: No such file or directory
Error executing cl.exe.
我把udf.h拷到udf程序的目录下时,又出现这样的错误:
f:\1\udf.h(23) : fatal error C1083: Cannot open include file: ';global.h';: No such file or directory
Error executing cl.exe.
我现在一头雾水,哪位大虾帮帮忙,udf程序到底怎么编译啊,能否说得详细一些。
先谢谢了!!!
|
|