Octopus
output_oct_m Module Reference

this module contains the output system More...

Detailed Description

this module contains the output system

Functions/Subroutines

subroutine, public output_init (outp, namespace, space, st, gr, nst, ks)
 
subroutine, public output_check_generalized_overlap (outp, st, namespace, has_paw)
 Fence the requested outputs that are not yet correct with a generalized overlap. More...
 
subroutine, public output_all (outp, namespace, space, dir, gr, ions, iter, st, hm, ks)
 
subroutine output_localization_funct (outp, namespace, space, dir, st, hm, gr, ions, iter)
 
subroutine calc_electronic_pressure (st, hm, gr, pressure)
 
subroutine output_energy_density (outp, namespace, space, dir, hm, ks, st, ions, gr)
 
logical function, public output_need_exchange (outp)
 
subroutine output_dftu_orbitals (outp, dir, namespace, space, this, st, mesh, ions, has_phase)
 
logical function, public output_needs_current (outp, states_are_real)
 
subroutine, public output_states (outp, namespace, space, dir, st, gr, ions, hm, iter)
 
subroutine, public output_current_flow (outp, namespace, space, dir, gr, st, kpoints)
 
subroutine, public output_hamiltonian (outp, namespace, space, dir, hm, st, der, ions, gr, iter, grp)
 
subroutine, public output_scalar_pot (outp, namespace, space, dir, mesh, ions, ext_partners, grp, time)
 
subroutine output_xc_torque (outp, namespace, dir, mesh, hm, st, ions, space)
 
subroutine, public zoutput_lr (outp, namespace, space, dir, st, mesh, lr, idir, isigma, ions, pert_unit)
 
subroutine, public doutput_lr (outp, namespace, space, dir, st, mesh, lr, idir, isigma, ions, pert_unit)
 

Function/Subroutine Documentation

◆ output_init()

subroutine, public output_oct_m::output_init ( type(output_t), intent(out)  outp,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
type(states_elec_t), intent(in)  st,
type(grid_t), intent(in)  gr,
integer, intent(in)  nst,
type(v_ks_t), intent(inout)  ks 
)

Definition at line 186 of file output.F90.

◆ output_check_generalized_overlap()

subroutine, public output_oct_m::output_check_generalized_overlap ( type(output_t), intent(in)  outp,
type(states_elec_t), intent(in)  st,
type(namespace_t), intent(in)  namespace,
logical, intent(in)  has_paw 
)

Fence the requested outputs that are not yet correct with a generalized overlap.

For PAW the density (density_ae), kinetic-energy density, ELF and energy density are reconstructed from the one-center terms (n^1 - ntilde^1, tau^1 - tautilde^1), and the current carries the augmentation contribution, so they are allowed. For plain ultrasoft (no on-site engine) the (kinetic-)energy-density / ELF reconstruction is not available and stays fenced. The current is still flagged experimental for both (the one-center current correction is not yet validated for continuity), the heat current is not implemented, and the electronic pressure, the matrix elements and the projected DOS miss the augmentation contribution. The density, potentials, wavefunctions, forces, magnetization, DOS, etc. are unaffected. This must be called AFTER the Hamiltonian has set strequires_generalized_overlap.

Parameters
[in]has_pawPAW on-site engine available (reconstruction possible)

Definition at line 472 of file output.F90.

◆ output_all()

subroutine, public output_oct_m::output_all ( type(output_t), intent(in)  outp,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
character(len=*), intent(in)  dir,
type(grid_t), intent(in)  gr,
type(ions_t), intent(in)  ions,
integer, intent(in)  iter,
type(states_elec_t), intent(inout)  st,
type(hamiltonian_elec_t), intent(inout)  hm,
type(v_ks_t), intent(inout)  ks 
)

Definition at line 532 of file output.F90.

◆ output_localization_funct()

subroutine output_oct_m::output_localization_funct ( type(output_t), intent(in)  outp,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
character(len=*), intent(in)  dir,
type(states_elec_t), intent(inout)  st,
type(hamiltonian_elec_t), intent(in)  hm,
type(grid_t), intent(in)  gr,
type(ions_t), intent(in)  ions,
integer, intent(in)  iter 
)
private

Definition at line 677 of file output.F90.

◆ calc_electronic_pressure()

subroutine output_oct_m::calc_electronic_pressure ( type(states_elec_t), intent(inout)  st,
type(hamiltonian_elec_t), intent(in)  hm,
type(grid_t), intent(in)  gr,
real(real64), dimension(:), intent(out), contiguous  pressure 
)
private

Definition at line 813 of file output.F90.

◆ output_energy_density()

