UDF的程序如下,大神帮忙看看是哪里出问题了
#include "udf.h"
DEFINE_PROFILE(WALL_side, thread, index)
{
face_t f;
real x[ND_ND];
real y;
begin_f_loop(f, thread)
{
F_CENTROID(x, f, thread);
y = x[0];
F_PROFILE(f, thread, index) = 1456.4511 + 0.27572*y;
}
end_f_loop(f, thread)
}
Fluent的错误提示如下
Error at host: floating point exception
Error at Node 0: floating point exception |