fortran错误:the type of the actual argument differs from the type of the dummy argument 2021-12-05 16:56 91阅读 0赞 参考原文:https://blog.csdn.net/SinjoyWong/article/details/70138960 在用intel fortran写一个DLL程序的时候,发现数据结构比较复杂,所以使用了fortran90中新增的结构体。因为abaqus只能识别.for格式的文件,一开始以为fortran77是无法使用结构体的。 在写的过程中,直接将结构体对象的名称作为子程序的形参。一直报错,表示实参与形参的类型不统一。 在确认语法没错之后,在网上查找了很长时间,但是除了语法层面外仍没有解释。后来有人建议将Debug改为Release,遂尝试之,顺利通过。 \--------------------------------------------------- 我的经验:想编译一个dll给VBNET调用 \---------------------------------------------------- SUBROUTINE SAP(NJ,N,NE,NPJ,NPF,JN,X,Y,JE,JEAI,EAI,JPJ,PJ,JPF,PF,F,FM) !\*\*\*\*\*\*\*\*\* ANALYSIS PROGRAM FOR PLANE FRAME \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* !MS$ATTRIBUTES DLLEXPORT,STDCALL,ALIAS:'PFSAP' :: PFSAP !DEC$ ATTRIBUTES VALUE :: NJ,N,NE,NPJ,NPF !DEC$ ATTRIBUTES REFERENCE :: JN,JE,JEAI,JPJ,JPF !DEC$ ATTRIBUTES REFERENCE ::X,Y,EAI,PJ,PF,F,FM INTEGER(4),INTENT(IN) :: NJ,N,NE,NPJ,NPF INTEGER(4),INTENT(IN) :: JN(3,100),JE(2,100),JEAI(100),JPJ(100),JPF(2,100) REAL(8),INTENT(IN) :: X(100),Y(100),EAI(3,100),PJ(100),PF(2,100) REAL(8),INTENT(OUT) :: F(100,3),FM(100,6) 后面程序中的变量都定义为INTEGER或 REAL 编译报错 错误 error \#6633: The type of the actual argument differs from the type of the dummy argument. \[Y\] J:\\Recent\\VB\\WindowsApp1\\PlaneFrame\\PlaneFrame.f90 19 将红色代码改为:(删除 (8)) REAL,INTENT(IN) :: X(100),Y(100),EAI(3,100),PJ(100),PF(2,100) REAL,INTENT(OUT) :: F(100,3),FM(100,6) 再编译 则成功 分析:主要是因为上下文中的变量定义不一致
相关 "The entity type XXModel is not part of the model for the current context." 碰见这个错误是由于在Entity Framework中访问数据中不存在的实体模型: 解决方法配置映射关系: public class CompanyMap : En 川长思鸟来/ 2021年07月26日 19:12/ 0 赞/ 418 阅读
相关 fortran错误:the type of the actual argument differs from the type of the dummy argument 参考原文:https://blog.csdn.net/SinjoyWong/article/details/70138960 在用intel fortran写一个DLL程序 港控/mmm°/ 2021年12月05日 16:56/ 0 赞/ 92 阅读
相关 the use of the GNU compilers Short Contents [Introduction][] [1 Programming Languages Supported by GCC][] 朴灿烈づ我的快乐病毒、/ 2021年12月09日 01:21/ 0 赞/ 88 阅读
相关 Flutter报错:Error: The argument type 'Utf8Decoder' can't be assigned to the parameter type 'StreamTran 错误: `lib/http/http_request.dart:23:64: Error: The argument type 'Utf8Decoder' can't b - 日理万妓/ 2021年12月10日 06:50/ 0 赞/ 210 阅读
相关 TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string or Buffer. Msg `TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string 港控/mmm°/ 2022年01月10日 02:21/ 0 赞/ 143 阅读
相关 The differences of Iterator and Iterable interface This post will describe som differences of Iterator and Iterable interface. Introduction 淩亂°似流年/ 2022年02月09日 12:39/ 0 赞/ 84 阅读
相关 The method add(Object[]) in the type List Object[] is not applicable for the arguments (File). 今天写Java读取目录下所有文件的实验时遇到一个错误: The method add(Object\[\]) in the type List<Object\[\]> is 约定不等于承诺〃/ 2022年04月03日 03:26/ 0 赞/ 84 阅读
相关 The differents of querySelector and getElmentbyId. querySelector是返回指定元素节点中,子元素匹配的第一个,如果没有匹配,则返回null。而querySelectorAll是在全文档中查找所有匹配的项。querySe 约定不等于承诺〃/ 2022年05月10日 00:33/ 0 赞/ 63 阅读
相关 redis配置文件报错 Does the parameter type of the setter match the return type of the getter? 这是具体错误 org.springframework.beans.factory.BeanCreationException: Error creating bean 待我称王封你为后i/ 2022年05月22日 09:12/ 0 赞/ 59 阅读
相关 The golden age of the developer Now is really the golden age of the developer , especially the developers in China . We r囧r小猫/ 2022年06月16日 00:28/ 0 赞/ 40 阅读
还没有评论,来说两句吧...