我正在使用 VS2012 和英特尔 Visual Fortran 2015。
根据https://software.intel.com/en-us/forums/topic/269585,现在允许使用可分配和假定大小的数组来读取和写入名称列表;但是,我仍然收到错误“名称列表组对象不能是假定大小的数组”。
示例代码:
subroutine writeGrid(fname, grid)
character*(*) :: fname
real*8, dimension(:,:) :: grid
namelist /gridNML/ grid
open(1, file=fname)
write(1, nml=gridNML)
close(1)
end subroutine writeGrid
我启用了 F2003 语义。
我错过了什么?