Octopus
|
This module: More...
This module:
(i) provides an interface to the command line, as defined by the Fortran 2003 routines "get_command_argument", "command_argument_count", and "get_command". These routines may not exist in all compilers (octopus presently does not require Fortran 2003), and in that case they are defined here. But it may happen that the compiler may not be able to access the command line arguments at all, and in that case the utilities that need them are not usable.
(ii) provides an interface to the getopt C library, so that the command line arguments can be managed in this "standard" way.
Data Types | |
interface | clean_clarg |
interface | getopt_casida_spectrum |
interface | getopt_center_geom |
interface | getopt_dielectric_function |
interface | getopt_harmonic_spectrum |
interface | getopt_help |
interface | getopt_octopus |
Each program/utility that needs to use the getopt features should have an interface here – the definition of the procedure should be given in the getopt_f.c file. And they MUST be listed under public above, or they have no effect! Arguments should be intent(inout) since default values are setting by the calling routine, and are left unchanged if the corresponding option is not given. More... | |
interface | getopt_oscillator_strength |
interface | getopt_photoelectron_spectrum |
interface | getopt_propagation_spectrum |
interface | getopt_vibrational |
interface | getopt_xyz_anim |
interface | set_clarg |
interface | set_number_clarg |
If Fortran 2003 interface to command line arguments is not available, define it using an interface over Fortran 77 API. More... | |
Functions/Subroutines | |
subroutine, public | getopt_init (ierr) |
Initializes the getopt machinery. Must be called before attempting to parse the options. On output, ierr is zero if the call is successful, and -1 if the command line arguments cannot be accessed. More... | |
subroutine, public | getopt_end |
subroutine, public command_line_oct_m::getopt_init | ( | integer, intent(out) | ierr | ) |
Initializes the getopt machinery. Must be called before attempting to parse the options. On output, ierr is zero if the call is successful, and -1 if the command line arguments cannot be accessed.
Definition at line 313 of file command_line.F90.
subroutine, public command_line_oct_m::getopt_end |
Definition at line 335 of file command_line.F90.