denhan 发表于 2007-1-17 14:33

udf一问!

我编译udf的时候老出错!
real TT=C_T(cell,thread);
real a=C_U_G(cell,thread);
real b=C_U_G(cell,thread);
real cc=C_U_G(cell,thread);
real d=C_V_G(cell,thread);
real e=C_V_G(cell,thread);
real f=C_V_G(cell,thread);
real g=C_W_G(cell,thread);
real h=C_W_G(cell,thread);
real i=C_W_G(cell,thread);
这样写的话,我想得到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

chaobo1982 发表于 2007-1-17 17:57

_G的使用好象有一些要特别注意的地方

ljwin82 发表于 2007-1-22 09:52

应该是语法错误

找找关于这方面的资料看看

denhan 发表于 2007-1-23 23:23

问题已经解决,谢谢各位的帮助!
是用宏的时候没有大写!
页: [1]
查看完整版本: udf一问!