找回密码
 注册
查看: 2746|回复: 3

UDF郁闷

[复制链接]
发表于 2009-10-5 22:02:43 | 显示全部楼层 |阅读模式

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

您需要 登录 才可以下载或查看,没有账号?注册

x
很简单个东西为什么老出错呵呵,请大家指点一下
#include "udf.h"
#include "mem.h"

Domain *d;
DEFINE_ON_DEMAND(reset_UDM)
{

  Thread *t;
  face_t f;
  int i=0;
d = Get_Domain(1);
  thread_loop_f(t,d)
  {
          begin_f_loop(f,t)
          {
                  for(i=0;i<2;i++)
                          F_UDMI(f,t,i)=0;
          }
          end_f_loop(f,t)
  }
}

Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: ()
发表于 2009-10-6 11:00:09 | 显示全部楼层
2个UDM定义了么?
发表于 2009-10-9 12:43:41 | 显示全部楼层

回复 2# topshen 的帖子

现在怎么样?这个错误提示不能说明多少问题
发表于 2009-10-21 19:23:03 | 显示全部楼层
呵呵,是的,错误提示确实什么明确信息都没有。但有一点,数据有可能不存在。
因为这个代码是没问题的,所以觉得只有udm没有定义好才会出现这个问题。
ps:我是过路的,不过本人至今经常犯这个错误。呵呵


[ 本帖最后由 topshen 于 2009-10-21 11:25 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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