36 use,
intrinsic :: iso_fortran_env
85 logical :: computepdos
87 integer :: ldos_nenergies = -1
88 real(real64),
allocatable :: ldos_energies(:)
90 integer(int64) :: method
99 subroutine dos_init(this, namespace, st, kpoints)
100 type(dos_t),
intent(out) :: this
101 type(namespace_t),
intent(in) :: namespace
102 type(states_elec_t),
intent(in) :: st
103 type(kpoints_t),
intent(in) :: kpoints
105 real(real64) :: evalmin, evalmax, eextend
113 npath = kpoints%nkpt_in_path()
114 if (st%nik > npath)
then
115 evalmin = minval(st%eigenval(1:st%nst, 1:(st%nik-npath)))
116 evalmax = maxval(st%eigenval(1:st%nst, 1:(st%nik-npath)))
118 evalmin = minval(st%eigenval(1:st%nst, 1:st%nik))
119 evalmax = maxval(st%eigenval(1:st%nst, 1:st%nik))
122 eextend = (evalmax - evalmin) /
m_four
140 call parse_variable(namespace,
'DOSMethod', option__dosmethod__smear, this%method)
203 call parse_variable(namespace,
'DOSGamma', 0.008_real64, this%gamma)
219 call parse_variable(namespace,
'DOSComputePDOS', .false., this%computepdos)
222 this%de = (this%emax - this%emin) / (this%epoints - 1)
234 safe_allocate(this%ldos_energies(1:this%ldos_nenergies))
235 do ie = 1, this%ldos_nenergies
240 this%ldos_nenergies = -1
248 type(
dos_t),
intent(inout) :: this
252 safe_deallocate_a(this%ldos_energies)
253 this%ldos_nenergies = -1
260 subroutine dos_write_dos(this, dir, st, box, ions, mesh, hm, namespace)
261 type(
dos_t),
intent(in) :: this
262 character(len=*),
intent(in) :: dir
264 class(
box_t),
intent(in) :: box
265 type(
ions_t),
target,
intent(in) :: ions
266 class(
mesh_t),
intent(in) :: mesh
270 integer :: ie, ik, ist, is, ns, maxdos, ib, ind, nvertices
271 integer,
allocatable :: iunit(:)
272 real(real64) :: energy
273 real(real64),
allocatable :: tdos(:)
274 real(real64),
allocatable :: dos(:,:,:)
275 character(len=64) :: filename,format_str
278 integer :: ii, ll, mm, nn, work, norb, work2
279 integer :: ia, iorb, idim
280 real(real64) :: threshold
281 real(real64),
allocatable :: ddot(:,:,:)
282 complex(real64),
allocatable :: zdot(:,:,:)
283 real(real64),
allocatable :: weight(:,:,:)
289 real(real64) :: e_simplex(20), a_simplex(4), dos_simplex(4)
295 if (st%d%nspin == 2) ns = 2
298 smear%method = this%smear_func
301 if (st%system_grp%is_root())
then
303 safe_allocate(dos(1:this%epoints, 1:st%nst, 0:ns-1))
304 safe_allocate(iunit(0:ns-1))
311 write(filename,
'(a,i5.5,a,i1.1,a)')
'dos-', ist,
'-', is+1,
'.dat'
313 write(filename,
'(a,i5.5,a)')
'dos-', ist,
'.dat'
315 iunit(is) =
io_open(trim(dir)//
'/'//trim(filename), namespace, action=
'write')
320 do ie = 1, this%epoints
321 energy = this%emin + (ie - 1) * this%de
323 select case (this%method)
324 case (option__dosmethod__smear)
326 do ik = 1, st%nik, ns
328 dos(ie, ist, is) = dos(ie, ist, is) + st%kweights(ik+is) / this%gamma * &
332 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
334 assert(
associated(hm%kpoints%reduced%simplex))
335 simplex => hm%kpoints%reduced%simplex
336 nvertices = simplex%rdim + 1
337 assert(nvertices <= 4)
340 do ii = 1, simplex%n_simplices
342 do ll = 1, simplex%sdim
343 ik = simplex%simplices(ii, ll)
344 ik = ns * (ik - 1) + 1
345 e_simplex(ll) = st%eigenval(ist, ik+is)
347 call simplex_dos(simplex%rdim, e_simplex(1:simplex%sdim), energy, dos_simplex(1:nvertices))
348 dos(ie, ist, is) = dos(ie, ist, is) + sum(dos_simplex(1:nvertices)) / simplex%n_points
368 safe_allocate(tdos(1))
373 write(filename,
'(a,i1.1,a)')
'total-dos-', is+1,
'.dat'
374 iunit(is) =
io_open(trim(dir)//
'/'//trim(filename), namespace, action=
'write')
376 write(iunit(is),
'(3a)')
'# energy [', trim(
units_abbrev(
units_out%energy)),
'], total DOS (spin-resolved)'
378 do ie = 1, this%epoints
379 energy = this%emin + (ie - 1) * this%de
382 tdos(1) = tdos(1) + dos(ie, ist, is)
394 iunit(0) =
io_open(trim(dir)//
'/'//
'total-dos.dat', namespace, action=
'write')
398 do ie = 1, this%epoints
399 energy = this%emin + (ie - 1) * this%de
403 tdos(1) = tdos(1) + dos(ie, ist, is)
413 safe_deallocate_a(tdos)
417 iunit(0) =
io_open(trim(dir)//
'/'//
'total-dos-efermi.dat', namespace, action=
'write')
419 '] in a format compatible with total-dos.dat'
422 maxdos = st%smear%el_per_state * st%nst
432 if (this%computepdos)
then
435 call parse_variable(namespace,
'AOThreshold', 0.01_real64, threshold)
438 do ia = 1, ions%natoms
445 os%spec => ions%atom(ia)%species
449 do iorb = 1, os%spec%get_niwfs()
450 call os%spec%get_iwf_ilm(iorb, 1, ii, ll, mm)
451 call os%spec%get_iwf_n(iorb, 1, nn)
457 option__aotruncation__ao_full, threshold)
463 os%use_submesh = .false.
464 os%allocated_on_mesh = .
true.
465 os%spec => ions%atom(ia)%species
467 do work = 1, os%norbs
471 ions%atom(ia)%species, mesh, os%sphere, os%ii, os%ll, os%jj, &
472 os, work, os%radius, os%ndim, use_mesh=.not.os%use_submesh, &
473 normalize = normalize)
476 ions%atom(ia)%species, mesh, os%sphere, os%ii, os%ll, os%jj, &
477 os, work, os%radius, os%ndim, &
478 use_mesh = .not. hm%phase%is_allocated() .and. .not. os%use_submesh, &
479 normalize = normalize)
483 if (hm%phase%is_allocated())
then
485 safe_allocate(os%phase(1:os%sphere%np, st%d%kpt%start:st%d%kpt%end))
488 if (.not. os%use_submesh)
then
489 safe_allocate(os%eorb_mesh(1:mesh%np, 1:os%norbs, 1:os%ndim, st%d%kpt%start:st%d%kpt%end))
490 os%eorb_mesh(:,:,:,:) =
m_zero
492 safe_allocate(os%eorb_submesh(1:os%sphere%np, 1:os%ndim, 1:os%norbs, st%d%kpt%start:st%d%kpt%end))
493 os%eorb_submesh(:,:,:,:) =
m_zero
497 os%ldorbs_eorb = max(
pad_pow2(os%sphere%np), 1)
498 if(.not. os%use_submesh) os%ldorbs_eorb = max(
pad_pow2(os%sphere%mesh%np), 1)
500 safe_allocate(os%buff_eorb(st%d%kpt%start:st%d%kpt%end))
501 do ik= st%d%kpt%start, st%d%kpt%end
507 vec_pot = hm%hm_base%uniform_vector_potential, &
508 vec_pot_var = hm%hm_base%vector_potential)
517 if (st%system_grp%is_root())
then
519 write(filename,
'(a, i4.4, a1, a, i1.1, a1,a)')
'pdos-at', ia,
'-', trim(os%spec%get_label()), &
522 write(filename,
'(a, i4.4, a1, a, a1,a)')
'pdos-at', ia,
'-', trim(os%spec%get_label()), &
526 iunit(0) =
io_open(trim(dir)//
'/'//trim(filename), namespace, action=
'write')
529 '], projected DOS (total and orbital resolved)'
533 safe_allocate(ddot(1:st%d%dim, 1:os%norbs, 1:st%block_size))
535 safe_allocate(zdot(1:st%d%dim, 1:os%norbs, 1:st%block_size))
538 safe_allocate(weight(1:os%norbs,1:st%nik,1:st%nst))
539 weight(1:os%norbs,1:st%nik,1:st%nst) =
m_zero
541 do ik = st%d%kpt%start, st%d%kpt%end
542 do ib = st%group%block_start, st%group%block_end
544 if (hm%phase%is_allocated())
then
546 call st%group%psib(ib, ik)%copy_to(epsib)
547 call hm%phase%apply_to(mesh, mesh%np, .false., epsib, src = st%group%psib(ib, ik))
549 epsib => st%group%psib(ib, ik)
554 do ist = 1, st%group%psib(ib, ik)%nst
555 ind = st%group%psib(ib, ik)%ist(ist)
556 do iorb = 1, os%norbs
557 do idim = 1, st%d%dim
558 weight(iorb, ik, ind) = weight(iorb, ik, ind) + st%kweights(ik) * abs(ddot(idim, iorb, ist))**2
564 do ist = 1, st%group%psib(ib, ik)%nst
565 ind = st%group%psib(ib, ik)%ist(ist)
566 do iorb = 1, os%norbs
567 do idim = 1, st%d%dim
568 weight(iorb, ik, ind) = weight(iorb, ik, ind) + st%kweights(ik) * abs(zdot(idim, iorb, ist))**2
574 if (hm%phase%is_allocated())
then
575 call epsib%end(copy=.false.)
576 safe_deallocate_p(epsib)
582 if (st%parallel_in_states .or. st%d%kpt%parallel)
then
586 safe_deallocate_a(ddot)
587 safe_deallocate_a(zdot)
589 if (st%system_grp%is_root())
then
590 write(format_str,
'(a,i5,a)')
'(', os%norbs+2,
'es25.16E3)'
591 safe_allocate(tdos(1:os%norbs))
592 do ie = 1, this%epoints
593 energy = this%emin + (ie - 1) * this%de
596 select case (this%method)
597 case (option__dosmethod__smear)
598 do iorb = 1, os%norbs
601 tdos(iorb) = tdos(iorb) + weight(iorb,ik,ist) / this%gamma * &
606 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
607 assert(
associated(hm%kpoints%reduced%simplex))
608 simplex => hm%kpoints%reduced%simplex
609 nvertices = simplex%rdim + 1
610 assert(nvertices <= 4)
614 do iorb = 1, os%norbs
616 do ii = 1, simplex%n_simplices
618 do ll = 1, simplex%sdim
619 ik = simplex%simplices(ii, ll)
620 ik = ns * (ik - 1) + 1
621 e_simplex(ll) = st%eigenval(ist, ik+is)
625 ik = simplex%simplices(ii, ll)
626 ik = ns * (ik - 1) + 1
628 a_simplex(ll) = weight(iorb, ik+is, ist) / st%kweights(ik+is)
634 call simplex_dos(simplex%rdim, e_simplex(1:simplex%sdim), energy, dos_simplex(1:nvertices))
635 tdos(iorb) = tdos(iorb) + sum(a_simplex(1:nvertices) * dos_simplex(1:nvertices)) / &
651 safe_deallocate_a(tdos)
656 safe_deallocate_a(weight)
664 safe_deallocate_a(iunit)
665 safe_deallocate_a(dos)
673 type(
dos_t),
intent(in) :: this
674 character(len=*),
intent(in) :: dir
676 type(
ions_t),
target,
intent(in) :: ions
680 integer :: ie, ik, val, cond, is, ns, ll, ii, nvertices
681 integer,
allocatable :: iunit(:)
682 real(real64) :: energy
683 real(real64) :: tjdos(1), e_simplex(20), occ_simplex(4), dos_simplex(4)
684 real(real64),
allocatable :: jdos(:,:)
685 character(len=64) :: filename
694 if (st%d%nspin == 2) ns = 2
697 smear%method = this%smear_func
700 if (st%system_grp%is_root())
then
702 safe_allocate(jdos(1:this%epoints, 0:ns-1))
703 safe_allocate(iunit(0:ns-1))
706 select case (this%method)
707 case (option__dosmethod__smear)
710 do cond = val, st%nst
711 do ik = 1, st%nik, ns
714 if(st%occ(cond, ik+is) >
m_epsilon) cycle
715 do ie = 1, this%epoints
716 energy = (ie - 1) * this%de
718 jdos(ie, is) = jdos(ie, is) + st%kweights(ik+is) / this%gamma * &
719 smear_delta_function(smear, (energy - (st%eigenval(cond, ik+is)-st%eigenval(val, ik+is)))/this%gamma)
725 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
726 assert(
associated(hm%kpoints%reduced%simplex))
727 simplex => hm%kpoints%reduced%simplex
728 nvertices = simplex%rdim + 1
729 assert(nvertices <= 4)
735 do ii = 1, simplex%n_simplices
736 if (cond < val) cycle
738 do ll = 1, simplex%sdim
739 ik = simplex%simplices(ii, ll)
740 ik = ns * (ik - 1) + 1
741 e_simplex(ll) = st%eigenval(cond, ik+is) - st%eigenval(val, ik+is)
745 ik = simplex%simplices(ii, ll)
746 ik = ns * (ik - 1) + 1
748 occ_simplex(ll) =
m_one
754 do ie = 1, this%epoints
755 energy = (ie - 1) * this%de
756 call simplex_dos(simplex%rdim, e_simplex(1:simplex%sdim), energy, dos_simplex(1:nvertices))
757 jdos(ie, is) = jdos(ie, is) + sum(occ_simplex(1:nvertices) * dos_simplex(1:nvertices)) / &
771 if (st%d%nspin > 1)
then
773 write(filename,
'(a,i1.1,a)')
'total-jdos-', is+1,
'.dat'
774 iunit(is) =
io_open(trim(dir)//
'/'//trim(filename), namespace, action=
'write')
776 write(iunit(is),
'(3a)')
'# energy [', trim(
units_abbrev(
units_out%energy)),
'], total JDOS (spin-resolved)'
778 do ie = 1, this%epoints
779 energy = (ie - 1) * this%de
790 iunit(0) =
io_open(trim(dir)//
'/'//
'total-jdos.dat', namespace, action=
'write')
794 do ie = 1, this%epoints
795 energy = (ie - 1) * this%de
798 tjdos(1) = tjdos(1) + jdos(ie, is)
808 safe_deallocate_a(iunit)
809 safe_deallocate_a(jdos)
817 subroutine dos_write_ldos(this, dir, st, ions, gr, hm, how, namespace)
818 type(
dos_t),
intent(in) :: this
819 character(len=*),
intent(in) :: dir
821 type(
ions_t),
target,
intent(in) :: ions
822 type(
grid_t),
intent(in) :: gr
824 integer(int64),
intent(in) :: how
827 integer :: ie, ik, ist, is, ns, ip, ifull, ierr, ii, ll, nvertices, ikpoint
828 integer :: iop, iiop, nops, nops_max
829 character(len=MAX_PATH_LEN) :: fname, name
830 logical :: has_local_corner
831 real(real64) :: weight, e_simplex(20), dos_simplex(4)
832 real(real64),
allocatable :: ldos(:,:,:), dpsi(:,:), abs_psi2(:), abs_psi2_symm(:), ldos_weights(:,:,:)
833 complex(real64),
allocatable :: zpsi(:,:)
841 if (this%ldos_nenergies < 1)
then
842 message(1) =
"LDOSEnergies must be defined for Output=ldos"
848 if (st%d%nspin == 2) ns = 2
851 smear%method = this%smear_func
857 safe_allocate(ldos(1:gr%np, 1:this%ldos_nenergies, 1:ns))
860 safe_allocate(abs_psi2(1:gr%np))
862 safe_allocate(dpsi(1:gr%np, 1:st%d%dim))
864 safe_allocate(zpsi(1:gr%np, 1:st%d%dim))
867 select case (this%method)
868 case (option__dosmethod__smear)
870 safe_allocate(ldos_weights(1:this%ldos_nenergies, st%d%kpt%start:st%d%kpt%end, 1:nops_max))
871 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
872 assert(
associated(hm%kpoints%full%simplex))
873 simplex => hm%kpoints%full%simplex
874 nvertices = simplex%rdim + 1
875 assert(nvertices <= 4)
877 do ifull = 1, hm%kpoints%full%npoints
878 nops_max = max(nops_max, hm%kpoints%get_full_symmetry_op_index(ifull))
880 safe_allocate(ldos_weights(1:this%ldos_nenergies, st%d%kpt%start:st%d%kpt%end, 1:nops_max))
881 safe_allocate(abs_psi2_symm(1:gr%np))
886 do ist = st%st_start, st%st_end
887 ldos_weights(:, :, :) =
m_zero
889 select case (this%method)
890 case (option__dosmethod__smear)
891 do ik = st%d%kpt%start, st%d%kpt%end
892 do ie = 1, this%ldos_nenergies
893 ldos_weights(ie, ik, 1) = st%kweights(ik) / this%gamma * &
897 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
901 do ii = 1, simplex%n_simplices
903 has_local_corner = .false.
904 do ll = 1, simplex%sdim
905 ik = hm%kpoints%get_equiv(simplex%simplices(ii, ll))
906 ik = ns * (ik - 1) + 1 + is
907 e_simplex(ll) = st%eigenval(ist, ik)
908 if (ik >= st%d%kpt%start .and. ik <= st%d%kpt%end) has_local_corner = .
true.
910 if (.not. has_local_corner) cycle
912 do ie = 1, this%ldos_nenergies
913 call simplex_dos(simplex%rdim, e_simplex(1:simplex%sdim), this%ldos_energies(ie), dos_simplex(1:nvertices))
915 ifull = simplex%simplices(ii, ll)
916 iiop = hm%kpoints%get_full_symmetry_op_index(ifull)
917 ik = hm%kpoints%get_equiv(ifull)
918 ik = ns * (ik - 1) + 1 + is
919 if (ik >= st%d%kpt%start .and. ik <= st%d%kpt%end)
then
920 ldos_weights(ie, ik, iiop) = ldos_weights(ie, ik, iiop) + dos_simplex(ll) / simplex%n_points
932 do ik = st%d%kpt%start, st%d%kpt%end
933 is = st%d%get_spin_index(ik)
938 abs_psi2(ip) = dpsi(ip, 1)**2
940 if (st%d%dim > 1)
then
942 abs_psi2(ip) = abs_psi2(ip) + dpsi(ip, 2)**2
948 abs_psi2(ip) = real(conjg(zpsi(ip, 1)) * zpsi(ip, 1), real64)
950 if (st%d%dim > 1)
then
952 abs_psi2(ip) = abs_psi2(ip) + real(conjg(zpsi(ip, 2)) * zpsi(ip, 2), real64)
957 select case (this%method)
958 case (option__dosmethod__smear)
959 do ie = 1, this%ldos_nenergies
960 weight = ldos_weights(ie, ik, 1)
961 call lalg_axpy(gr%np, weight, abs_psi2, ldos(:, ie, is))
963 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
964 ikpoint = st%d%get_kpoint_index(ik)
969 do ie = 1, this%ldos_nenergies
970 weight = ldos_weights(ie, ik, iiop)
971 call lalg_axpy(gr%np, weight, abs_psi2_symm, ldos(:, ie, is))
980 safe_deallocate_a(ldos_weights)
981 safe_deallocate_a(dpsi)
982 safe_deallocate_a(zpsi)
983 safe_deallocate_a(abs_psi2)
984 safe_deallocate_a(abs_psi2_symm)
986 if (st%parallel_in_states .or. st%d%kpt%parallel)
then
991 do ie = 1, this%ldos_nenergies
992 write(name,
'(a,i5.5)')
'ldos_en-', ie
995 if (hm%kpoints%use_symmetries .and. &
996 .not. (this%method == option__dosmethod__tetrahedra .or. this%method == option__dosmethod__tetrahedra_opt))
then
1000 ldos(:, ie, is), fn_unit, ierr, pos=ions%pos, atoms=ions%atom, grp = st%dom_st_kpt_mpi_grp)
1004 safe_deallocate_a(ldos)
constant times a vector plus a vector
pure logical function, public accel_is_enabled()
integer, parameter, public accel_mem_read_only
subroutine, public zget_atomic_orbital(namespace, space, latt, pos, species, mesh, sm, ii, ll, jj, os, orbind, radius, d_dim, use_mesh, normalize, index_shift)
This routine returns the atomic orbital basis – provided by the pseudopotential structure in geo.
character(len=1), dimension(0:3), parameter, public l_notation
real(real64) function, public atomic_orbital_get_radius(species, mesh, iorb, ispin, truncation, threshold)
subroutine, public dget_atomic_orbital(namespace, space, latt, pos, species, mesh, sm, ii, ll, jj, os, orbind, radius, d_dim, use_mesh, normalize, index_shift)
This routine returns the atomic orbital basis – provided by the pseudopotential structure in geo.
Module that handles computing and output of various density of states.
subroutine dos_end(this)
Finalizer for the dos_t object.
subroutine, public dos_write_dos(this, dir, st, box, ions, mesh, hm, namespace)
Computes and output the DOS and the projected DOS (PDOS)
subroutine, public dos_write_jdos(this, dir, st, ions, hm, namespace)
Computes and output the joint DOS (JDOS)
subroutine, public dos_init(this, namespace, st, kpoints)
Initializes the dot_t object.
subroutine, public dos_write_ldos(this, dir, st, ions, gr, hm, how, namespace)
Computes and output the local DOS (LDOS)
integer, parameter, public spin_polarized
real(real64), parameter, public m_zero
real(real64), parameter, public m_four
real(real64), parameter, public m_epsilon
real(real64), parameter, public m_one
This module implements the underlying real-space grid.
subroutine, public dgrid_symmetrize_single(gr, iop, field, symm_field, suppress_warning)
subroutine, public dgrid_symmetrize_scalar_field(gr, field, suppress_warning)
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 io_close(iunit, grp)
integer function, public io_open(file, namespace, action, status, form, position, die, recl, grp)
integer pure function, public kpoints_get_num_symmetry_ops(this, ik)
integer pure function, public kpoints_get_symmetry_ops(this, ik, index)
This module is intended to contain "only mathematical" functions and procedures.
integer pure function, public pad_pow2(size)
create array size, which is padded to powers of 2
This module defines the meshes, which are used in Octopus.
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_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
type(namespace_t), public global_namespace
subroutine, public orbitalset_init(this)
subroutine, public orbitalset_end(this)
subroutine, public dorbitalset_transfer_to_device(os, kpt, use_mesh)
Allocate and transfer the orbitals to the device.
subroutine, public orbitalset_update_phase(os, dim, kpt, kpoints, spin_polarized, vec_pot, vec_pot_var, kpt_max)
Build the phase correction to the global phase in case the orbital crosses the border of the simulato...
subroutine, public dorbitalset_get_coeff_batch(os, ndim, psib, dot, reduce)
subroutine, public zorbitalset_get_coeff_batch(os, ndim, psib, dot, reduce)
subroutine, public zorbitalset_transfer_to_device(os, kpt, use_mesh)
Allocate and transfer the orbitals to the device.
integer function, public orbitalset_utils_count(species, iselect)
Count the number of orbital sets we have for a given atom.
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.
integer function, public parse_block(namespace, name, blk, check_varinfo_)
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.
subroutine, public simplex_dos(rdim, esimplex, eF, dos)
Get only the DOS contribution of a single simplex.
real(real64) function, public smear_delta_function(this, xx)
integer, parameter, public smear_fermi_dirac
integer, parameter, public smear_methfessel_paxton
integer, parameter, public smear_lorentzian
integer, parameter, public smear_spline
integer, parameter, public smear_cold
integer, parameter, public smear_gaussian
pure logical function, public states_are_real(st)
type(type_t), public type_cmplx
brief This module defines the class unit_t which is used by the unit_systems_oct_m module.
character(len=20) pure function, public units_abbrev(this)
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
class to tell whether a point is inside or outside
Description of the grid, containing information on derivatives, stencil, and symmetries.
Describes mesh distribution to nodes.
The states_elec_t class contains all electronic wave functions.
batches of electronic states