马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
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 |