[Fortran] 纯文本查看 复制代码
program main
use m_rk_ods
implicit real*8(a-z)
integer::N
real*8::px0,py0,pz0,x0,yy0,z0
real*8:: y(6),y0(6)
open (unit=11,file='dat1.txt')
open (unit=12,file='dat2.txt')
N=6
px0=5.
py0=0.
pz0=50.
x0=-2500.
yy0=0.
z0=-25000.
t0=0.
tt=100000.
y0=(/px0,py0,pz0,x0,yy0,z0/)
call solve(fun1,t0,tt,y0,N)
end
[Fortran] 纯文本查看 复制代码
Program www_fcode_cn
Implicit None
character(len=10) :: c1 , c2
integer z0 , x0 , k
k = -2520
Do z0 = -25200 , -24800
write( c1 , '(g0)' ) z0
Do x0 = k , k + 20
!//计算代码
write( c2 , '(g0)' ) x0
Open( 12 , File = trim(adjustl(c1))//"-"//trim(adjustl(c2))//".txt")
!// 输出代码
Close( 12 )
End Do
k = k + 1
End Do
End Program www_fcode_cn