Octopus
states_elec_restart_oct_m Module Reference

This module handles reading and writing restart information for the states_elec_t. More...

Detailed Description

This module handles reading and writing restart information for the states_elec_t.

Functions/Subroutines

subroutine, public states_elec_look_and_load (restart, namespace, space, st, mesh, kpoints, fixed_occ, is_complex, packed)
 
subroutine, public states_elec_dump (restart, space, st, mesh, kpoints, ierr, iter, lr, verbose)
 
subroutine states_elec_dump_adios2 (restart, st, mesh, ierr)
 
subroutine, public states_elec_load (restart, namespace, space, st, mesh, kpoints, fixed_occ, ierr, iter, lr, lowest_missing, label, verbose, skip)
 returns in ierr: <0 => Fatal error, or nothing read =0 => read all wavefunctions >0 => could only read ierr wavefunctions More...
 
subroutine states_elec_fill_random (st, mesh, kpoints, filled)
 Put random functions in orbitals that could not be read. More...
 
subroutine states_elec_load_adios2 (restart, st, mesh, iread, filled, restart_file_present, ierr, skip, lowest_missing)
 
subroutine, public states_elec_dump_rho (restart, st, mesh, ierr, iter)
 
subroutine, public states_elec_load_rho (restart, st, mesh, ierr)
 
subroutine, public states_elec_dump_frozen (restart, space, st, mesh, ierr)
 
subroutine, public states_elec_load_frozen (restart, space, st, mesh, ierr)
 
subroutine, public states_elec_read_user_def_orbitals (mesh, namespace, space, st)
 the routine reads formulas for user-defined wavefunctions from the input file and fills the respective orbitals More...
 
subroutine, public states_elec_dump_spin (restart, st, ierr)
 
subroutine, public states_elec_load_spin (restart, st, ierr)
 returns in ierr: <0 => Fatal error, or nothing read =0 => read all wavefunctions >0 => could only read ierr wavefunctions More...
 
subroutine, public states_elec_transform (st, namespace, space, restart, mesh, kpoints, prefix)
 

Function/Subroutine Documentation

◆ states_elec_look_and_load()

subroutine, public states_elec_restart_oct_m::states_elec_look_and_load ( type(restart_t), intent(in)  restart,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
type(states_elec_t), intent(inout), target  st,
class(mesh_t), intent(in)  mesh,
type(kpoints_t), intent(in)  kpoints,
logical, intent(in)  fixed_occ,
logical, intent(in), optional  is_complex,
logical, intent(in), optional  packed 
)
Parameters
[in]fixed_occShould we fix occupations or not
[in]packedDo we allocate packed wavefunctions or not. False means not on GPU

Definition at line 154 of file states_elec_restart.F90.

◆ states_elec_dump()

subroutine, public states_elec_restart_oct_m::states_elec_dump ( type(restart_t), intent(in)  restart,
class(space_t), intent(in)  space,
type(states_elec_t), intent(in), target  st,
class(mesh_t), intent(in)  mesh,
type(kpoints_t), intent(in)  kpoints,
integer, intent(out)  ierr,
integer, intent(in), optional  iter,
type(lr_t), intent(in), optional  lr,
logical, intent(in), optional  verbose 
)
Parameters
[in]lrif present, the linear response wfs are stored instead of the gs wfs

Definition at line 233 of file states_elec_restart.F90.

◆ states_elec_dump_adios2()

subroutine states_elec_restart_oct_m::states_elec_dump_adios2 ( type(restart_t), intent(in)  restart,
type(states_elec_t), intent(in), target  st,
class(mesh_t), intent(in)  mesh,
integer, intent(out)  ierr 
)
private

Definition at line 416 of file states_elec_restart.F90.

◆ states_elec_load()

subroutine, public states_elec_restart_oct_m::states_elec_load ( type(restart_t), intent(in)  restart,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
type(states_elec_t), intent(inout), target  st,
class(mesh_t), intent(in)  mesh,
type(kpoints_t), intent(in)  kpoints,
logical, intent(in)  fixed_occ,
integer, intent(out)  ierr,
integer, intent(out), optional  iter,
type(lr_t), intent(inout), optional  lr,
integer, dimension(:, :), intent(out), optional, contiguous  lowest_missing,
character(len=*), intent(in), optional  label,
logical, intent(in), optional  verbose,
logical, dimension(:), intent(in), optional, contiguous  skip 
)

returns in ierr: <0 => Fatal error, or nothing read =0 => read all wavefunctions >0 => could only read ierr wavefunctions

Parameters
[in,out]lrif present, the lr wfs are read instead of the gs wfs
[out]lowest_missingall states below this one were read successfully
[in]skipA mask for reading or skipping the states. For expert use only.

