48 use,
intrinsic :: iso_fortran_env
114 subroutine output_init(outp, namespace, space, st, gr, nst, ks)
115 type(output_t),
intent(out) :: outp
116 type(namespace_t),
intent(in) :: namespace
117 class(space_t),
intent(in) :: space
118 type(states_elec_t),
intent(in) :: st
119 type(grid_t),
intent(in) :: gr
120 integer,
intent(in) :: nst
121 type(v_ks_t),
intent(inout) :: ks
125 character(len=80) :: nst_string, default
132 if (outp%what(option__output__wfs_fourier))
then
134 message(1) =
"Wave functions in Fourier space not supported on GPUs."
141 if (outp%what(option__output__elf) .or. outp%what(option__output__elf_basins))
then
142 if (space%dim /= 2 .and. space%dim /= 3)
then
143 outp%what(option__output__elf) = .false.
144 outp%what(option__output__elf_basins) = .false.
145 write(
message(1),
'(a)')
'Cannot calculate ELF except in 2D and 3D.'
151 if (outp%what(option__output__mmb_wfs))
then
155 if (outp%what(option__output__xc_torque))
then
156 if (st%d%ispin /=
spinors)
then
157 write(
message(1),
'(a)')
'The output xc_torque can only be computed for spinors.'
160 if (space%dim /= 3)
then
161 write(
message(1),
'(a)')
'The output xc_torque can only be computed in the 3D case.'
165 if (outp%what(option__output__mmb_den))
then
174 if (outp%what(option__output__energy_density))
call messages_experimental(
"'Output = energy_density'", namespace=namespace)
175 if (outp%what(option__output__heat_current))
call messages_experimental(
"'Output = heat_current'", namespace=namespace)
177 if (outp%what(option__output__wfs) .or. outp%what(option__output__wfs_sqmod) &
178 .or. outp%what(option__output__wfs_ae))
then
190 write(nst_string,
'(i6)') nst
191 write(default,
'(a,a)')
"1-", trim(adjustl(nst_string))
192 call parse_variable(namespace,
'OutputWfsNumber', default, outp%wfs_list)
195 if (
parse_block(namespace,
'CurrentThroughPlane', blk) == 0)
then
196 if (.not. outp%what(option__output__j_flow))
then
197 outp%what(option__output__j_flow) = .
true.
198 call parse_variable(namespace,
'OutputInterval', 50, outp%output_interval(option__output__j_flow))
249 select case (space%dim)
267 norm = norm2(outp%plane%u(1:3))
269 write(
message(1),
'(a)')
'u-vector for CurrentThroughPlane cannot have norm zero.'
272 outp%plane%u(1:3) = outp%plane%u(1:3) / norm
274 norm = norm2(outp%plane%v(1:3))
276 write(
message(1),
'(a)')
'v-vector for CurrentThroughPlane cannot have norm zero.'
279 outp%plane%v(1:3) = outp%plane%v(1:3) / norm
281 outp%plane%n(1:3) =
dcross_product(outp%plane%u(1:3), outp%plane%v(1:3))
293 norm = norm2(outp%line%u(1:2))
295 write(
message(1),
'(a)')
'u-vector for CurrentThroughPlane cannot have norm zero.'
298 outp%line%u(1:2) = outp%line%u(1:2) / norm
300 outp%line%n(1) = -outp%line%u(2)
301 outp%line%n(2) = outp%line%u(1)
315 if (outp%what(option__output__matrix_elements))
then
318 outp%me%what = .false.
321 if (outp%what(option__output__berkeleygw))
then
323 message(1) =
"BerkeleyGW is not compatible with GPUs."
330 if (outp%what(option__output__potential_gradient) .and. .not. outp%what(option__output__potential))
then
331 outp%what(option__output__potential) = .
true.
332 outp%output_interval(option__output__potential) = outp%output_interval(option__output__potential_gradient)
344 call parse_variable(namespace,
'OutputDuringSCF', .false., outp%duringscf)
347 write(
message(1),
'(a)')
'Input variable RestartWriteInterval is obsolete.'
348 write(
message(2),
'(a)')
'Restart files are now written in periods of the wallclock time'
349 write(
message(3),
'(a)')
'given by RestartWallTimePeriod, so you can simply delete this variable.'
364 call parse_variable(namespace,
'OutputIterDir',
"output_iter", outp%iter_dir)
365 if (any(outp%what) .and. any(outp%output_interval > 0))
then
366 call io_mkdir(outp%iter_dir, namespace)
379 if (outp%what(option__output__current_dia))
then
380 message(1) =
"The diamagnetic current will be calculated only if CalculateDiamagneticCurrent = yes."
404 logical,
intent(in) :: has_paw
408 if (st%requires_generalized_overlap)
then
416 if (outp%what(option__output__current) .or. outp%what(option__output__current_dia) .or. &
417 outp%what(option__output__current_kpt) .or. outp%what(option__output__j_flow))
then
422 if (outp%what(option__output__heat_current))
then
430 if (.not. has_paw)
then
431 if (outp%what(option__output__elf) .or. outp%what(option__output__elf_basins) .or. &
432 outp%what(option__output__energy_density) .or. outp%what(option__output__kinetic_energy_density))
then
434 "Output of ELF / (kinetic-)energy-density with ultrasoft (non-PAW)", namespace=namespace)
438 if (outp%what(option__output__density_ae) .or. outp%what(option__output__wfs_ae))
then
440 "Output of the all-electron density / wavefunctions with ultrasoft (non-PAW)", namespace=namespace)
444 if (outp%what(option__output__el_pressure))
then
448 if (outp%what(option__output__matrix_elements))
then
451 if (outp%what(option__output__pdos))
then
460 subroutine output_all(outp, namespace, space, dir, gr, ions, iter, st, hm, ks)
463 class(
space_t),
intent(in) :: space
464 character(len=*),
intent(in) :: dir
465 type(
grid_t),
intent(in) :: gr
466 type(
ions_t),
intent(in) :: ions
467 integer,
intent(in) :: iter
470 type(
v_ks_t),
intent(inout) :: ks
472 integer :: idir, ierr, iunit
473 character(len=MAX_PATH_LEN) :: fname
478 if (any(outp%what))
then
479 message(1) =
"Info: Writing output to " // trim(dir)
484 if (outp%what_now(option__output__mesh_r, iter))
then
485 do idir = 1, space%dim
486 write(fname,
'(a,a)')
'mesh_r-',
index2axis(idir)
488 gr, gr%x_t(:,idir),
units_out%length, ierr, pos=ions%pos, atoms=ions%atom)
492 call output_states(outp, namespace, space, dir, st, gr, ions, hm, iter)
493 call output_hamiltonian(outp, namespace, space, dir, hm, st, gr%der, ions, gr, iter, st%st_kpt_mpi_grp)
496 if (outp%what_now(option__output__el_pressure, iter))
then
500 if (st%d%spin_channels > 1)
then
506 if (outp%what(option__output__kanamoriu) .and. hm%lda_u_level /=
dft_u_acbn0)
then
507 message(1) =
"kanamoriU output can only be computed for DFTULevel = dft_u_acbn0"
514 if (outp%what_now(option__output__j_flow, iter))
then
518 if (outp%what_now(option__output__geometry, iter))
then
519 if (
bitand(outp%how(option__output__geometry), option__outputformat__xcrysden) /= 0)
then
522 if (
bitand(outp%how(option__output__geometry), option__outputformat__xyz) /= 0)
then
523 call ions%write_xyz(trim(dir)//
'/geometry')
524 if (ions%space%is_periodic())
then
525 call ions%write_crystal(dir)
528 if (
bitand(outp%how(option__output__geometry), option__outputformat__vtk) /= 0)
then
529 call ions%write_vtk_geometry(trim(dir)//
'/geometry')
531 if (
bitand(outp%how(option__output__geometry), option__outputformat__poscar) /= 0)
then
532 call ions%write_poscar(trim(dir)//
'/POSCAR')
536 if (outp%what_now(option__output__forces, iter))
then
537 if (
bitand(outp%how(option__output__forces), option__outputformat__bild) /= 0)
then
538 call ions%write_bild_forces_file(dir,
"forces")
541 gr, st%system_grp, namespace, total_forces = ions%tot_force)
545 if (outp%what_now(option__output__matrix_elements, iter))
then
546 call output_me(outp%me, namespace, space, dir, st, gr, ions, hm)
549 if (outp%what_now(option__output__berkeleygw, iter))
then
553 if (outp%what_now(option__output__energy_density, iter))
then
557 if (outp%what_now(option__output__stress, iter))
then
559 iunit =
io_open(trim(dir)//
'/stress', namespace, action=
'write')
560 call output_stress(iunit, space%periodic_dim, st%stress_tensors, st%system_grp)
565 if (outp%what_now(option__output__occ_matrices, iter))&
568 if (outp%what_now(option__output__effectiveu, iter))&
571 if (outp%what_now(option__output__magnetization, iter))&
574 if (outp%what_now(option__output__local_orbitals, iter))&
575 call output_dftu_orbitals(outp, dir, namespace, space, hm%lda_u, st, gr, ions, hm%phase%is_allocated())
577 if (outp%what_now(option__output__kanamoriu, iter))&
580 if (ks%v_ks_photons%oep_full())
then
581 if (outp%what_now(option__output__photon_correlator, iter))
then
582 write(fname,
'(a)')
'photon_correlator'
583 call dio_function_output(outp%how(option__output__photon_correlator), dir, trim(fname), namespace, space, &
584 gr, ks%v_ks_photons%correlator(),
units_out%length, ierr, pos=ions%pos, atoms=ions%atom)
590 if (outp%what_now(option__output__xc_torque, iter))
then
592 write(
message(1),
'(a)')
'The output xc_torque can only be computed when there is a xc potential.'
608 class(
space_t),
intent(in) :: space
609 character(len=*),
intent(in) :: dir
612 type(
grid_t),
intent(in) :: gr
613 type(
ions_t),
intent(in) :: ions
614 integer,
intent(in) :: iter
616 real(real64),
allocatable :: f_loc(:,:)
617 real(real64),
allocatable :: rho_paw(:,:), tau_paw(:,:)
618 character(len=MAX_PATH_LEN) :: fname
619 integer :: is, ierr, imax
625 mpi_grp = st%dom_st_kpt_mpi_grp
631 safe_allocate(f_loc(1:gr%np, 1:max(imax, st%d%nspin)))
633 paw_ae = st%requires_generalized_overlap .and. hm%ep%has_paw
636 if (outp%what_now(option__output__elf, iter) .or. outp%what_now(option__output__elf_basins, iter))
then
637 assert(space%dim /= 1)
643 safe_allocate(rho_paw(1:gr%np, 1:st%d%nspin))
644 safe_allocate(tau_paw(1:gr%np, 1:st%d%nspin))
648 density = rho_paw, tau = tau_paw)
649 call elf_calc(space, st, gr, hm%kpoints, f_loc(:, 1:imax), &
650 rho_paw = rho_paw, tau_paw = tau_paw)
651 safe_deallocate_a(rho_paw)
652 safe_deallocate_a(tau_paw)
654 call elf_calc(space, st, gr, hm%kpoints, f_loc(:, 1:imax))
658 if (outp%what_now(option__output__elf, iter))
then
659 write(fname,
'(a)')
'elf_rs'
660 call dio_function_output(outp%how(option__output__elf), dir, trim(fname), namespace, space, gr, &
661 f_loc(:,imax),
unit_one, ierr, pos=ions%pos, atoms=ions%atom, grp = mpi_grp)
666 write(fname,
'(a,i1)')
'elf_rs-sp', is
667 call dio_function_output(outp%how(option__output__elf), dir, trim(fname), namespace, space, gr, &
668 f_loc(:, is),
unit_one, ierr, pos=ions%pos, atoms=ions%atom, grp = mpi_grp)
674 if (outp%what_now(option__output__elf_basins, iter))
then
675 call out_basins(f_loc(:,imax),
"elf_rs_basins", outp%how(option__output__elf_basins))
680 if (outp%what_now(option__output__bader, iter))
then
681 do is = 1, st%d%nspin
686 call dio_function_output(outp%how(option__output__bader), dir, trim(fname), namespace, space, gr, &
687 f_loc(:,is),
units_out%length**(-2 - space%dim), ierr, &
688 pos=ions%pos, atoms=ions%atom, grp = mpi_grp)
691 call out_basins(f_loc(:, is), fname, outp%how(option__output__bader))
696 if (outp%what_now(option__output__el_pressure, iter))
then
698 call dio_function_output(outp%how(option__output__el_pressure), dir,
"el_pressure", namespace, space, gr, &
699 f_loc(:,1),
unit_one, ierr, pos=ions%pos, atoms=ions%atom, grp = mpi_grp)
703 safe_deallocate_a(f_loc)
709 subroutine out_basins(ff, filename, output_how)
710 real(real64),
contiguous,
intent(in) :: ff(:)
711 character(len=*),
intent(in) :: filename
712 integer(int64),
intent(in) :: output_how
714 character(len=MAX_PATH_LEN) :: fname
721 call basins_analyze(basins, namespace, gr, ff(:), st%rho(:, 1:st%d%spin_channels), 0.01_real64)
724 real(basins%map, real64) , unit_one, ierr, pos=ions%pos, atoms=ions%atom, grp = mpi_grp)
727 write(fname,
'(4a)') trim(dir),
'/', trim(filename),
'.info'
728 iunit =
io_open(trim(fname), namespace, action =
'write')
744 type(
grid_t),
intent(in) :: gr
745 real(real64),
contiguous,
intent(out) :: pressure(:)
747 real(real64),
allocatable :: rho(:,:), lrho(:), tau(:,:)
748 real(real64) :: p_tf, dens
753 safe_allocate( rho(1:gr%np_part, 1:st%d%nspin))
754 safe_allocate(lrho(1:gr%np))
755 safe_allocate( tau(1:gr%np, 1:st%d%nspin))
762 do is = 1, st%d%spin_channels
766 pressure(:) = pressure(:) + &
771 dens = sum(rho(ii,1:st%d%spin_channels))
778 pressure(ii) = pressure(ii) + (dens*hm%ks_pot%vxc(ii,1) - hm%energy%exchange - hm%energy%correlation)
780 pressure(ii) = pressure(ii)/p_tf
792 class(
space_t),
intent(in) :: space
793 character(len=*),
intent(in) :: dir
795 type(
v_ks_t),
intent(inout) :: ks
797 type(
ions_t),
intent(in) :: ions
798 type(
grid_t),
intent(in) :: gr
800 integer :: is, ierr, ip
801 character(len=MAX_PATH_LEN) :: fname
803 real(real64),
allocatable :: energy_density(:, :)
804 real(real64),
allocatable :: ex_density(:)
805 real(real64),
allocatable :: ec_density(:)
806 real(real64),
allocatable :: nhat(:,:)
807 real(real64) :: xc_energy
812 safe_allocate(energy_density(1:gr%np, 1:st%d%nspin))
821 if (st%requires_generalized_overlap .and. hm%ep%has_paw)
then
826 do is = 1, st%d%spin_channels
828 energy_density(ip, is) = energy_density(ip, is) + st%rho(ip, is)*hm%ep%vpsl(ip)
833 do is = 1, st%d%spin_channels
835 energy_density(ip, is) = energy_density(ip, is) +
m_half*st%rho(ip, is)*hm%ks_pot%vhartree(ip)
840 safe_allocate(ex_density(1:gr%np))
841 safe_allocate(ec_density(1:gr%np))
844 call xc_get_vxc(gr, ks%xc, st, hm%kpoints, hm%psolver, namespace, space, st%rho, st%d%ispin, &
845 hm%ions%latt%rcell_volume, ex_density = ex_density, ec_density = ec_density, nhat = nhat)
846 safe_deallocate_a(nhat)
849 xc_energy = ex_density(ip) + ec_density(ip)
850 do is = 1, st%d%spin_channels
851 energy_density(ip, is) = energy_density(ip, is) + xc_energy
855 safe_deallocate_a(ex_density)
856 safe_deallocate_a(ec_density)
858 do is = 1, st%d%spin_channels
860 call dio_function_output(outp%how(option__output__energy_density), dir, trim(fname), namespace, space, gr, &
861 energy_density(:, is),
unit_one, ierr, pos=ions%pos, atoms=ions%atom, grp = st%dom_st_kpt_mpi_grp)
863 safe_deallocate_a(energy_density)
873 need_exx =(outp%what(option__output__berkeleygw) &
874 .or. outp%me%what(option__outputmatrixelements__two_body) &
875 .or. outp%me%what(option__outputmatrixelements__two_body_exc_k))
882 character(len=*),
intent(in) :: dir
884 class(
space_t),
intent(in) :: space
885 type(
lda_u_t),
intent(in) :: this
887 class(
mesh_t),
intent(in) :: mesh
888 type(
ions_t),
intent(in) :: ions
889 logical,
intent(in) :: has_phase
891 integer :: ios, im, ik, idim, ierr
892 complex(real64),
allocatable :: tmp(:)
893 real(real64),
allocatable :: dtmp(:)
896 character(len=MAX_PATH_LEN) :: fname
902 if (this%basis%use_submesh)
then
904 safe_allocate(dtmp(1:mesh%np))
906 safe_allocate(tmp(1:mesh%np))
910 do ios = 1, this%norbsets
911 os => this%orbsets(ios)
912 do ik = st%d%kpt%start, st%d%kpt%end
913 do im = 1, this%orbsets(ios)%norbs
914 do idim = 1, min(os%ndim, st%d%dim)
916 if (min(os%ndim, st%d%dim) > 1)
then
917 write(fname,
'(a,i1,a,i3.3,a,i8.8,a,i1)')
'orb', im,
'-os', ios,
'-k', ik,
'-sp', idim
919 write(fname,
'(a,i1,a,i3.3,a,i8.8)')
'orb', im,
'-os', ios,
'-k', ik
922 if (min(os%ndim, st%d%dim) > 1)
then
923 write(fname,
'(a,i1,a,i3.3,a,i1)')
'orb', im,
'-os', ios,
'-sp', idim
925 write(fname,
'(a,i1,a,i3.3)')
'orb', im,
'-os', ios
929 if (.not. this%basis%use_submesh)
then
930 call zio_function_output(outp%how(option__output__local_orbitals), dir, fname, namespace, space, &
931 mesh, os%eorb_mesh(1:mesh%np,im,idim,ik), fn_unit, ierr, pos=ions%pos, atoms=ions%atom)
935 call zio_function_output(outp%how(option__output__local_orbitals), dir, fname, namespace, space, &
936 mesh, tmp, fn_unit, ierr, pos=ions%pos, atoms=ions%atom)
939 if (.not. this%basis%use_submesh)
then
941 call dio_function_output(outp%how(option__output__local_orbitals), dir, fname, namespace, space, mesh, &
942 os%dorb(1:mesh%np,idim,im), fn_unit, ierr, pos=ions%pos, atoms=ions%atom)
944 call zio_function_output(outp%how(option__output__local_orbitals), dir, fname, namespace, space, mesh, &
945 os%zorb(1:mesh%np,idim,im), fn_unit, ierr, pos=ions%pos, atoms=ions%atom)
951 call dio_function_output(outp%how(option__output__local_orbitals), dir, fname, namespace, space, &
952 mesh, dtmp, fn_unit, ierr, pos=ions%pos, atoms=ions%atom)
956 call zio_function_output(outp%how(option__output__local_orbitals), dir, fname, namespace, space, &
957 mesh, tmp, fn_unit, ierr, pos=ions%pos, atoms=ions%atom)
966 safe_deallocate_a(tmp)
967 safe_deallocate_a(dtmp)
975 logical,
intent(in) :: states_are_real
979 if (outp%what(option__output__current) &
980 .or. outp%what(option__output__current_dia) &
981 .or. outp%what(option__output__heat_current) &
982 .or. outp%what(option__output__j_flow) &
983 .or. outp%what(option__output__current_kpt))
then
984 if (.not. states_are_real)
then
987 message(1) =
'No current density output for real states since it is identically zero.'
995#include "output_states_inc.F90"
997#include "output_h_inc.F90"
1000#include "complex.F90"
1001#include "output_linear_response_inc.F90"
1005#include "output_linear_response_inc.F90"
pure logical function, public accel_is_enabled()
subroutine, public basins_write(this, mesh, iunit)
subroutine, public basins_init(this, namespace, mesh)
subroutine, public basins_analyze(this, namespace, mesh, f, rho, threshold)
subroutine, public basins_end(this)
This module implements a calculator for the density and defines related functions.
subroutine, public density_calc(st, gr, density, istin, ep, vnl, phase)
Computes the density from the orbitals in st.
This module calculates the derivatives (gradients, Laplacians, etc.) of a function.
subroutine, public dderivatives_lapl(der, ff, op_ff, ghost_update, set_bc, factor)
apply the Laplacian to a mesh function
Module that handles computing and output of various density of states.
integer, parameter, public unpolarized
Parameters...
integer, parameter, public spinors
subroutine, public elf_calc(space, st, gr, kpoints, elf, de, rho_paw, tau_paw)
(time-dependent) electron localization function, (TD)ELF.
Fast Fourier Transform module. This module provides a single interface that works with different FFT ...
real(real64), parameter, public m_two
real(real64), parameter, public m_zero
real(real64), parameter, public m_four
real(real64), parameter, public m_pi
some mathematical constants
complex(real64), parameter, public m_z0
integer, parameter, public generalized_kohn_sham_dft
integer, parameter, public kohn_sham_dft
real(real64), parameter, public m_epsilon
real(real64), parameter, public m_half
real(real64), parameter, public m_one
real(real64), parameter, public m_three
real(real64), parameter, public m_five
This module implements the underlying real-space grid.
subroutine, public hamiltonian_elec_xc_nhat(this, mesh, nhat)
PAW with the Bloechl compensation scheme (usexcnhat = false): the compensation charge n^hat_s(r) = su...
This module defines classes and functions for interaction partners.
subroutine, public zio_function_output(how, dir, fname, namespace, space, mesh, ff, unit, ierr, pos, atoms, grp, root)
Top-level IO routine for functions defined on the mesh.
subroutine, public io_function_read_what_how_when(namespace, space, what, how, output_interval, what_tag_in, how_tag_in, output_interval_tag_in, ignore_error)
subroutine, public dio_function_output(how, dir, fname, namespace, space, mesh, ff, unit, ierr, pos, atoms, grp, root)
Top-level IO routine for functions defined on the mesh.
subroutine, public write_xsf_geometry_file(dir, fname, space, latt, pos, atoms, mesh, mpi_grp, namespace, total_forces)
subroutine, public io_close(iunit, grp)
subroutine, public io_mkdir(fname, namespace, parents)
integer function, public io_open(file, namespace, action, status, form, position, die, recl, grp)
A module to handle KS potential, without the external potential.
subroutine, public lda_u_write_occupation_matrices(dir, this, st, namespace)
Prints the occupation matrices at the end of the scf calculation.
subroutine, public lda_u_write_kanamoriu(dir, st, this, namespace)
subroutine, public lda_u_write_effectiveu(dir, this, st, namespace)
subroutine, public lda_u_write_magnetization(dir, this, ions, mesh, st, namespace)
integer, parameter, public dft_u_none
integer, parameter, public dft_u_acbn0
System information (time, memory, sysname)
This module is intended to contain "only mathematical" functions and procedures.
pure real(real64) function, dimension(1:3), public dcross_product(a, b)
This module defines various routines, operating on mesh functions.
This module defines the meshes, which are used in Octopus.
subroutine, public messages_not_implemented(feature, namespace)
subroutine, public messages_warning(no_lines, 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_experimental(name, namespace)
subroutine, public messages_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
subroutine, public output_berkeleygw(bgw, namespace, space, dir, st, gr, ks, hm, ions)
subroutine, public output_berkeleygw_init(nst, namespace, bgw, periodic_dim)
this module contains the low-level part of the output system
character(len=max_path_len) function, public get_filename_with_spin(output, nspin, spin_index)
Returns the filame as output, or output-spX is spin polarized.
subroutine, public output_me_init(this, namespace, space, st, gr, nst)
subroutine, public output_me(this, namespace, space, dir, st, gr, ions, hm)
this module contains the output system
subroutine calc_electronic_pressure(st, hm, gr, pressure)
subroutine, public output_states(outp, namespace, space, dir, st, gr, ions, hm, iter)
subroutine, public output_scalar_pot(outp, namespace, space, dir, mesh, ions, ext_partners, grp, time)
logical function, public output_needs_current(outp, states_are_real)
subroutine, public output_hamiltonian(outp, namespace, space, dir, hm, st, der, ions, gr, iter, grp)
subroutine, public output_all(outp, namespace, space, dir, gr, ions, iter, st, hm, ks)
logical function, public output_need_exchange(outp)
subroutine, public output_init(outp, namespace, space, st, gr, nst, ks)
subroutine output_xc_torque(outp, namespace, dir, mesh, hm, st, ions, space)
subroutine, public output_current_flow(outp, namespace, space, dir, gr, st, kpoints)
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)
subroutine output_energy_density(outp, namespace, space, dir, hm, ks, st, ions, gr)
subroutine output_dftu_orbitals(outp, dir, namespace, space, this, st, mesh, ions, has_phase)
subroutine, public output_check_generalized_overlap(outp, st, namespace, has_paw)
Fence the requested outputs that are not yet correct with a generalized overlap.
subroutine output_localization_funct(outp, namespace, space, dir, st, hm, gr, ions, iter)
logical function, public parse_is_defined(namespace, name)
integer function, public parse_block(namespace, name, blk, check_varinfo_)
All-electron reconstruction of mesh fields from the PAW one-center terms.
subroutine, public paw_ae_reconstruct_field(this, epot, mesh, density, tau, current)
Reconstruct all-electron mesh fields from the PAW one-center terms. Any subset of the supported quant...
/* To use the profiling module, call profiling_in and profiling_out with the label of the region as a...
subroutine, public profiling_out(label)
Increment out counter and sum up difference between entry and exit time.
subroutine, public profiling_in(label, exclude)
Increment in counter and save entry time.
pure logical function, public states_are_real(st)
This module defines routines to write information about states.
subroutine, public states_elec_calc_quantities(gr, st, kpoints, nlcc, kinetic_energy_density, paramagnetic_current, density_gradient, density_laplacian, gi_kinetic_energy_density, st_end)
calculated selected quantities
This module implements the calculation of the stress tensor.
subroutine, public output_stress(iunit, space_dim, stress_tensors, mpi_grp, all_terms)
subroutine, public add_last_slash(str)
Adds a '/' in the end of the string, only if it missing. Useful for directories.
brief This module defines the class unit_t which is used by the unit_systems_oct_m module.
This module defines the unit system, used for input and output.
type(unit_system_t), public units_out
type(unit_system_t), public units_inp
the units systems for reading and writing
type(unit_t), public unit_one
some special units required for particular quantities
This module is intended to contain simple general-purpose utility functions and procedures.
character pure function, public index2axis(idir)
subroutine, public v_ks_calculate_current(this, calc_cur)
subroutine, public xc_get_vxc(gr, xcs, st, kpoints, psolver, namespace, space, rho, ispin, rcell_volume, vxc, ex, ec, deltaxc, vtau, ex_density, ec_density, stress_xc, force_orbitalfree, force_host, nhat)
subroutine out_basins(ff, filename, output_how)
Description of the grid, containing information on derivatives, stencil, and symmetries.
Class to describe DFT+U parameters.
Describes mesh distribution to nodes.
This is defined even when running serial.
Output information for BerkeleyGW.
The states_elec_t class contains all electronic wave functions.