subroutine output_oct_m::output_energy_density ( type(output_t), intent(in)  outp,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
character(len=*), intent(in)  dir,
type(hamiltonian_elec_t), intent(in)  hm,
type(v_ks_t), intent(inout)  ks,
type(states_elec_t), intent(in)  st,
type(ions_t), intent(in)  ions,
type(grid_t), intent(in)  gr 
)
private

Definition at line 861 of file output.F90.

◆ output_need_exchange()

logical function, public output_oct_m::output_need_exchange ( type(output_t), intent(in)  outp)

Definition at line 942 of file output.F90.

◆ output_dftu_orbitals()

subroutine output_oct_m::output_dftu_orbitals ( type(output_t), intent(in)  outp,
character(len=*), intent(in)  dir,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
type(lda_u_t), intent(in)  this,
type(states_elec_t), intent(in)  st,
class(mesh_t), intent(in)  mesh,
type(ions_t), intent(in)  ions,
logical, intent(in)  has_phase 
)
private

Definition at line 952 of file output.F90.

◆ output_needs_current()

logical function, public output_oct_m::output_needs_current ( type(output_t), intent(in)  outp,
logical, intent(in)  states_are_real 
)

Definition at line 1045 of file output.F90.

◆ output_states()

subroutine, public output_oct_m::output_states ( type(output_t), intent(in)  outp,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
character(len=*), intent(in)  dir,
type(states_elec_t), intent(in)  st,
type(grid_t), intent(in)  gr,
type(ions_t), intent(in)  ions,
type(hamiltonian_elec_t), intent(in)  hm,
integer, intent(in)  iter 
)

Definition at line 1087 of file output.F90.

◆ output_current_flow()

subroutine, public output_oct_m::output_current_flow ( type(output_t), intent(in)  outp,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
character(len=*), intent(in)  dir,
type(grid_t), intent(in)  gr,
type(states_elec_t), intent(in)  st,
type(kpoints_t), intent(in)  kpoints 
)

Definition at line 1405 of file output.F90.

◆ output_hamiltonian()

subroutine, public output_oct_m::output_hamiltonian ( type(output_t), intent(in)  outp,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
character(len=*), intent(in)  dir,
type(hamiltonian_elec_t), intent(in)  hm,
type(states_elec_t), intent(inout)  st,
type(derivatives_t), intent(in)  der,
type(ions_t), intent(in)  ions,
type(grid_t), intent(in)  gr,
integer, intent(in)  iter,
type(mpi_grp_t), intent(in), optional  grp 
)
Parameters
[in]grpthe group that shares the same data, must contain the domains group

Definition at line 1520 of file output.F90.

◆ output_scalar_pot()

subroutine, public output_oct_m::output_scalar_pot ( type(output_t), intent(in)  outp,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
character(len=*), intent(in)  dir,
class(mesh_t), intent(in)  mesh,
type(ions_t), intent(in)  ions,
type(partner_list_t), intent(in)  ext_partners,
type(mpi_grp_t), intent(in)  grp,
real(real64), intent(in), optional  time 
)

Definition at line 1804 of file output.F90.

◆ output_xc_torque()

subroutine output_oct_m::output_xc_torque ( type(output_t), intent(in)  outp,
type(namespace_t), intent(in)  namespace,
character(len=*), intent(in)  dir,
class(mesh_t), intent(in)  mesh,
type(hamiltonian_elec_t), intent(in)  hm,
type(states_elec_t), intent(in)  st,
type(ions_t), intent(in)  ions,
class(space_t), intent(in)  space 
)
private

Definition at line 1842 of file output.F90.

◆ zoutput_lr()

subroutine, public output_oct_m::zoutput_lr ( type(output_t), intent(in)  outp,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
character(len=*), intent(in)  dir,
type(states_elec_t), intent(in)  st,
class(mesh_t), intent(in)  mesh,
type(lr_t), intent(in)  lr,
integer, intent(in)  idir,
integer, intent(in)  isigma,
type(ions_t), intent(in)  ions,
type(unit_t), intent(in)  pert_unit 
)
Parameters
[in]idirdirection of perturbation
[in]pert_unitunit for perturbation

Definition at line 1949 of file output.F90.

◆ doutput_lr()

subroutine, public output_oct_m::doutput_lr ( type(output_t), intent(in)  outp,
type(namespace_t), intent(in)  namespace,
class(space_t), intent(in)  space,
character(len=*), intent(in)  dir,
type(states_elec_t), intent(in)  st,
class(mesh_t), intent(in)  mesh,
type(lr_t), intent(in)  lr,
integer, intent(in)  idir,
integer, intent(in)  isigma,
type(ions_t), intent(in)  ions,
type(unit_t), intent(in)  pert_unit 
)
Parameters
[in]idirdirection of perturbation
[in]pert_unitunit for perturbation

Definition at line 2187 of file output.F90.