29 integer :: lmax, ntheta
30 character(len=S2_STRING_LEN) :: filename_lut
40 write(*,
'(a)')
'LUT written in '//trim(filename_lut)
55 use extension
, only: getargument, narguments
60 character(len=S2_STRING_LEN) :: arg
61 character(len=S2_STRING_LEN) :: opt
67 call getargument(i,opt)
69 if (i == n .and. trim(opt) /=
'-help')
then
70 write(*,
'(a,a,a)')
'Option ', trim(opt),
' has no argument'
74 if(trim(opt) /=
'-help') call getargument(i+1,arg)
77 select case (trim(opt))
80 write(*,
'(a)')
'Usage: bianchi2_lut_gen [-lmax lmax]'
81 write(*,
'(a)')
' [-Ntheta Ntheta]'
82 write(*,
'(a)')
' [-out filename_LUT]'
92 filename_lut = trim(arg)
95 print
'("Unknown option ",a," ignored")', trim(opt)