声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1553|回复: 3

[UDF专题] udf一问!

[复制链接]
发表于 2007-1-17 14:33 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我编译udf的时候老出错!
  real TT=C_T(cell,thread);
  real a=C_U_G(cell,thread)[1];
  real b=C_U_G(cell,thread)[2];
  real cc=C_U_G(cell,thread)[3];
  real d=C_V_G(cell,thread)[1];
  real e=C_V_G(cell,thread)[2];
  real f=C_V_G(cell,thread)[3];
  real g=C_W_G(cell,thread)[1];
  real h=C_W_G(cell,thread)[2];
  real i=C_W_G(cell,thread)[3];
这样写的话,我想得到U,V,W各个梯度的分量,主要想计算这个公式

但是老出现这个错误,请问是我的想法出错了,还是语法有错!
..\..\src\cell_viscosity.c(21) : error C2223: left of '->storage' must point to struct/union
..\..\src\cell_viscosity.c(22) : error C2223: left of '->storage' must point to struct/union
..\..\src\cell_viscosity.c(23) : error C2223: left of '->storage' must point to struct/union
..\..\src\cell_viscosity.c(24) : error C2223: left of '->storage' must point to struct/union
..\..\src\cell_viscosity.c(25) : error C2223: left of '->storage' must point to struct/union
..\..\src\cell_viscosity.c(26) : error C2223: left of '->storage' must point to struct/union
..\..\src\cell_viscosity.c(27) : error C2223: left of '->storage' must point to struct/union
..\..\src\cell_viscosity.c(28) : error C2223: left of '->storage' must point to struct/union
..\..\src\cell_viscosity.c(29) : error C2223: left of '->storage' must point to struct/union
..\..\src\cell_viscosity.c(30) : error C2223: left of '->storage' must point to struct/union

公式

公式
回复
分享到:

使用道具 举报

发表于 2007-1-17 17:57 | 显示全部楼层
_G的使用好象有一些要特别注意的地方
发表于 2007-1-22 09:52 | 显示全部楼层
应该是语法错误

找找关于这方面的资料看看
 楼主| 发表于 2007-1-23 23:23 | 显示全部楼层
问题已经解决,谢谢各位的帮助!
是用宏的时候没有大写!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-4 06:51 , Processed in 0.135047 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表