Debian Codegraph @

example_packages/many_targets/src/file_mod.f90

raw
1 module file_mod
2 implicit none
3 public
4 contains
5 subroutine print_file(name,id)
6 character(*), intent(in) :: name
7 integer, intent(in) :: id
8 integer :: i
9 character(len(name)+1) :: nm
10 write(nm,1)name,id
11 open(newunit=i,file=nm//'.txt',form="formatted",action="write")
12 write(i, '(a)') nm
13 close(i)
14 1 format(a,i1)
15 end subroutine print_file
16 end module file_mod
17