程序在学校的电脑上可以运行,然后我复制到我的电脑上运行时,有十几个错误,而且都在第一行,这是为什么呀
[Fortran] 纯文本查看 复制代码 02 | character * 160 cmdfile , inputfile , outputfile , str |
05 | real , dimension ( : , : ) , allocatable :: input ( : , : ) , output ( : , : ) |
07 | real Xmin , Xmax , Ymin , Ymax , Gmin , Gmax |
10 | open ( 40 , file = cmdfile , status = 'old' ) |
16 | read ( 40 , * ) str , inputfile |
17 | read ( 40 , * ) str , line 1 , line 2 |
19 | read ( 40 , * ) str , outputfile |
22 | open ( 10 , file = inputfile , status = 'old' ) |
29 | allocate ( input ( point , line ) , output ( point , line ) ) |
32 | write ( * , "('dx=',f5.2,'dy=',f5.2)" ) ( Xmax - Xmin ) / ( line -1 ) , ( Ymax - Ymin ) / ( point -1 ) |
33 | open ( 20 , file = inputfile , status = 'old' ) |
39 | read ( 20 , * ) ( ( input ( i , j ) , i = 1 , point ) , j = 1 , line ) |
42 | open ( 20 , file = inputfile , status = 'old' ) |
48 | read ( 20 , * ) ( ( input ( i , j ) , i = 1 , point ) , j = 1 , line ) |
53 | output ( i , j ) = input ( i , j ) |
62 | output ( i , j ) = input ( i , j ) + step |
70 | Gmin = MIN ( Gmin , output ( i , j ) ) |
71 | Gmax = MAX ( Gmax , output ( i , j ) ) |
75 | open ( 30 , file = outputfile , status = 'unknown' ) |
82 | write ( 30 , "(5F5.2)" ) ( output ( i , j ) , i = 1 , point ) |
86 | deallocate ( input , output ) |
|