74 integer,
intent(inout) :: mode
82 order, nresonances, nfrequencies, time, &
86 integer,
intent(inout) :: mode
87 real(c_double),
intent(inout) :: omega
88 real(c_double),
intent(inout) :: searchinterval
89 integer,
intent(inout) :: order, nresonances, nfrequencies
90 real(c_double),
intent(inout) :: time
91 integer,
intent(inout) :: l, m
92 real(c_double),
intent(inout) :: damping
93 character(kind=c_char),
intent(inout) :: file(*)
99 real(c_double) ,
intent(inout) :: w0
100 integer ,
intent(inout) :: m
101 integer ,
intent(inout) :: ar
102 character(kind=c_char) ,
intent(inout) :: pol(*)
103 real(c_double) ,
intent(inout) :: x
104 real(c_double) ,
intent(inout) :: y
105 real(c_double) ,
intent(inout) :: z
111 character(kind=c_char),
intent(inout) :: mode(*)
112 character(kind=c_char),
intent(inout) :: name(*)
116 thstep, thspan, phstep, phspan, pol, center, pvec, integrate)
119 real(c_double),
intent(inout) :: estep
120 real(c_double),
intent(inout) :: espan(2)
121 real(c_double),
intent(inout) :: thstep
122 real(c_double),
intent(inout) :: thspan(2)
123 real(c_double),
intent(inout) :: phstep
124 real(c_double),
intent(inout) :: phspan(2)
125 real(c_double),
intent(inout) :: pol(3)
126 real(c_double),
intent(inout) :: center(3)
127 real(c_double),
intent(inout) :: pvec(3)
128 integer,
intent(inout) :: integrate
140 integer,
intent(in) :: argc
143 subroutine set_clarg(i, argstring)
bind(c)
146 integer,
intent(in) :: i
147 character(kind=c_char),
intent(in) :: argstring(*)
164 character(len=*),
intent(in) :: config_str
166 subroutine getopt_octopus_low(config_str) bind(c, name='getopt_octopus')
169 character(kind=c_char),
intent(in) :: config_str(*)
170 end subroutine getopt_octopus_low
180 integer,
intent(out) :: ierr
183 character(len=100),
allocatable :: argstring(:)
191 argc = command_argument_count()
192 allocate(argstring(0:argc))
195 call get_command_argument(i, argstring(i))
198 deallocate(argstring)
Each program/utility that needs to use the getopt features should have an interface here – the defini...
The following interfaces are private to this module, and should not be called from outside.
This module provides an interface to the getopt C library, so that the command line arguments can be ...
subroutine, public getopt_octopus(config_str)
subroutine, public getopt_init(ierr)
Initializes the getopt machinery. Must be called before attempting to parse the options....
subroutine, public getopt_end
character(kind=c_char, len=1) function, dimension(:), allocatable, public string_f_to_c(f_string)
convert a Fortran string to a C string