关于DEFINE_ADJUST的求助
编了一个小程序!关于修改速度变量的!能导入,但是一开始计算,就报错,高手帮帮忙!#include"udf.h"
DEFINE_ADJUST(velocity,d)
{real v;
Thread *t;
cell_t c;
realy;
real x;
thread_loop_f(t,d)
{
begin_c_loop_all(c,t)
v=C_U(c,t);
C_CENTROID(x,c,t);
y=x;
v=C_U(c,t);
if(y<=0)
C_U(c,t)=v-1;
end_c_loop_all(c,t)
}
} 什么错误提示? 什么错误提示? Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: ()
页:
[1]