35 use,
intrinsic :: iso_fortran_env
70 logical :: include_diamag
81 integer,
parameter,
public :: &
82 CURRENT_GRADIENT = 1, &
89 type(current_t),
intent(out) :: this
90 type(namespace_t),
intent(in) :: namespace
129 call parse_variable(namespace,
'CalculateDiamagneticCurrent', .false., this%include_diamag)
137 type(states_elec_t),
intent(inout) :: st
138 type(derivatives_t),
intent(inout) :: der
139 integer,
intent(in) :: ik
140 integer,
intent(in) :: ib
144 integer :: ist, idir, ii, ip, idim, bsize, gsize
145 complex(real64),
allocatable :: psi(:, :), gpsi(:, :)
146 real(real64),
allocatable :: current_tmp(:, :)
147 complex(real64) :: c_tmp
149 real(real64),
allocatable :: weight(:)
153 safe_allocate(psi(1:der%mesh%np_part, 1:st%d%dim))
154 safe_allocate(gpsi(1:der%mesh%np_part, 1:st%d%dim))
161 ww = st%kweights(ik)*st%occ(ist, ik)
164 do idim = 1, st%d%dim
165 ii = st%group%psib(ib, ik)%inv_index((/ist, idim/))
170 if (st%d%ispin /=
spinors)
then
172 do ip = 1, der%mesh%np
173 st%current_kpt(ip, idir, ik) = st%current_kpt(ip, idir, ik) + ww*aimag(conjg(psi(ip, 1))*gpsi(ip, 1))
178 do ip = 1, der%mesh%np
179 st%current_para(ip, idir, 1) = st%current_para(ip, idir, 1) + ww*aimag(conjg(psi(ip, 1))*gpsi(ip, 1))
180 st%current_para(ip, idir, 2) = st%current_para(ip, idir, 2) + ww*aimag(conjg(psi(ip, 2))*gpsi(ip, 2))
181 c_tmp = -
m_half*(conjg(psi(ip, 2))*gpsi(ip, 1) - psi(ip, 1)*conjg(gpsi(ip, 2)))
182 st%current_para(ip, idir, 3) = st%current_para(ip, idir, 3) - ww*aimag(c_tmp)
183 st%current_para(ip, idir, 4) = st%current_para(ip, idir, 4) + ww*real(c_tmp, real64)
195 safe_allocate(weight(1:psib%nst))
197 weight(ist) = st%kweights(ik)*st%occ(psib%ist(ist), ik)
225 safe_allocate(current_tmp(1:der%mesh%np, 1:der%dim))
229 call lalg_axpy(der%mesh%np, der%dim,
m_one, current_tmp, st%current_kpt(:,:,ik))
231 safe_deallocate_a(current_tmp)
236 safe_deallocate_a(weight)
240 assert(psib%is_packed() .eqv. gpsib(1)%is_packed())
245 ww = st%kweights(ik)*st%occ(ist, ik)
248 if (psib%is_packed())
then
251 do ip = 1, der%mesh%np
252 st%current_kpt(ip, idir, ik) = st%current_kpt(ip, idir, ik) &
253 + ww*aimag(conjg(psib%zff_pack(ii, ip))*gpsib(idir)%zff_pack(ii, ip))
260 do ip = 1, der%mesh%np
261 st%current_kpt(ip, idir, ik) = st%current_kpt(ip, idir, ik) &
262 + ww*aimag(conjg(psib%zff(ip, 1, ii))*gpsib(idir)%zff(ip, 1, ii))
272 safe_deallocate_a(psi)
273 safe_deallocate_a(gpsi)
283 type(
grid_t),
intent(inout) :: gr
285 class(
space_t),
intent(in) :: space
296 if (st%requires_generalized_overlap)
then
301 if (st%d%ispin ==
spinors .and. .not. hm%ep%has_paw)
then
307 st%current = st%current_para
309 if (this%include_diamag)
then
311 st%current = st%current + st%current_dia
327 integer :: ispin, idir, ip
334 if(
allocated(hm%hm_base%vector_potential))
then
335 do ispin = 1, st%d%nspin
338 do ip = 1, der%mesh%np
340 st%current_dia(ip, idir, ispin) = st%current_dia(ip, idir, ispin) + &
341 st%rho(ip, ispin)*hm%hm_base%vector_potential(idir, ip)
361 real(real64),
allocatable :: magnetization_density(:, :), curl_mag(:, :)
369 safe_allocate(magnetization_density(1:der%mesh%np_part, 1:der%dim))
370 safe_allocate(curl_mag(1:der%mesh%np_part, 1:der%dim))
375 call lalg_axpy(der%mesh%np, der%dim,
m_half, curl_mag, st%current_mag(:, :, 1))
377 safe_deallocate_a(magnetization_density)
378 safe_deallocate_a(curl_mag)
392 type(
grid_t),
intent(inout) :: gr
397 integer :: ik, ist, idir, idim, ip, ib, ii, ispin
398 complex(real64),
allocatable :: gpsi(:, :, :), psi(:, :), hpsi(:, :), rhpsi(:, :), rpsi(:, :), hrpsi(:, :)
399 type(
wfs_elec_t) :: hpsib, rhpsib, rpsib, hrpsib, epsib
402 complex(real64) :: c_tmp
403 real(real64),
allocatable :: caug(:,:,:,:)
404 logical :: local_on_device, use_packed
410 assert(all(ubound(st%current_para) == (/gr%np_part, gr%der%dim, st%d%nspin/)))
411 assert(all(ubound(st%current_kpt) == (/gr%np, gr%der%dim, st%d%kpt%end/)))
412 assert(all(lbound(st%current_kpt) == (/1, 1, st%d%kpt%start/)))
414 safe_allocate(psi(1:gr%np_part, 1:st%d%dim))
415 safe_allocate(gpsi(1:gr%np, 1:gr%der%dim, 1:st%d%dim))
416 safe_allocate(hpsi(1:gr%np_part, 1:st%d%dim))
417 safe_allocate(rhpsi(1:gr%np_part, 1:st%d%dim))
418 safe_allocate(rpsi(1:gr%np_part, 1:st%d%dim))
419 safe_allocate(hrpsi(1:gr%np_part, 1:st%d%dim))
420 safe_allocate_type_array(
wfs_elec_t, commpsib, (1:gr%der%dim))
423 do ik = st%d%kpt%start, st%d%kpt%end
424 do idir = 1, gr%der%dim
427 st%current_kpt(ip, idir, ik) =
m_zero
432 do ispin = 1, st%d%nspin
433 do idir = 1, gr%der%dim
436 st%current_para(ip, idir, ispin) =
m_zero
443 select case (this%method)
447 if (.not. hm%exxop%useACE)
then
453 do ik = st%d%kpt%start, st%d%kpt%end
454 ispin = st%d%get_spin_index(ik)
455 do ib = st%group%block_start, st%group%block_end
457 call st%group%psib(ib, ik)%do_pack(copy = .
true.)
459 call st%group%psib(ib, ik)%copy_to(hpsib)
460 call st%group%psib(ib, ik)%copy_to(rhpsib)
461 call st%group%psib(ib, ik)%copy_to(rpsib)
462 call st%group%psib(ib, ik)%copy_to(hrpsib)
467 do idir = 1, gr%der%dim
469 call batch_mul_mf(gr%np, gr%x_t(:, idir), hpsib, rhpsib)
470 call batch_mul_mf(gr%np_part, gr%x_t(:, idir), st%group%psib(ib, ik), rpsib)
475 ww = st%kweights(ik)*st%occ(ist, ik)
478 do idim = 1, st%d%dim
479 ii = st%group%psib(ib, ik)%inv_index((/ist, idim/))
485 if (st%d%ispin /=
spinors)
then
488 st%current_kpt(ip, idir, ik) = st%current_kpt(ip, idir, ik) &
489 - ww*aimag(conjg(psi(ip, 1))*hrpsi(ip, 1) - conjg(psi(ip, 1))*rhpsi(ip, 1))
495 st%current_para(ip, idir, 1) = st%current_para(ip, idir, 1) + &
496 ww*aimag(conjg(psi(ip, 1))*hrpsi(ip, 1) - conjg(psi(ip, 1))*rhpsi(ip, 1))
497 st%current_para(ip, idir, 2) = st%current_para(ip, idir, 2) + &
498 ww*aimag(conjg(psi(ip, 2))*hrpsi(ip, 2) - conjg(psi(ip, 2))*rhpsi(ip, 2))
499 c_tmp = -
m_half*
m_zi*(conjg(psi(ip, 2))*hrpsi(ip, 1) - conjg(psi(ip, 2))*rhpsi(ip, 1) &
500 -psi(ip, 1)*conjg(hrpsi(ip, 2)) - psi(ip, 1)*conjg(rhpsi(ip, 2)))
501 st%current_para(ip, idir, 3) = st%current_para(ip, idir, 3) + ww*real(c_tmp, real64)
502 st%current_para(ip, idir, 4) = st%current_para(ip, idir, 4) + ww*aimag(c_tmp)
511 call st%group%psib(ib, ik)%do_unpack(copy = .false.)
522 if (.not. hm%exxop%useACE)
then
534 local_on_device = st%are_packed() .and.
accel_is_enabled() .and. .not. hm%vnl%has_non_local_potential &
535 .and. .not. hm%scissor%apply
539 .and. hm%theory_level /=
rdmft &
540 .and. (hm%vnl%apply_projector_matrices .or. local_on_device)
548 if (hm%ep%requires_generalized_overlap .and. .not. hm%ep%has_paw)
then
549 safe_allocate(caug(1:hm%vnl%max_nprojs, 1:hm%vnl%max_nprojs, 1:gr%der%dim, 1:hm%vnl%nprojector_matrices))
552 do ik = st%d%kpt%start, st%d%kpt%end
553 ispin = st%d%get_spin_index(ik)
554 if (hm%ep%requires_generalized_overlap .and. .not. hm%ep%has_paw) caug =
m_zero
555 do ib = st%group%block_start, st%group%block_end
558 call hm%phase%copy_and_set_phase(gr, st%d%kpt, st%group%psib(ib, ik), epsib)
567 if (.not. hm%ep%has_paw)
then
568 call hm%vnl%zposition_commutator(gr, st%d, gr%der%boundaries%spiral, epsib, commpsib, async=.
true.)
571 call zlda_u_commute_r(hm%lda_u, gr, space, st%d, namespace, epsib, commpsib)
578 if (hm%ep%requires_generalized_overlap .and. .not. hm%ep%has_paw)
then
582 do idir = 1, gr%der%dim
583 call commpsib(idir)%end()
593 if (hm%ep%requires_generalized_overlap .and. .not. hm%ep%has_paw)
then
598 if (hm%ep%requires_generalized_overlap .and. .not. hm%ep%has_paw)
then
599 safe_deallocate_a(caug)
607 if (hm%ep%requires_generalized_overlap)
then
609 //
" or without projector matrices", namespace=namespace)
612 do ik = st%d%kpt%start, st%d%kpt%end
613 ispin = st%d%get_spin_index(ik)
614 do ist = st%st_start, st%st_end
616 ww = st%kweights(ik)*st%occ(ist, ik)
621 if (hm%phase%is_allocated())
then
622 call hm%phase%apply_to_single(psi, gr%np, st%d%dim, ik, .false.)
625 do idim = 1, st%d%dim
626 call boundaries_set(gr%der%boundaries, gr, psi(:, idim), phase_correction = hm%phase%phase_corr(:, ik), &
627 buff_phase_corr = hm%phase%buff_phase_corr, offset=int((ik-st%d%kpt%start)*(gr%np_part-gr%np)))
630 do idim = 1, st%d%dim
635 do idim = 1, st%d%dim
642 call hm%ks_pot%zcurrent_mass_renormalization(gpsi, gr%der%dim, st%d%dim, ispin)
646 if (.not. hm%ep%has_paw)
then
648 gr%der%boundaries, ik, psi, gpsi)
651 if (hm%scissor%apply)
then
656 psi, gpsi, hm%phase%is_allocated())
662 if (st%d%ispin /=
spinors)
then
663 do idir = 1, gr%der%dim
666 st%current_kpt(ip, idir, ik) = st%current_kpt(ip, idir, ik) + &
667 ww*aimag(conjg(psi(ip, 1))*gpsi(ip, idir, 1))
672 do idir = 1, gr%der%dim
675 st%current_para(ip, idir, 1) = st%current_para(ip, idir, 1) + &
676 ww*aimag(conjg(psi(ip, 1))*gpsi(ip, idir, 1))
677 st%current_para(ip, idir, 2) = st%current_para(ip, idir, 2) + &
678 ww*aimag(conjg(psi(ip, 2))*gpsi(ip, idir, 2))
679 c_tmp = -
m_half*
m_zi*(conjg(psi(ip, 2))*gpsi(ip, idir, 1) - psi(ip, 1)*conjg(gpsi(ip, idir, 2)))
680 st%current_para(ip, idir, 3) = st%current_para(ip, idir, 3) + ww*real(c_tmp, real64)
681 st%current_para(ip, idir, 4) = st%current_para(ip, idir, 4) + ww*aimag(c_tmp)
698 if (st%d%ispin /=
spinors)
then
700 do ik = st%d%kpt%start, st%d%kpt%end
701 ispin = st%d%get_spin_index(ik)
702 call lalg_axpy(gr%np, gr%der%dim,
m_one, st%current_kpt(:, :, ik), st%current_para(:, :, ispin))
706 if (st%parallel_in_states .or. st%d%kpt%parallel)
then
707 call comm_allreduce(st%st_kpt_mpi_grp, st%current_para, dim = (/gr%np, gr%der%dim, st%d%nspin/))
714 if (hm%ep%has_paw)
then
718 if (st%symmetrize_density)
then
719 do ispin = 1, st%d%nspin
724 safe_deallocate_a(gpsi)
725 safe_deallocate_a(psi)
726 safe_deallocate_a(hpsi)
727 safe_deallocate_a(rhpsi)
728 safe_deallocate_a(rpsi)
729 safe_deallocate_a(hrpsi)
730 safe_deallocate_a(commpsib)
757 type(
grid_t),
intent(in) :: gr
759 integer,
intent(in) :: ik
762 real(real64),
intent(inout) :: caug(:,:,:,:)
765 integer :: idir, ist_global, imat, iproj, jproj, iprojection, ist
772 if (gr%parallel_in_domains)
call gr%allreduce(proj_psi%zprojection)
774 do idir = 1, gr%der%dim
777 gpsib(idir)%has_phase = psib%has_phase
779 if (gr%parallel_in_domains)
call gr%allreduce(proj_g%zprojection)
783 do ist = 1, psib%nst_linear
784 ist_global = psib%linear_to_ist(ist)
785 ww = st%kweights(ik)*st%occ(ist_global, ik)
788 do imat = 1, hm%vnl%nprojector_matrices
789 do iproj = 1, hm%vnl%projector_matrices(imat)%nprojs
790 do jproj = 1, hm%vnl%projector_matrices(imat)%nprojs
791 caug(iproj, jproj, idir, imat) = caug(iproj, jproj, idir, imat) &
792 - ww*aimag(conjg(proj_g%zprojection(ist, iprojection + iproj)) &
793 * proj_psi%zprojection(ist, iprojection + jproj))
796 iprojection = iprojection + hm%vnl%projector_matrices(imat)%nprojs
800 safe_deallocate_a(proj_g%zprojection)
802 safe_deallocate_a(proj_psi%zprojection)
817 type(
grid_t),
intent(in) :: gr
819 integer,
intent(in) :: ik
820 real(real64),
intent(in) :: caug(:,:,:,:)
824 real(real64),
allocatable :: acc(:), wcol(:, :)
825 integer :: imat, iatom, idir, is, ip, np
829 safe_allocate(acc(1:hm%vnl%total_points))
831 do imat = 1, hm%vnl%nprojector_matrices
832 pmat => hm%vnl%projector_matrices(imat)
833 iatom = hm%vnl%projector_to_atom(imat)
834 proj => hm%ep%proj(iatom)
836 assert(
allocated(proj%aug%qflm))
843 safe_allocate(wcol(1:proj%aug%qflm_ncombo, 1:1))
844 do idir = 1, gr%der%dim
854 st%current_kpt(ip, idir, ik) = st%current_kpt(ip, idir, ik) + acc(is)
858 safe_deallocate_a(wcol)
861 safe_deallocate_a(acc)
868 class(
space_t),
intent(in) :: space
872 real(real64),
contiguous,
intent(out) :: current(:, :, :)
874 integer :: ik, ist, idir, idim, ip, ispin, ndim
875 complex(real64),
allocatable :: gpsi(:, :, :), psi(:, :), g2psi(:, :, :, :)
876 complex(real64) :: tmp
880 assert(space%is_periodic())
881 assert(st%d%dim == 1)
885 safe_allocate(psi(1:der%mesh%np_part, 1:st%d%dim))
886 safe_allocate(gpsi(1:der%mesh%np_part, 1:ndim, 1:st%d%dim))
887 safe_allocate(g2psi(1:der%mesh%np, 1:ndim, 1:ndim, 1:st%d%dim))
889 current(1:der%mesh%np, 1:ndim, 1:st%d%nspin) = 0.0_real64
892 do ik = st%d%kpt%start, st%d%kpt%end
893 ispin = st%d%get_spin_index(ik)
894 do ist = st%st_start, st%st_end
896 if (abs(st%kweights(ik)*st%occ(ist, ik)) <=
m_epsilon) cycle
899 do idim = 1, st%d%dim
903 if (hm%phase%is_allocated())
then
904 call hm%phase%apply_to_single(psi, der%mesh%np_part, st%d%dim, ik, conjugate = .false.)
907 do idim = 1, st%d%dim
911 if (hm%phase%is_allocated())
then
912 call hm%phase%apply_to_single(gpsi(:, idir, :), der%mesh%np, st%d%dim, ik, conjugate = .
true.)
915 do idim = 1, st%d%dim
919 if (hm%phase%is_allocated())
then
920 call hm%phase%apply_to_single(gpsi(:, idir, :), der%mesh%np_part, st%d%dim, ik, conjugate = .false.)
923 do idim = 1, st%d%dim
924 call zderivatives_grad(der, gpsi(:, idir, idim), g2psi(:, :, idir, idim), set_bc = .false.)
928 do ip = 1, der%mesh%np
930 tmp = sum(conjg(g2psi(ip, 1:ndim, idir, idim))*gpsi(ip, 1:ndim, idim)) - &
931 sum(conjg(gpsi(ip, 1:ndim, idim))*g2psi(ip, 1:ndim, idir, idim))
932 tmp = tmp - conjg(gpsi(ip, idir, idim))*sum(g2psi(ip, 1:ndim, 1:ndim, idim)) + &
933 sum(conjg(g2psi(ip, 1:ndim, 1:ndim, idim)))*gpsi(ip, idir, idim)
934 current(ip, idir, ispin) = current(ip, idir, ispin) + st%kweights(ik)*st%occ(ist, ik)*aimag(tmp)/8.0_real64
940 if (st%parallel_in_states .or. st%d%kpt%parallel)
then
941 call comm_allreduce(st%st_kpt_mpi_grp, current, dim = (/der%mesh%np, ndim, st%d%nspin/))
944 do ip = 1, der%mesh%np
945 current(ip, 1:ndim, 1:st%d%nspin) = current(ip, 1:ndim, 1:st%d%nspin) + &
946 st%current(ip, 1:ndim, 1:st%d%nspin)*hm%ep%vpsl(ip)
batchified multiplication by mesh function with optional conjugation:
constant times a vector plus a vector
integer function, public accel_kernel_block_size(kernel)
subroutine, public accel_free_buffer(this, async)
subroutine, public accel_kernel_start_call(this, file_name, kernel_name, flags)
subroutine, public accel_finish()
pure logical function, public accel_is_enabled()
integer, parameter, public accel_mem_write_only
integer, parameter, public accel_mem_read_only
This module implements batches of mesh functions.
integer, parameter, public batch_device_packed
functions are stored in device memory in packed order
This module implements common operations on batches of mesh functions.
Module implementing boundary conditions in Octopus.
subroutine current_batch_accumulate(st, der, ik, ib, psib, gpsib)
subroutine current_aug_accumulate(hm, gr, st, ik, psib, gpsib, caug)
Accumulate the ultrasoft/PAW augmentation-current coefficients for one block of states.
subroutine current_calculate_dia_non_unif_vec_pot(der, hm, st)
Compute diamagnetic current density from non-uniform vector potential (the part coming from the unifo...
subroutine, public current_calculate_mag(der, st)
Compute magnetization current Note: due to the the numerical curl, the magnetization current could de...
integer, parameter, public current_hamiltonian
integer, parameter, public current_gradient_corr
subroutine, public current_heat_calculate(space, der, hm, st, current)
subroutine current_calculate_para(this, namespace, gr, hm, space, st)
Compute paramagnetic current density (including full diamagnetic term if method = Hamiltonian us used...
subroutine current_aug_scatter(hm, gr, st, ik, caug)
Scatter the ultrasoft/PAW augmentation current onto the k-resolved current density.
subroutine, public current_calculate(this, namespace, gr, hm, space, st)
Compute total electronic current density.
subroutine, public current_init(this, namespace)
This module calculates the derivatives (gradients, Laplacians, etc.) of a function.
subroutine, public dderivatives_curl(der, ff, op_ff, ghost_update, set_bc)
apply the curl operator to a vector of mesh functions
subroutine, public zderivatives_batch_grad(der, ffb, opffb, ghost_update, set_bc, to_cartesian, factor)
apply the gradient to a batch of mesh functions
subroutine, public zderivatives_grad(der, ff, op_ff, ghost_update, set_bc, to_cartesian)
apply the gradient to a mesh function
integer, parameter, public unpolarized
Parameters...
integer, parameter, public spinors
subroutine, public zexchange_operator_commute_r(this, namespace, mesh, st_d, ik, psi, gpsi)
real(real64), parameter, public m_zero
integer, parameter, public rdmft
integer, parameter, public hartree_fock
integer, parameter, public generalized_kohn_sham_dft
complex(real64), parameter, public m_zi
real(real64), parameter, public m_epsilon
real(real64), parameter, public m_half
real(real64), parameter, public m_one
This module implements the underlying real-space grid.
subroutine, public dgrid_symmetrize_vector_field(gr, field, suppress_warning)
subroutine, public zhamiltonian_elec_apply_batch(hm, namespace, mesh, psib, hpsib, terms, set_bc, set_phase, spsib)
A module to handle KS potential, without the external potential.
subroutine, public zlda_u_commute_r(this, mesh, space, d, namespace, psib, gpsib)
This routine computes [r,V_lda+u] .
subroutine, public zlda_u_commute_r_single(this, mesh, space, d, namespace, ist, ik, psi, gpsi, has_phase)
subroutine, public magnetic_density(mesh, std, rho, md)
This module is intended to contain "only mathematical" functions and procedures.
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_input_error(namespace, var, details, row, column)
subroutine, public messages_experimental(name, namespace)
subroutine, public znonlocal_pseudopotential_start(this, mesh, std, spiral_bnd, psib, projection, async)
Start application of non-local potentials (stored in the Hamiltonian) to the wave functions.
All-electron reconstruction of mesh fields from the PAW one-center terms.
subroutine, public paw_ae_add_onsite_current(this, epot, current)
Add the time-dependent one-center all-electron current to the current density.
/* 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.
subroutine, public projector_aug_pair_to_columns(proj, pmat, ncomp, pairw, wcol)
Apply the Gaunt coupling between projection pairs and the combined augmentation columns: wcol(col,...
subroutine, public zprojector_commute_r_allatoms_alldir(pj, ions, mesh, dim, bnd, ik, psi, cpsi)
This function calculates |cpsi> += [x, V_nl] |psi>
logical elemental function, public projector_has_augmentation(p)
Whether the projector carries an augmentation contribution (charge augmentation Q_ij and a generalize...
integer pure function, public states_elec_block_max(st, ib)
return index of last state in block ib
integer pure function, public states_elec_block_min(st, ib)
return index of first state in block ib
This module provides routines for communicating states when using states parallelization.
subroutine, public states_elec_parallel_remote_access_stop(this)
stop remote memory access for states on other processors
subroutine, public states_elec_parallel_remote_access_start(this)
start remote memory access for states on other processors
type(type_t), parameter, public type_float
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.
logical pure function, public family_is_mgga_with_exc(xcs)
Is the xc function part of the mGGA family with an energy functional.
logical pure function, public family_is_hybrid(xcs)
Returns true if the functional is an hybrid functional.
class representing derivatives
Description of the grid, containing information on derivatives, stencil, and symmetries.
Class for projections of wave functions.
A set of projectors defined on a submesh.
The projector data type is intended to hold the local and non-local parts of the pseudopotentials....
The states_elec_t class contains all electronic wave functions.
batches of electronic states