|
[Fortran] 纯文本查看 复制代码 03 | integer , parameter :: N = 400 |
04 | integer :: posx ( N ) , posy ( N ) |
18 | open ( 10 , file = 'dis-0.txt' ) |
20 | write ( 10 , * ) posx ( i ) , posy ( i ) |
30 | if ( posy ( k ) >= 100 ) posy ( k ) = posy ( k ) -1 |
33 | if ( posy ( k ) < -100 ) posy ( k ) = posy ( k ) +1 |
36 | if ( posx ( k ) < -100 ) posx ( k ) = posx ( k ) +1 |
39 | if ( posx ( k ) >= 100 ) posx ( k ) = posx ( k ) -1 |
42 | if ( mod ( t , 2000 ) == 0 ) then |
47 | cell ( i , j ) = cell ( i , j ) +1.0 |
53 | if ( pi < 1.0 / 2000.0 ) cycle |
错误 1 error #6404: This name does not have a type, and must have an explicit type. [INTEGER] C:\文件\FORTRAN\Console12\Console12\Console12.f90 41
|
|