找回密码
 注册
Simdroid-非首页
查看: 44|回复: 0

[联合仿真] 编写gforce的subroutine时调用TDISP报错的问题

[复制链接]
发表于 2013-6-28 18:05:59 | 显示全部楼层 |阅读模式 来自 清华大学
利用fortran编写一个简单的gforce的subroutine 但是编译完成后仿真都报错,问题应该出在TDISP函数上,但是不知道哪里有问题,求情明白人儿指点,报错内容见最后,谢谢
   
      SUBROUTINE GFOSUB(ID, TIME, PAR, NPAR, DFLAG,
       &                  IFLAG, RESULT)
      INTEGER                             ID
      DOUBLE PRECISION                    TIME
      DOUBLE PRECISION                    PAR( * )
      INTEGER                             NPAR
      LOGICAL                             DFLAG
      LOGICAL                             IFLAG
      DOUBLE PRECISION                    RESULT(6)

      DOUBLE PRECISION IPAR(3), rel, T(3)
      INTEGER NSTATES, IM, JM
      LOGICAL ERRFLG

      IM=PAR(1)
      JM=PAR(2)
                                               
      IPAR(1) = JM
      IPAR(2) = IM
      IPAR(3) = IM
      
      CALL SYSARY('TDISP', IPAR, 3, T, NSTATES, ERRFLG)
      CALL ERRMES(ERRFLG, 'Error calling SYSARY for TDISP',ID, 'STOP')

      rel=sqrt(T(1)**2+T(2)**2)
      
      
      RESULT(1) = 3*rel                                
      RESULT(2) = 4*rel
      RESULT(3) =0
      RESULT(4) =0
      RESULT(5) =0
      RESULT(6) =0
              
      RETURN
      END


错误如下
ERROR:      User function for GFORCE model_1.GFORCE_1 has been incorrectly specified.
   Function DX in the FUNCTION = statement refers to MARKER         0 which
   has not been defined in the data set.
ERROR:      User function for GFORCE model_1.GFORCE_1 has been incorrectly specified.
   Function DX in the FUNCTION = statement refers to MARKER         1074266112 which
   has not been defined in the data set.
ERROR:      User function for GFORCE model_1.GFORCE_1 has been incorrectly specified.
   Function DY in the FUNCTION = statement refers to MARKER         0 which
   has not been defined in the data set.
ERROR:      User function for GFORCE model_1.GFORCE_1 has been incorrectly specified.
   Function DY in the FUNCTION = statement refers to MARKER         1074266112 which
   has not been defined in the data set.
ERROR:      User function for GFORCE model_1.GFORCE_1 has been incorrectly specified.
   Function DZ in the FUNCTION = statement refers to MARKER         0 which
   has not been defined in the data set.
ERROR:      User function for GFORCE model_1.GFORCE_1 has been incorrectly specified.
   Function DZ in the FUNCTION = statement refers to MARKER         1074266112 which
   has not been defined in the data set.
ERROR:      Errors found in call to SYSARY.
ERROR:      Error calling SYSARY for TDISP
   ID = 1
ERROR:   Abnormal termination encountered in Solver.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-11-2 19:17 , Processed in 0.025247 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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