42 character(len=256) :: config_str
43 integer :: inp_calc_mode, ierr
160 integer :: days, hours, min, sec, usec
166 hours = (sec / 3600) - (days * 24)
167 min = (sec / 60) - (days * 1440) - (hours * 60)
168 sec = modulo(sec, 60)
171 if (days > 0)
write(
message(2),
'(i3,a)') days,
' days,'
172 if (hours > 0.or.
message(2) /=
'')
then
175 if (min > 0.or.
message(1) /=
'')
then
178 write(
message(2),
'(a,1x,i2.2,a,i3,a)') trim(
message(2)), sec,
'.', usec/1000,
's'
Each program/utility that needs to use the getopt features should have an interface here – the defini...
subroutine print_walltime()
This module handles the calculation mode.
subroutine, public getopt_init(ierr)
Initializes the getopt machinery. Must be called before attempting to parse the options....
subroutine, public getopt_end
subroutine, public epoch_time_diff(sec, usec)
subroutine, public global_end()
Finalise parser varinfo file, and MPI.
type(conf_t), public conf
Global instance of Octopus configuration.
subroutine, public global_init(communicator)
Initialise Octopus.
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_switch_status(status)
create status file for asynchronous communication
subroutine, public print_date(str)
subroutine, public messages_info(no_lines, iunit, verbose_limit, stress, all_nodes, namespace)
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
subroutine, public messages_input_error(namespace, var, details, row, column)
type(mpi_grp_t), public mpi_world
type(namespace_t), public global_namespace
Exported library interface.
subroutine, public parser_init()
Initialise the Octopus parser.
subroutine, public parser_end()
End the Octopus parser.
integer function, public parse_block(namespace, name, blk, check_varinfo_)
subroutine, public profiling_end(namespace)
subroutine, public profiling_init(namespace)
Create profiling subdirectory.
top level module for all calculation modes
subroutine, public run(namespace, calc_mode_id)
main routine to run all calculations: This routine parses the input file, sets up the systems and int...
character(len=80) function, public str_center(s_in, l_in)
puts space around string, so that it is centered
This module is intended to contain simple general-purpose utility functions and procedures.
character(len=256) function, public get_config_opts()
character(len=256) function, public get_optional_libraries()
subroutine, public print_header()
This subroutine prints the logo followed by information about the compilation and the system....
This module provices a simple timer class which can be used to trigger the writing of a restart file ...
subroutine, public walltimer_init(auto)
initialize the timer
subroutine, public walltimer_end()
destructor