[Fortran] 纯文本查看 复制代码
write(dirname_1,'("total")')
write(dirname,'("part")')
write(filename,'(A2,".txt")')name
call system("mkdir "//dirname_1)
call system("mkdir "//dirname)
open(30,
& file=trim(dirname_1)//'/'//trim(dirname)//'/'//filename)
do i=0,numr
radius=i*dr
write(30,'(5f15.6)') radius,b,c,d,e
enddo
[Fortran] 纯文本查看 复制代码
dirname_1 = "total"
dirname= "part"
filename = trim(name)//'.txt'
call system("mkdir "//dirname_1)
call system("mkdir "//trim(dirname_1)//'/'//dirname)
open(30,file=trim(dirname_1)//'/'//trim(dirname)//'/'//filename)
do i=0,numr
radius=i*dr
write(30,'(5f15.6)') radius,b,c,d,e
enddo
end
[Fortran] 纯文本查看 复制代码
dirname_1 = "total"
dirname= "part"
filename = trim(model)//'.txt'
call system("mkdir "//dirname_1)
call system("mkdir "//trim(dirname_1)//'/'//dirname)
open(30,file=trim(dirname_1)//'/'//trim(dirname)//'/'//filename)
do i=0,10
radius=i*0.1
write(30,'(5f15.6)') radius
enddo
[Fortran] 纯文本查看 复制代码
dirname_1 = "total"
dirname= "part"
filename = trim(model)//'.txt'
call system("mkdir "//dirname_1)
call system("mkdir "//trim(dirname_1)//'\'//dirname)
open(30,file=trim(dirname_1)//'\'//trim(dirname)//'\'//filename)
do i=0,10
radius=i*0.1
write(30,'(5f15.6)') radius
enddo