|
[Fortran] 纯文本查看 复制代码 05 | integer , parameter :: nx = 144 , ny = 73 , nz = 17 , nt = 12 |
07 | real , dimension ( nx , ny , nz , nt ) :: uwnd , vwnd |
09 | integer :: ii , jj , kk , tt , irec |
11 | open ( 21 , file = 'D:\workspace\work2\uwnd.mon.ltm.dat' , form = 'unformatted' , access = 'direct' , recl = nx * ny ) |
13 | open ( 22 , file = 'D:\workspace\work2\vwnd.mon.ltm.dat' , form = 'unformatted' , access = 'direct' , recl = nx * ny ) |
15 | open ( 23 , file = 'D:\workspace\work2\uvwnd.dat' , status = 'replace' , form = 'unformatted' , access = 'direct' , recl = nx * ny ) |
23 | read ( 21 , rec = irec ) ( ( uwnd ( ii , jj , kk , tt ) , ii = 1 , nx ) , jj = 1 , ny ) |
37 | read ( 22 , rec = irec ) ( ( vwnd ( ii , jj , kk , tt ) , ii = 1 , nx ) , jj = 1 , ny ) |
53 | write ( 23 , rec = irec ) ( ( uwnd ( ii , jj , kk , tt ) , ii = 1 , nx ) , jj = 1 , ny ) |
61 | write ( 23 , rec = irec ) ( ( vwnd ( ii , jj , kk , tt ) , ii = 1 , nx ) , jj = 1 , ny ) |
运行后报错:
|
|