Octopus
restart.F90 File Reference

Go to the source code of this file.

Modules

module  restart_oct_m
 

Data Types

type  restart_oct_m::restart_data_t
 
type  restart_oct_m::restart_basic_data_t
 restart_basic_data_t stores global information about a specific component we want to save. This includes the tag, and the specific sub folder. These information are the same for all restart objects. More...
 
type  restart_oct_m::restart_basic_t
 restart_basic_t stores the basic information about a restart object. More...
 
type  restart_oct_m::restart_t
 
interface  restart_oct_m::restart_block_signals
 block signals while writing the restart files More...
 
interface  restart_oct_m::restart_unblock_signals
 unblock signals when writing restart is finished More...
 

Functions/Subroutines

logical function, public restart_oct_m::clean_stop (comm)
 returns true if a file named stop exists More...
 
subroutine restart_oct_m::restart_basic_init (restart, namespace, data_type, type, ierr, dir)
 
logical function restart_oct_m::restart_basic_do_i_write (restart)
 
subroutine restart_oct_m::restart_init (restart, namespace, data_type, type, mc, ierr, mesh, dir, exact)
 Initializes a specific restart object. More...
 
subroutine restart_oct_m::restart_basic_end (restart)
 
subroutine restart_oct_m::restart_end (restart)
 
character(len=max_path_len) function restart_oct_m::restart_basic_dir (restart)
 Returns the name of the directory containing the restart information. The use of this function should be avoided, as the access to the restart data should always be done through this module, and it is only provided to allow some older parts of the code to keep functioning until someone fixes them. More...
 
subroutine restart_oct_m::restart_basic_open_dir (restart, dirname, ierr)
 Change the restart directory to dirname, where "dirname" is a subdirectory of the base restart directory. More...
 
subroutine restart_oct_m::restart_basic_close_dir (restart)
 Change back to the base directory. To be called after restart_basic_open_dir. More...
 
subroutine restart_oct_m::restart_basic_mkdir (restart, dirname)
 Make directory "dirname" inside the current restart directory. More...
 
subroutine restart_oct_m::restart_basic_rm (restart, name)
 Remove directory or file "name" that is located inside the current restart directory. More...
 
integer function restart_oct_m::restart_basic_open (restart, filename, status, position, silent)
 Open file "filename" found inside the current restart directory. Depending on the type of restart, the file will be used for reading (RESTART_TYPE_LOAD), or for writing (RESTART_TYPE_DUMP). Note that this function only be used to open formatted files and that unformatted data should be accessed using the restart_*_binary subroutines. More...
 
subroutine restart_oct_m::restart_basic_write (restart, iunit, lines, nlines, ierr)
 
subroutine restart_oct_m::restart_basic_read (restart, iunit, lines, nlines, ierr)
 
subroutine restart_oct_m::restart_basic_close (restart, iunit)
 Close a file previously opened with restart_basic_open. More...
 
logical pure function restart_oct_m::restart_basic_skip (restart)
 Returns true if the restart information should neither be read nor written. This might happen because the user chose not to write any restart information, or because the restart information is not available for reading. More...
 
logical pure function restart_oct_m::restart_basic_has_flag (restart, flag)
 Returns true if... More...
 
logical pure function restart_oct_m::restart_has_map (restart)
 Returns true if the restart was from a different order of mesh points. More...
 
integer pure function restart_oct_m::restart_basic_get_data_type (restart)
 Returns the data type of the restart. More...
 
character(:) function, allocatable restart_oct_m::restart_basic_get_info (restart)
 
character(:) function, allocatable restart_oct_m::restart_get_info (restart)
 
subroutine restart_oct_m::drestart_write_mesh_function (restart, space, filename, mesh, ff, ierr, root)
 
subroutine restart_oct_m::drestart_read_mesh_function (restart, space, filename, mesh, ff, ierr)
 In domain parallel case each process reads a part of the file. At the end all the processes have the corresponding mesh part. More...
 
subroutine restart_oct_m::drestart_write_binary1 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::drestart_write_binary2 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::drestart_write_binary3 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::drestart_write_binary5 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::drestart_read_binary1 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::drestart_read_binary2 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::drestart_read_binary3 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::drestart_read_binary5 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::drestart_write_binary1_int32 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::drestart_write_binary2_int32 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::drestart_write_binary3_int32 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::drestart_write_binary5_int32 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::drestart_read_binary1_int32 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::drestart_read_binary2_int32 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::drestart_read_binary3_int32 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::drestart_read_binary5_int32 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::zrestart_write_mesh_function (restart, space, filename, mesh, ff, ierr, root)
 
