35 integer :: mode, ierr, ar
36 real(real64) :: w0, vec(1:3)
37 type(spectrum_t) :: spectrum
41 integer,
parameter :: &
48 call messages_write(
"Your Fortran compiler doesn't support command-line arguments;")
50 call messages_write(
"the oct-harmonic-spectrum command is not available.")
61 if (w0 <=
m_zero) get_maxima = .false.
82 if ((pol /=
'x') .and. &
88 message(1) =
'The polarization direction given in the command line is not valid.'
98 message(1)=
"Calculating angle-resolved hs from multipoles."
110 message(1)=
"Calculating angle-resolved hs from acceleration."
124 message(1) =
'The harmonic-spectrum mode given in the command line is not valid.'
program harmonic_spectrum
subroutine, public getopt_init(ierr)
Initializes the getopt machinery. Must be called before attempting to parse the options....
subroutine, public getopt_end
Fast Fourier Transform module. This module provides a single interface that works with different FFT ...
subroutine, public fft_all_init(namespace)
initialize the table
subroutine, public global_end()
Finalise parser varinfo file, and MPI.
real(real64), parameter, public m_zero
type(mpi_comm), parameter, public serial_dummy_comm
Alias MPI_COMM_UNDEFINED for the specific use case of initialising Octopus utilities with no MPI supp...
subroutine, public init_octopus_globals(comm)
Initialise Octopus-specific global constants and files. This routine performs no initialisation calls...
real(real64), parameter, public m_one
subroutine, public io_init(defaults)
If the argument defaults is present and set to true, then the routine will not try to read anything f...
subroutine, public io_end()
subroutine, public messages_end()
subroutine, public messages_init(output_dir)
subroutine, public messages_obsolete_variable(namespace, name, rep)
subroutine, public messages_info(no_lines, iunit, verbose_limit, stress, all_nodes, namespace)
subroutine, public messages_new_line()
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
type(namespace_t), public global_namespace
subroutine, public parser_init()
Initialise the Octopus parser.
subroutine, public parser_end()
End the Octopus parser.
subroutine, public profiling_end(namespace)
subroutine, public profiling_init(namespace)
Create profiling subdirectory.
subroutine, public spectrum_hs_ar_from_acc(spectrum, namespace, out_file, vec, w0)
subroutine, public spectrum_init(spectrum, namespace, default_energy_step, default_max_energy)
subroutine, public spectrum_hs_from_acc(spectrum, namespace, out_file, pol, vec, w0)
subroutine, public spectrum_hs_from_current(spectrum, namespace, out_file, pol, vec, w0)
subroutine, public spectrum_hs_from_mult(spectrum, namespace, out_file, pol, vec, w0)
subroutine, public spectrum_hs_ar_from_mult(spectrum, namespace, out_file, vec, w0)
This module defines the unit system, used for input and output.
subroutine, public unit_system_init(namespace)