CVF转IVF可能遇到的问题
1.问题
error #6634: The shape matching rules of actual arguments and dummy arguments have been violated.
error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.
2.问题解决
(1).编写代码时,无论是fortran77还是fortran90对于数组不要用假定大小,而应该改为自动数组或者假定形状。
(2).除此之外对于一些老程序修改代码量较大,还可以让IVF编译器忽略这些错误,具体步骤如下。
在菜单栏点击调试并打开调试属性,在配置属性栏下依次点击Fortran, Diagnostics,然后将Check Routine interfaces 改为NO如下图所示。
同样在配置属性栏下依次点击Fortran,Run-time,然后将Check Array and String Bounds 改为NO如下图所示。