subroutine restart_oct_m::zrestart_read_mesh_function (restart, space, filename, mesh, ff, ierr)
 In domain parallel case each process reads a part of the file. At the end all the processes have the corresponding mesh part. More...
 
subroutine restart_oct_m::zrestart_write_binary1 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::zrestart_write_binary2 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::zrestart_write_binary3 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::zrestart_write_binary5 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::zrestart_read_binary1 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::zrestart_read_binary2 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::zrestart_read_binary3 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::zrestart_read_binary5 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::zrestart_write_binary1_int32 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::zrestart_write_binary2_int32 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::zrestart_write_binary3_int32 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::zrestart_write_binary5_int32 (restart, filename, np, ff, ierr, root)
 
subroutine restart_oct_m::zrestart_read_binary1_int32 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::zrestart_read_binary2_int32 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::zrestart_read_binary3_int32 (restart, filename, np, ff, ierr)
 
subroutine restart_oct_m::zrestart_read_binary5_int32 (restart, filename, np, ff, ierr)
 

Variables

integer, parameter restart_oct_m::restart_n_data_types = 14
 The data_types refer mainly to the run-mode of the calculation. More...
 
integer, parameter, public restart_oct_m::restart_undefined = -1
 
integer, parameter, public restart_oct_m::restart_all = 0
 
integer, parameter, public restart_oct_m::restart_gs = 1
 
integer, parameter, public restart_oct_m::restart_unocc = 2
 
integer, parameter, public restart_oct_m::restart_td = 3
 
integer, parameter, public restart_oct_m::restart_em_resp = 4
 
integer, parameter, public restart_oct_m::restart_em_resp_fd = 5
 
integer, parameter, public restart_oct_m::restart_kdotp = 6
 
integer, parameter, public restart_oct_m::restart_vib_modes = 7
 
integer, parameter, public restart_oct_m::restart_vdw = 8
 
integer, parameter, public restart_oct_m::restart_casida = 9
 
integer, parameter, public restart_oct_m::restart_oct = 10
 
integer, parameter, public restart_oct_m::restart_partition = 11
 
integer, parameter, public restart_oct_m::restart_proj = 12
 
integer, parameter, public restart_oct_m::restart_iteration = 13
 
integer, parameter, public restart_oct_m::restart_custom = 14
 
integer, parameter, public restart_oct_m::restart_type_dump = 1
 
integer, parameter, public restart_oct_m::restart_type_load = 2
 
integer, parameter, public restart_oct_m::restart_flag_states = 1
 For each data type, we can write different information into the restart file, which are selected by the restart flags: More...
 
integer, parameter, public restart_oct_m::restart_flag_rho = 2
 
integer, parameter, public restart_oct_m::restart_flag_vhxc = 4
 
integer, parameter, public restart_oct_m::restart_flag_mix = 8
 
integer, parameter, public restart_oct_m::restart_flag_skip = 16
 
integer, parameter, public restart_oct_m::restart_flag_literal = 32
 
character(len=4), dimension(2), parameter restart_oct_m::type_string = (/ "DUMP", "LOAD"/)
 
type(restart_basic_data_t), dimension(restart_undefined:restart_n_data_types), parameter restart_oct_m::basic_info = [ restart_basic_data_t("Undefined", ""), restart_basic_data_t("All", ""), restart_basic_data_t("Ground-state", GS_DIR), restart_basic_data_t("Unoccupied states", GS_DIR), restart_basic_data_t("Time-dependent", TD_DIR), restart_basic_data_t("EM Resp.", EM_RESP_DIR), restart_basic_data_t("EM Resp. FD", EM_RESP_FD_DIR), restart_basic_data_t("KdotP", KDOTP_DIR), restart_basic_data_t("Vib. Modes", VIB_MODES_DIR), restart_basic_data_t("VdW", VDW_DIR), restart_basic_data_t("Casida", CASIDA_DIR), restart_basic_data_t("Optimal Control", OCT_DIR), restart_basic_data_t("Mesh Partition", PARTITION_DIR, RESTART_FLAG_SKIP), restart_basic_data_t("GS for TDOutput", GS_DIR), restart_basic_data_t("Iteration counter", ITERATION_DIR), restart_basic_data_t("Custom data", "") ]
 Information about the components for a given system. More...