|
[Fortran] 纯文本查看 复制代码 SUBROUTINE xdw_READTXT(FID,FNAME,SKIPHEAD,TEMP_READTXT)
USE SET_PARAMETER
IMPLICIT NONE
INTEGER ::I = 1,J
INTEGER ::FID
CHARACTER(LEN=100)::FNAME
REAL(KIND=8),ALLOCATABLE::TEMP_READTXT(:,:) !临时存储中间数据
INTEGER::HERE_STAT
INTEGER::SKIPHEAD
这是子程序的片段
在主程序总调用:
[Fortran] 纯文本查看 复制代码 real*8,ALLOCATABLE::sp(:,:),z(:,:)
real*8,ALLOCATABLE::q(:,:),t(:,:)
allocate(sp(360,720),STAT = AOS)
allocate(z(360,720),STAT = AOS)
allocate(t(259200,720),STAT = AOS)
allocate(q(259200,720),STAT = AOS)
call xdw_READTXT(11,'D:\Temp\2019010100sp_nofirst.txt',0,sp)
call xdw_READTXT(11,'D:\Temp\2019010100z_nofirst.txt',0,z)
call xdw_READTXT(11,"D:\Temp\2019010100q_nofirst.txt",0,q)
call xdw_READTXT(11,'D:\Temp\2019010100t_nofirst.txt',0,t)
报错如下
D:\01 AOD\AODFortran\xdw_VIpressure\xdw_VIpressure\MAIN.f90(27): error #7938: Character length argument mismatch. ['D:\Temp\2019010100sp_nofirst.txt']
D:\01 AOD\AODFortran\xdw_VIpressure\xdw_VIpressure\MAIN.f90(27): error #8055: The procedure has a dummy argument that has the ALLOCATABLE, ASYNCHRONOUS, OPTIONAL, POINTER, TARGET, VALUE or VOLATILE attribute. Required explicit interface is missing from original source. [SP]
D:\01 AOD\AODFortran\xdw_VIpressure\xdw_VIpressure\MAIN.f90(28): error #7938: Character length argument mismatch. ['D:\Temp\2019010100z_nofirst.txt']
D:\01 AOD\AODFortran\xdw_VIpressure\xdw_VIpressure\MAIN.f90(28): error #8055: The procedure has a dummy argument that has the ALLOCATABLE, ASYNCHRONOUS, OPTIONAL, POINTER, TARGET, VALUE or VOLATILE attribute. Required explicit interface is missing from original source. [Z]
D:\01 AOD\AODFortran\xdw_VIpressure\xdw_VIpressure\MAIN.f90(29): error #7938: Character length argument mismatch. ['鈥狣:\Temp\2019010100q_nofirst.txt']
D:\01 AOD\AODFortran\xdw_VIpressure\xdw_VIpressure\MAIN.f90(29): error #8055: The procedure has a dummy argument that has the ALLOCATABLE, ASYNCHRONOUS, OPTIONAL, POINTER, TARGET, VALUE or VOLATILE attribute. Required explicit interface is missing from original source. [Q]
D:\01 AOD\AODFortran\xdw_VIpressure\xdw_VIpressure\MAIN.f90(30): error #7938: Character length argument mismatch. ['鈥狣:\Temp\2019010100t_nofirst.txt']
D:\01 AOD\AODFortran\xdw_VIpressure\xdw_VIpressure\MAIN.f90(30): error #8055: The procedure has a dummy argument that has the ALLOCATABLE, ASYNCHRONOUS, OPTIONAL, POINTER, TARGET, VALUE or VOLATILE attribute. Required explicit interface is missing from original source. [T]
compilation aborted for D:\01 AOD\AODFortran\xdw_VIpressure\xdw_VIpressure\MAIN.f90 (code 1)
还有D盘的盘符也变成了那个奇怪字符。
|
|