|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
采用如下代码,compile没问题,但是hook时提示"violate access",请各位大侠执教!感谢。
DEFINE_PROFILE(k_profile, t, i)
{
real y, del, h, x[ND_ND], ustar; /* variable declarations */
/*Thread *tc;*/
cell_t c;
face_t f;
begin_f_loop(f, t)
{
c=F_C0(f,t);
/*tc=THREAD_T0(t);*/
F_CENTROID(x,f,t);
y=x[1];
F_PROFILE(f,t,i)=1.5*sqrt(C_RUU(c,t));
}
end_f_loop(f, t)
}
|
|