Definition at line 437 of file states_elec_restart.F90.

◆ states_elec_fill_random()

subroutine states_elec_restart_oct_m::states_elec_fill_random ( type(states_elec_t), intent(inout)  st,
class(mesh_t), intent(in)  mesh,
type(kpoints_t), intent(in)  kpoints,
logical, dimension(1:, st%st_start:, st%d%kpt%start:), intent(in)  filled 
)
private

Put random functions in orbitals that could not be read.

states_elec_generate_random draws from a SAVEd seed, so every rank must call it for the same global sequence (i.e. all spins, states and k-points, traversed in a consistent order).

Definition at line 883 of file states_elec_restart.F90.

◆ states_elec_load_adios2()

subroutine states_elec_restart_oct_m::states_elec_load_adios2 ( type(restart_t), intent(in)  restart,
type(states_elec_t), intent(inout), target  st,
class(mesh_t), intent(in)  mesh,
integer, intent(out)  iread,
logical, dimension(1:, st%st_start:, st%d%kpt%start:), intent(out)  filled,
logical, dimension(:, :, :), intent(in), contiguous  restart_file_present,
integer, intent(out)  ierr,
logical, dimension(:), intent(in), optional, contiguous  skip,
integer, dimension(:, :), intent(inout), optional, contiguous  lowest_missing 
)
private
Parameters
[in]skipA mask for reading or skipping the states. For expert use only.
[in,out]lowest_missingall states below this one were read successfully

Definition at line 922 of file states_elec_restart.F90.

◆ states_elec_dump_rho()

subroutine, public states_elec_restart_oct_m::states_elec_dump_rho ( type(restart_t), intent(in)  restart,
type(states_elec_t), intent(in)  st,
class(mesh_t), intent(in)  mesh,
integer, intent(out)  ierr,
integer, intent(in), optional  iter 
)

Definition at line 941 of file states_elec_restart.F90.

◆ states_elec_load_rho()

subroutine, public states_elec_restart_oct_m::states_elec_load_rho ( type(restart_t), intent(in)  restart,
type(states_elec_t), intent(inout)  st,
class(mesh_t), intent(in)  mesh,
integer, intent(out)  ierr 
)

Definition at line 1007 of file states_elec_restart.F90.

◆ states_elec_dump_frozen()

subroutine, public states_elec_restart_oct_m::states_elec_dump_frozen ( type(restart_t), intent(in)  restart,
class(space_t), intent(in)  space,
type(states_elec_t), intent(in)  st,
class(mesh_t), intent(in)  mesh,
integer, intent(out)  ierr 
)

Definition at line 1054 of file states_elec_restart.F90.

◆ states_elec_load_frozen()

subroutine, public states_elec_restart_oct_m::states_elec_load_frozen ( type(restart_t), intent(in)  restart,
class(space_t), intent(in)  space,
type(states_elec_t), intent(inout)  st,
class(mesh_t), intent(in)  mesh,
integer, intent(out)  ierr 
)

Definition at line 1125 of file states_elec_restart.F90.

◆ states_elec_read_user_def_orbitals()

subroutine, public states_elec_restart_oct_m::states_elec_read_user_def_orbitals ( class(mesh_t), intent(in)  mesh,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
type(states_elec_t), intent(inout)  st 
)

the routine reads formulas for user-defined wavefunctions from the input file and fills the respective orbitals

Definition at line 1193 of file states_elec_restart.F90.

◆ states_elec_dump_spin()

subroutine, public states_elec_restart_oct_m::states_elec_dump_spin ( type(restart_t), intent(in)  restart,
type(states_elec_t), intent(in)  st,
integer, intent(out)  ierr 
)

Definition at line 1429 of file states_elec_restart.F90.

◆ states_elec_load_spin()

subroutine, public states_elec_restart_oct_m::states_elec_load_spin ( type(restart_t), intent(in)  restart,
type(states_elec_t), intent(inout)  st,
integer, intent(out)  ierr 
)

returns in ierr: <0 => Fatal error, or nothing read =0 => read all wavefunctions >0 => could only read ierr wavefunctions

Definition at line 1486 of file states_elec_restart.F90.

◆ states_elec_transform()

subroutine, public states_elec_restart_oct_m::states_elec_transform ( type(states_elec_t), intent(inout)  st,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
type(restart_t), intent(inout)  restart,
class(mesh_t), intent(in)  mesh,
type(kpoints_t), intent(in)  kpoints,
character(len=*), intent(in), optional  prefix 
)

Definition at line 1549 of file states_elec_restart.F90.