| 查看: 1138 | 回复: 3 | ||
[求助]
udf加载出错 已有1人参与
|
|
#include "udf.h" #include "sg_mphase.h" #include "sg_vof.h" #include "sg.h" #include "mem.h" #define VISCOSITY 0.001 #define SURF_TENS 0.0728 #define MYTRUE 1 #define index_source 2 /* This Code computes the normals of the VOF function*/ DEFINE_ADJUST(store_gradient, domain) { Thread *t; Thread **pt; Thread *phaset; cell_t c; int phase_domain_index = 1; /* Secondary Domain */ Domain *pDomain = DOMAIN_SUB_DOMAIN(domain,phase_domain_index); void calc_source(); Alloc_Storage_Vars(pDomain,SV_VOF_RG,SV_VOF_G,SV_NULL); Scalar_Reconstruction(pDomain,SV_VOF,-1,SV_VOF_RG,NULL); /* 出错行 */ Scalar_Derivatives(pDomain,SV_VOF,-1,SV_VOF_G,SV_VOF_RG,Vof_Deriv_Accumulate); ... ... ... } 加载udf的时候出错 line 23: Scalar_Reconstruction: argument 5 type mismatch (int instead of pointer to function returning void) |
» 猜你喜欢
【急招】合肥工大核聚变材料计算方向2026级工程博士生
已经有4人回复
大豆异黄酮分离
已经有0人回复
物理学I论文润色/翻译怎么收费?
已经有58人回复
湖南大学材料学院急招2026年博士生,临时增加一名博士联培指标
已经有10人回复
天津理工大学晶体材料全国重点实验室刘红军教授课题组招收博士生1-2名
已经有1人回复
中国科学院物理研究所谌志国研究员团队招收2027年博士研究生
已经有4人回复
2026年中德博士后交流项目 - 新型量子和磁性材料:材料制备表征和中子散射研究
已经有12人回复
26申博推荐:南京航空航天大学国际前沿院光学方向招收博士生!
已经有1人回复
2楼2017-09-09 16:09:14
3楼2018-01-17 15:26:15
jiangfan2008
木虫 (著名写手)
- 应助: 44 (小学生)
- 金币: 12826.9
- 散金: 744
- 红花: 10
- 帖子: 2349
- 在线: 713.9小时
- 虫号: 942754
- 注册: 2010-01-15
- 专业: 微/纳机械系统
4楼2019-10-30 03:09:00











回复此楼