|
|

楼主 |
发表于 2007-12-10 16:10:51
|
显示全部楼层
求助:DEFINE_ADJUST
问题搞清楚了,原来compiled 不支持printf函数,用Message代替就好使了~~
#include "udf.h"
DEFINE_ADJUST(my_adjust,d)
{
cell_t c;
Thread *t;
/* Integrate dissipation. */
real sum_diss=0.;
thread_loop_c(t,d)
{
begin_c_loop(c,t)
sum_diss += C_D(c,t)*C_VOLUME(c,t);
end_c_loop(c,t)
}
Message("Volume integral of turbulent dissipation: %g \n", sum_diss);
}
|
|