| 查看: 731 | 回复: 1 | ||
ZNSH03新虫 (著名写手)
|
[求助]
DEFINE_ON_DEMAND运行出错
|
|
DEFINE_ON_DEMAND(INIT)/*将壁面第一层网格索引编号赋值给数组a*/ { int thread_ID; Domain *domain; Thread *tt; int i; face_t f; cell_t c0; real A[ND_ND]; i=0; thread_ID=14; domain=Get_Domain(1); tt=Lookup_Thread(domain,thread_ID); begin_f_loop(f,tt) { c0=F_C0(f,tt); counter++; } end_f_loop(f,tt) a=(int*)malloc(counter*sizeof(int)); begin_f_loop(f,tt) { c0=F_C0(f,tt); a=c0; i++; } end_f_loop(f,tt) } 这是模拟湿空气在壁面冷凝udf中的一部分,我在fluent里面一运行execute on demand就出错,前高手指点一下@wuming524 |
» 猜你喜欢
祈祷自己至少3A2B上会啊!
已经有5人回复
航天502所 高瑛珂博士 婚内征婚 欺骗女性开房
已经有28人回复
山东省优青 青B通知了????
已经有3人回复
地球科学部D01口青年基金,最低几A几B几C才能有几率中呀。
已经有5人回复
26/27申博
已经有4人回复
博士申请
已经有5人回复
2楼2020-07-02 14:44:59











回复此楼