| 查看: 1238 | 回复: 5 | |||
[求助]
各位大侠帮我看看这个UDF到底哪错了?编译和初始化没问题,一计算就致命错误!!
|
|
计算就出现:received a fatal signal (Segmentation fault). 下面是程序(别的UDF能计 #include"udf.h" #include"sg_mem.h" #include"mem.h" DEFINE_ADJUST(uds8910_adjust,mixture_domain) { Thread *t; cell_t c; real fs,fl,gs,gl,rho,rhos,rhol,u,v,w,Ts,Tl; u=C_U(c,t),v=C_V(c,t),w=C_W(c,t); rhos=7200.,rhol=6900.; Ts=1670.,Tl=1727.; gl=(C_T(c,t)-Ts)/(Tl-Ts); gs=1-gl; rho=gs*rhos+gl*rhol;/*as to rho=C_R(c,t);*/ fs=rhos*gs/rho; fl=rhol*gl/rho; if(!Data_Valid_P()) return; thread_loop_c(t,mixture_domain) { begin_c_loop_all(c,t) { C_UDSI(c,t,0)=rho*fs*fl*u; C_UDSI(c,t,1)=rho*fs*fl*v; C_UDSI(c,t,2)=rho*fs*fl*w; C_UDSI(c,t,3)=gl; } end_c_loop_all(c,t) } } |
» 猜你喜欢
存款400万可以在学校里躺平吗
已经有37人回复
英文综述是否需要润色及查重
已经有5人回复
救命帖
已经有5人回复
限项规定
已经有5人回复
为什么nbs上溴 没有产物点出现呢
已经有9人回复
招博士
已经有3人回复
最失望的一年
已经有18人回复
3_1415926
金虫 (小有名气)
- 应助: 8 (幼儿园)
- 金币: 1994.3
- 红花: 6
- 帖子: 159
- 在线: 57.3小时
- 虫号: 1853296
- 注册: 2012-06-09
- 性别: GG
- 专业: 工程热力学
2楼2017-02-20 10:36:59
3楼2017-02-20 10:45:40
4楼2017-02-20 14:39:02
5楼2017-02-20 14:40:18
6楼2018-09-12 16:44:10













回复此楼
黄涛神