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
139 call parse_variable(namespace,
'DOSMethod', option__dosmethod__smear, this%method)
193 call parse_variable(namespace,
'DOSEnergyPoints', 500, this%epoints)
202 call parse_variable(namespace,
'DOSGamma', 0.008_real64, this%gamma)
218 call parse_variable(namespace,
'DOSComputePDOS', .false., this%computepdos)
221 this%de = (this%emax - this%emin) / (this%epoints - 1)
233 safe_allocate(this%ldos_energies(1:this%ldos_nenergies))
234 do ie = 1, this%ldos_nenergies
239 this%ldos_nenergies = -1
247 type(
dos_t),
intent(inout) :: this
251 safe_deallocate_a(this%ldos_energies)
252 this%ldos_nenergies = -1
259 subroutine dos_write_dos(this, dir, st, box, ions, mesh, hm, namespace)
260 type(
dos_t),
intent(in) :: this
261 character(len=*),
intent(in) :: dir
263 class(
box_t),
intent(in) :: box
264 type(
ions_t),
target,
intent(in) :: ions
265 class(
mesh_t),
intent(in) :: mesh
269 integer :: ie, ik, ist, is, ns, maxdos, ib, ind, nvertices
270 integer,
allocatable :: iunit(:)
271 real(real64) :: energy
272 real(real64),
allocatable :: tdos(:)
273 real(real64),
allocatable :: dos(:,:,:)
274 character(len=64) :: filename,format_str
277 integer :: ii, ll, mm, nn, work, norb, work2
278 integer :: ia, iorb, idim
279 real(real64) :: threshold
280 real(real64),
allocatable :: ddot(:,:,:)
281 complex(real64),
allocatable :: zdot(:,:,:)
282 real(real64),
allocatable :: weight(:,:,:)
288 real(real64) :: e_simplex(20), a_simplex(4), dos_simplex(4)
289 real(real64),
allocatable :: energies(:), dos_simplex_batch(:,:), dos_thread(:,:)
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))
305 safe_allocate(iunit(0:ns-1))
312 write(filename,
'(a,i5.5,a,i1.1,a)')
'dos-', ist,
'-', is+1,
'.dat'
314 write(filename,
'(a,i5.5,a)')
'dos-', ist,
'.dat'
316 iunit(is) =
io_open(trim(dir)//
'/'//trim(filename), namespace, action=
'write')
321 select case (this%method)
322 case (option__dosmethod__smear)
323 do ie = 1, this%epoints
324 energy = this%emin + (ie - 1) * this%de
326 do ik = 1, st%nik, ns
328 dos(ie, ist, is) = dos(ie, ist, is) + st%kweights(ik+is) / this%gamma * &
334 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
335 assert(
associated(hm%kpoints%reduced%simplex))
336 simplex => hm%kpoints%reduced%simplex
337 nvertices = simplex%rdim + 1
338 assert(nvertices <= 4)
340 safe_allocate(energies(1:this%epoints))
341 do ie = 1, this%epoints
342 energies(ie) = this%emin + (ie - 1) * this%de
345 safe_allocate(dos_simplex_batch(1:nvertices, 1:this%epoints))
346 safe_allocate(dos_thread(1:this%epoints, 0:ns-1))
349 do ii = 1, simplex%n_simplices
351 do ll = 1, simplex%sdim
352 ik = simplex%simplices(ii, ll)
353 ik = ns * (ik - 1) + 1
354 e_simplex(ll) = st%eigenval(ist, ik+is)
357 call simplex_dos(simplex%rdim, e_simplex(1:simplex%sdim), energies, dos_simplex_batch)
359 do ie = 1, this%epoints
360 dos_thread(ie, is) = dos_thread(ie, is) + sum(dos_simplex_batch(1:nvertices, ie)) / simplex%n_points
366 dos(:, ist, :) = dos(:, ist, :) + dos_thread
368 safe_deallocate_a(dos_thread)
369 safe_deallocate_a(dos_simplex_batch)
371 safe_deallocate_a(energies)
378 do ie = 1, this%epoints
379 energy = this%emin + (ie - 1) * this%de
392 safe_allocate(tdos(1))
397 write(filename,
'(a,i1.1,a)')
'total-dos-', is+1,
'.dat'
398 iunit(is) =
io_open(trim(dir)//
'/'//trim(filename), namespace, action=
'write')
400 write(iunit(is),
'(3a)')
'# energy [', trim(
units_abbrev(
units_out%energy)),
'], total DOS (spin-resolved)'
402 do ie = 1, this%epoints
403 energy = this%emin + (ie - 1) * this%de
406 tdos(1) = tdos(1) + dos(ie, ist, is)
418 iunit(0) =
io_open(trim(dir)//
'/'//
'total-dos.dat', namespace, action=
'write')
422 do ie = 1, this%epoints
423 energy = this%emin + (ie - 1) * this%de
427 tdos(1) = tdos(1) + dos(ie, ist, is)
437 safe_deallocate_a(tdos)
441 iunit(0) =
io_open(trim(dir)//
'/'//
'total-dos-efermi.dat', namespace, action=
'write')
443 '] in a format compatible with total-dos.dat'
446 maxdos = st%smear%el_per_state * st%nst
456 if (this%computepdos)
then
459 call parse_variable(namespace,
'AOThreshold', 0.01_real64, threshold)
462 do ia = 1, ions%natoms
469 os%spec => ions%atom(ia)%species
473 do iorb = 1, os%spec%get_niwfs()
474 call os%spec%get_iwf_ilm(iorb, 1, ii, ll, mm)
475 call os%spec%get_iwf_n(iorb, 1, nn)
481 option__aotruncation__ao_full, threshold)
487 os%use_submesh = .false.
488 os%allocated_on_mesh = .
true.
489 os%spec => ions%atom(ia)%species
491 do work = 1, os%norbs
495 ions%atom(ia)%species, mesh, os%sphere, os%ii, os%ll, os%jj, &
496 os, work, os%radius, os%ndim, use_mesh=.not.os%use_submesh, &
497 normalize = normalize)
500 ions%atom(ia)%species, mesh, os%sphere, os%ii, os%ll, os%jj, &
501 os, work, os%radius, os%ndim, &
502 use_mesh = .not. hm%phase%is_allocated() .and. .not. os%use_submesh, &
503 normalize = normalize)
507 if (hm%phase%is_allocated())
then
509 safe_allocate(os%phase(1:os%sphere%np, st%d%kpt%start:st%d%kpt%end))
512 if (.not. os%use_submesh)
then
513 safe_allocate(os%eorb_mesh(1:mesh%np, 1:os%norbs, 1:os%ndim, st%d%kpt%start:st%d%kpt%end))
514 os%eorb_mesh(:,:,:,:) =
m_zero
516 safe_allocate(os%eorb_submesh(1:os%sphere%np, 1:os%ndim, 1:os%norbs, st%d%kpt%start:st%d%kpt%end))
517 os%eorb_submesh(:,:,:,:) =
m_zero
521 os%ldorbs_eorb = max(
pad_pow2(os%sphere%np), 1)
522 if(.not. os%use_submesh) os%ldorbs_eorb = max(
pad_pow2(os%sphere%mesh%np), 1)
524 safe_allocate(os%buff_eorb(st%d%kpt%start:st%d%kpt%end))
525 do ik= st%d%kpt%start, st%d%kpt%end
531 vec_pot = hm%hm_base%uniform_vector_potential, &
532 vec_pot_var = hm%hm_base%vector_potential)
541 if (st%system_grp%is_root())
then
543 write(filename,
'(a, i4.4, a1, a, i1.1, a1,a)')
'pdos-at', ia,
'-', trim(os%spec%get_label()), &
546 write(filename,
'(a, i4.4, a1, a, a1,a)')
'pdos-at', ia,
'-', trim(os%spec%get_label()), &
550 iunit(0) =
io_open(trim(dir)//
'/'//trim(filename), namespace, action=
'write')
553 '], projected DOS (total and orbital resolved)'
557 safe_allocate(ddot(1:st%d%dim, 1:os%norbs, 1:st%block_size))
559 safe_allocate(zdot(1:st%d%dim, 1:os%norbs, 1:st%block_size))
562 safe_allocate(weight(1:os%norbs,1:st%nik,1:st%nst))
563 weight(1:os%norbs,1:st%nik,1:st%nst) =
m_zero
565 do ik = st%d%kpt%start, st%d%kpt%end
566 do ib = st%group%block_start, st%group%block_end
568 if (hm%phase%is_allocated())
then
570 call st%group%psib(ib, ik)%copy_to(epsib)
571 call hm%phase%apply_to(mesh, mesh%np, .false., epsib, src = st%group%psib(ib, ik))
573 epsib => st%group%psib(ib, ik)
578 do ist = 1, st%group%psib(ib, ik)%nst
579 ind = st%group%psib(ib, ik)%ist(ist)
580 do iorb = 1, os%norbs
581 do idim = 1, st%d%dim
582 weight(iorb, ik, ind) = weight(iorb, ik, ind) + st%kweights(ik) * abs(ddot(idim, iorb, ist))**2
588 do ist = 1, st%group%psib(ib, ik)%nst
589 ind = st%group%psib(ib, ik)%ist(ist)
590 do iorb = 1, os%norbs
591 do idim = 1, st%d%dim
592 weight(iorb, ik, ind) = weight(iorb, ik, ind) + st%kweights(ik) * abs(zdot(idim, iorb, ist))**2
598 if (hm%phase%is_allocated())
then
599 call epsib%end(copy=.false.)
600 safe_deallocate_p(epsib)
606 if (st%parallel_in_states .or. st%d%kpt%parallel)
then
610 safe_deallocate_a(ddot)
611 safe_deallocate_a(zdot)
613 if (st%system_grp%is_root())
then
614 write(format_str,
'(a,i5,a)')
'(', os%norbs+2,
'es25.16E3)'
615 safe_allocate(tdos(1:os%norbs))
616 do ie = 1, this%epoints
617 energy = this%emin + (ie - 1) * this%de
620 select case (this%method)
621 case (option__dosmethod__smear)
622 do iorb = 1, os%norbs
625 tdos(iorb) = tdos(iorb) + weight(iorb,ik,ist) / this%gamma * &
630 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
631 assert(
associated(hm%kpoints%reduced%simplex))
632 simplex => hm%kpoints%reduced%simplex
633 nvertices = simplex%rdim + 1
634 assert(nvertices <= 4)
638 do iorb = 1, os%norbs
640 do ii = 1, simplex%n_simplices
642 do ll = 1, simplex%sdim
643 ik = simplex%simplices(ii, ll)
644 ik = ns * (ik - 1) + 1
645 e_simplex(ll) = st%eigenval(ist, ik+is)
649 ik = simplex%simplices(ii, ll)
650 ik = ns * (ik - 1) + 1
652 a_simplex(ll) = weight(iorb, ik+is, ist) / st%kweights(ik+is)
658 call simplex_dos(simplex%rdim, e_simplex(1:simplex%sdim), energy, dos_simplex(1:nvertices))
659 tdos(iorb) = tdos(iorb) + sum(a_simplex(1:nvertices) * dos_simplex(1:nvertices)) / &
675 safe_deallocate_a(tdos)
680 safe_deallocate_a(weight)
688 safe_deallocate_a(iunit)
689 safe_deallocate_a(dos)
697 type(
dos_t),
intent(in) :: this
698 character(len=*),
intent(in) :: dir
700 type(
ions_t),
target,
intent(in) :: ions
704 integer :: ie, ik, val, cond, is, ns, ll, ii, nvertices
705 integer,
allocatable :: iunit(:)
706 real(real64) :: energy
707 real(real64) :: tjdos(1), e_simplex(20), occ_simplex(4)
708 real(real64),
allocatable :: jdos(:,:), energies(:), dos_simplex(:,:)
709 character(len=64) :: filename
718 if (st%d%nspin == 2) ns = 2
721 smear%method = this%smear_func
724 if (st%system_grp%is_root())
then
726 safe_allocate(jdos(1:this%epoints, 0:ns-1))
727 safe_allocate(iunit(0:ns-1))
730 select case (this%method)
731 case (option__dosmethod__smear)
734 do cond = val, st%nst
735 do ik = 1, st%nik, ns
738 if(st%occ(cond, ik+is) >
m_epsilon) cycle
739 do ie = 1, this%epoints
740 energy = (ie - 1) * this%de
742 jdos(ie, is) = jdos(ie, is) + st%kweights(ik+is) / this%gamma * &
743 smear_delta_function(smear, (energy - (st%eigenval(cond, ik+is)-st%eigenval(val, ik+is)))/this%gamma)
749 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
750 assert(
associated(hm%kpoints%reduced%simplex))
751 simplex => hm%kpoints%reduced%simplex
752 nvertices = simplex%rdim + 1
753 assert(nvertices <= 4)
755 safe_allocate(energies(1:this%epoints))
756 do ie = 1, this%epoints
757 energies(ie) = (ie - 1) * this%de
761 safe_allocate(dos_simplex(1:nvertices, 1:this%epoints))
765 do ii = 1, simplex%n_simplices
766 if (cond < val) cycle
768 do ll = 1, simplex%sdim
769 ik = simplex%simplices(ii, ll)
770 ik = ns * (ik - 1) + 1
771 e_simplex(ll) = st%eigenval(cond, ik+is) - st%eigenval(val, ik+is)
775 ik = simplex%simplices(ii, ll)
776 ik = ns * (ik - 1) + 1
778 occ_simplex(ll) =
m_one
784 call simplex_dos(simplex%rdim, e_simplex(1:simplex%sdim), energies, dos_simplex)
785 do ie = 1, this%epoints
786 jdos(ie, is) = jdos(ie, is) + sum(occ_simplex(1:nvertices) * dos_simplex(1:nvertices, ie)) / &
794 safe_deallocate_a(dos_simplex)
796 safe_deallocate_a(energies)
803 if (st%d%nspin > 1)
then
805 write(filename,
'(a,i1.1,a)')
'total-jdos-', is+1,
'.dat'
806 iunit(is) =
io_open(trim(dir)//
'/'//trim(filename), namespace, action=
'write')
808 write(iunit(is),
'(3a)')
'# energy [', trim(
units_abbrev(
units_out%energy)),
'], total JDOS (spin-resolved)'
810 do ie = 1, this%epoints
811 energy = (ie - 1) * this%de
822 iunit(0) =
io_open(trim(dir)//
'/'//
'total-jdos.dat', namespace, action=
'write')
826 do ie = 1, this%epoints
827 energy = (ie - 1) * this%de
830 tjdos(1) = tjdos(1) + jdos(ie, is)
840 safe_deallocate_a(iunit)
841 safe_deallocate_a(jdos)
849 subroutine dos_write_ldos(this, dir, st, ions, gr, hm, how, namespace)
850 type(
dos_t),
intent(in) :: this
851 character(len=*),
intent(in) :: dir
853 type(
ions_t),
target,
intent(in) :: ions
854 type(
grid_t),
intent(in) :: gr
856 integer(int64),
intent(in) :: how
859 integer :: ie, ik, ist, is, ns, ip, ifull, ierr, ii, ll, nvertices, ikpoint
860 integer :: iop, iiop, nops, nops_max
861 character(len=MAX_PATH_LEN) :: fname, name
862 logical :: has_local_corner
863 real(real64) :: weight, e_simplex(20)
864 real(real64),
allocatable :: ldos(:,:,:), dpsi(:,:), abs_psi2(:), abs_psi2_symm(:), ldos_weights(:,:,:)
865 real(real64),
allocatable :: dos_simplex(:,:)
866 complex(real64),
allocatable :: zpsi(:,:)
874 if (this%ldos_nenergies < 1)
then
875 message(1) =
"LDOSEnergies must be defined for Output=ldos"
881 if (st%d%nspin == 2) ns = 2
884 smear%method = this%smear_func
890 safe_allocate(ldos(1:gr%np, 1:this%ldos_nenergies, 1:ns))
893 safe_allocate(abs_psi2(1:gr%np))
895 safe_allocate(dpsi(1:gr%np, 1:st%d%dim))
897 safe_allocate(zpsi(1:gr%np, 1:st%d%dim))
900 select case (this%method)
901 case (option__dosmethod__smear)
903 safe_allocate(ldos_weights(1:this%ldos_nenergies, st%d%kpt%start:st%d%kpt%end, 1:nops_max))
904 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
905 assert(
associated(hm%kpoints%full%simplex))
906 simplex => hm%kpoints%full%simplex
907 nvertices = simplex%rdim + 1
908 assert(nvertices <= 4)
910 do ifull = 1, hm%kpoints%full%npoints
911 nops_max = max(nops_max, hm%kpoints%get_full_symmetry_op_index(ifull))
913 safe_allocate(ldos_weights(1:this%ldos_nenergies, st%d%kpt%start:st%d%kpt%end, 1:nops_max))
914 safe_allocate(abs_psi2_symm(1:gr%np))
919 do ist = st%st_start, st%st_end
920 ldos_weights(:, :, :) =
m_zero
922 select case (this%method)
923 case (option__dosmethod__smear)
924 do ik = st%d%kpt%start, st%d%kpt%end
925 do ie = 1, this%ldos_nenergies
926 ldos_weights(ie, ik, 1) = st%kweights(ik) / this%gamma * &
930 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
934 safe_allocate(dos_simplex(1:nvertices, 1:this%ldos_nenergies))
936 do ii = 1, simplex%n_simplices
938 has_local_corner = .false.
939 do ll = 1, simplex%sdim
940 ik = hm%kpoints%get_equiv(simplex%simplices(ii, ll))
941 ik = ns * (ik - 1) + 1 + is
942 e_simplex(ll) = st%eigenval(ist, ik)
943 if (ik >= st%d%kpt%start .and. ik <= st%d%kpt%end) has_local_corner = .
true.
945 if (.not. has_local_corner) cycle
947 call simplex_dos(simplex%rdim, e_simplex(1:simplex%sdim), this%ldos_energies, &
948 dos_simplex(1:nvertices, 1:this%ldos_nenergies))
949 do ie = 1, this%ldos_nenergies
951 ifull = simplex%simplices(ii, ll)
952 iiop = hm%kpoints%get_full_symmetry_op_index(ifull)
953 ik = hm%kpoints%get_equiv(ifull)
954 ik = ns * (ik - 1) + 1 + is
955 if (ik >= st%d%kpt%start .and. ik <= st%d%kpt%end)
then
956 ldos_weights(ie, ik, iiop) = ldos_weights(ie, ik, iiop) + dos_simplex(ll, ie) / simplex%n_points
963 safe_deallocate_a(dos_simplex)
970 do ik = st%d%kpt%start, st%d%kpt%end
971 is = st%d%get_spin_index(ik)
976 abs_psi2(ip) = dpsi(ip, 1)**2
978 if (st%d%dim > 1)
then
980 abs_psi2(ip) = abs_psi2(ip) + dpsi(ip, 2)**2
986 abs_psi2(ip) = real(conjg(zpsi(ip, 1)) * zpsi(ip, 1), real64)
988 if (st%d%dim > 1)
then
990 abs_psi2(ip) = abs_psi2(ip) + real(conjg(zpsi(ip, 2)) * zpsi(ip, 2), real64)
995 select case (this%method)
996 case (option__dosmethod__smear)
997 do ie = 1, this%ldos_nenergies
998 weight = ldos_weights(ie, ik, 1)
999 call lalg_axpy(gr%np, weight, abs_psi2, ldos(:, ie, is))
1001 case (option__dosmethod__tetrahedra, option__dosmethod__tetrahedra_opt)
1002 ikpoint = st%d%get_kpoint_index(ik)
1007 do ie = 1, this%ldos_nenergies
1008 weight = ldos_weights(ie, ik, iiop)
1009 call lalg_axpy(gr%np, weight, abs_psi2_symm, ldos(:, ie, is))
1018 safe_deallocate_a(ldos_weights)
1019 safe_deallocate_a(dpsi)
1020 safe_deallocate_a(zpsi)
1021 safe_deallocate_a(abs_psi2)
1022 safe_deallocate_a(abs_psi2_symm)
1024 if (st%parallel_in_states .or. st%d%kpt%parallel)
then
1029 do ie = 1, this%ldos_nenergies
1030 write(name,
'(a,i5.5)')
'ldos_en-', ie
1033 if (hm%kpoints%use_symmetries .and. &
1034 .not. (this%method == option__dosmethod__tetrahedra .or. this%method == option__dosmethod__tetrahedra_opt))
then
1038 ldos(:, ie, is), fn_unit, ierr, pos=ions%pos, atoms=ions%atom, grp = st%dom_st_kpt_mpi_grp)
1042 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.
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