Octopus
propagator_etrs.F90
Go to the documentation of this file.
1!! Copyright (C) 2002-2006 M. Marques, A. Castro, A. Rubio, G. Bertsch
2!!
3!! This program is free software; you can redistribute it and/or modify
4!! it under the terms of the GNU General Public License as published by
5!! the Free Software Foundation; either version 2, or (at your option)
6!! any later version.
7!!
8!! This program is distributed in the hope that it will be useful,
9!! but WITHOUT ANY WARRANTY; without even the implied warranty of
10!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11!! GNU General Public License for more details.
12!!
13!! You should have received a copy of the GNU General Public License
14!! along with this program; if not, write to the Free Software
15!! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16!! 02110-1301, USA.
17!!
18
19#include "global.h"
20
22 use accel_oct_m
23 use batch_oct_m
24 use debug_oct_m
29 use grid_oct_m
31 use global_oct_m
36 use ions_oct_m
39 use lda_u_oct_m
41 use math_oct_m
46 use parser_oct_m
49 use space_oct_m
52 use types_oct_m
53 use v_ks_oct_m
56 use xc_oct_m
57
58 implicit none
59
60 private
61
62 public :: &
63 td_etrs, &
64 td_etrs_sc, &
65 td_aetrs, &
67
68contains
69
70 ! ---------------------------------------------------------
72 subroutine td_etrs(ks, namespace, space, hm, ext_partners, gr, st, tr, time, dt, &
73 ions_dyn, ions, mc)
74 type(v_ks_t), intent(inout) :: ks
75 type(namespace_t), intent(in) :: namespace
76 type(electron_space_t), intent(in) :: space
77 type(hamiltonian_elec_t), intent(inout) :: hm
78 type(partner_list_t), intent(in) :: ext_partners
79 type(grid_t), intent(inout) :: gr
80 type(states_elec_t), intent(inout) :: st
81 type(propagator_base_t), intent(inout) :: tr
82 real(real64), intent(in) :: time
83 real(real64), intent(in) :: dt
84 type(ion_dynamics_t), intent(inout) :: ions_dyn
85 type(ions_t), intent(inout) :: ions
86 type(multicomm_t), intent(inout) :: mc
87
88 type(xc_copied_potentials_t) :: vhxc_t1, vhxc_t2
89 type(gauge_field_t), pointer :: gfield
90
91 push_sub(td_etrs)
92
93 if (hm%theory_level /= independent_particles) then
94
95 call hm%ks_pot%store_potentials(vhxc_t1)
96
97 call propagation_ops_elec_fuse_density_exp_apply(tr%te, namespace, st, gr, hm, m_half*dt, dt)
98
99 call v_ks_calc(ks, namespace, space, hm, st, ions, ext_partners, &
100 calc_current = .false., calc_energy = .false., calc_eigenval = .false.)
101
102 call hm%ks_pot%store_potentials(vhxc_t2)
103 call hm%ks_pot%restore_potentials(vhxc_t1)
104 call hm%update(gr, namespace, space, ext_partners, time = time - dt)
105
106 else
107
108 call propagation_ops_elec_exp_apply(tr%te, namespace, st, gr, hm, m_half*dt)
109
110 end if
111
112 ! propagate dt/2 with H(t)
113
114 ! first move the ions to time t
115 call propagation_ops_elec_move_ions(tr%propagation_ops_elec, gr, hm, st, namespace, space, ions_dyn, ions, &
116 ext_partners, mc, time, dt)
117
118 gfield => list_get_gauge_field(ext_partners)
119 if(associated(gfield)) then
120 call propagation_ops_elec_propagate_gauge_field(tr%propagation_ops_elec, gfield, dt, time)
121 end if
122
123 if (hm%theory_level /= independent_particles) then
124 call hm%ks_pot%restore_potentials(vhxc_t2)
125 end if
126
127 call propagation_ops_elec_update_hamiltonian(namespace, space, st, gr, hm, ext_partners, time)
128
129 ! propagate dt/2 with H(time - dt)
130 call propagation_ops_elec_fuse_density_exp_apply(tr%te, namespace, st, gr, hm, m_half*dt)
131
132 pop_sub(td_etrs)
133 end subroutine td_etrs
134
135 ! ---------------------------------------------------------
137 subroutine td_etrs_sc(ks, namespace, space, hm, ext_partners, gr, st, tr, time, dt, &
138 ions_dyn, ions, mc, sctol, scsteps)
139 type(v_ks_t), intent(inout) :: ks
140 type(namespace_t), intent(in) :: namespace
141 type(electron_space_t), intent(in) :: space
142 type(hamiltonian_elec_t), intent(inout) :: hm
143 type(partner_list_t), intent(in) :: ext_partners
144 type(grid_t), intent(inout) :: gr
145 type(states_elec_t), intent(inout) :: st
146 type(propagator_base_t), intent(inout) :: tr
147 real(real64), intent(in) :: time
148 real(real64), intent(in) :: dt
149 type(ion_dynamics_t), intent(inout) :: ions_dyn
150 type(ions_t), intent(inout) :: ions
151 type(multicomm_t), intent(inout) :: mc
152 real(real64), intent(in) :: sctol
153 integer, optional, intent(out) :: scsteps
154
155 real(real64) :: diff
156 integer :: ik, ib, iter
157 class(wfs_elec_t), allocatable :: psi2(:, :)
158 ! these are hardcoded for the moment
159 integer, parameter :: niter = 10
160 type(gauge_field_t), pointer :: gfield
161 type(xc_copied_potentials_t) :: vhxc_t1, vhxc_t2
162
163 push_sub(td_etrs_sc)
164
165 assert(hm%theory_level /= independent_particles)
166
167 call hm%ks_pot%store_potentials(vhxc_t1)
168
169 call messages_new_line()
170 call messages_write(' Self-consistency iteration:')
171 call messages_info(namespace=namespace)
172
173 !Propagate the states to t+dt/2 and compute the density at t+dt
174 call propagation_ops_elec_fuse_density_exp_apply(tr%te, namespace, st, gr, hm, m_half*dt, dt)
175
176 call v_ks_calc(ks, namespace, space, hm, st, ions, ext_partners, &
177 calc_current = .false., calc_energy = .false., calc_eigenval = .false.)
178
179
180 call hm%ks_pot%store_potentials(vhxc_t2)
181 call hm%ks_pot%restore_potentials(vhxc_t1)
182
183 call propagation_ops_elec_update_hamiltonian(namespace, space, st, gr, hm, ext_partners, time - dt)
184
185 ! propagate dt/2 with H(t)
186
187 ! first move the ions to time t
188 call propagation_ops_elec_move_ions(tr%propagation_ops_elec, gr, hm, st, namespace, space, ions_dyn, ions, &
189 ext_partners, mc, time, dt)
190
191 gfield => list_get_gauge_field(ext_partners)
192 if(associated(gfield)) then
193 call propagation_ops_elec_propagate_gauge_field(tr%propagation_ops_elec, gfield, dt, time)
194 end if
195
196 call hm%ks_pot%restore_potentials(vhxc_t2)
197
198 call propagation_ops_elec_update_hamiltonian(namespace, space, st, gr, hm, ext_partners, time)
199
200 safe_allocate_type_array(wfs_elec_t, psi2, (st%group%block_start:st%group%block_end, st%d%kpt%start:st%d%kpt%end))
201
202 ! store the state at half iteration
203 do ik = st%d%kpt%start, st%d%kpt%end
204 do ib = st%group%block_start, st%group%block_end
205 call st%group%psib(ib, ik)%copy_to(psi2(ib, ik), copy_data=.true.)
206 end do
207 end do
208
209 do iter = 1, niter
210
211 call hm%ks_pot%store_potentials(vhxc_t2)
212
213 call propagation_ops_elec_fuse_density_exp_apply(tr%te, namespace, st, gr, hm, m_half * dt)
214
215 call v_ks_calc(ks, namespace, space, hm, st, ions, ext_partners, &
216 time = time, calc_current = .false., calc_energy = .false., calc_eigenval = .false.)
217 call lda_u_update_occ_matrices(hm%lda_u, namespace, gr, st, hm%hm_base, hm%phase, hm%energy)
218
219 ! now check how much the potential changed
220 diff = hm%ks_pot%check_convergence(vhxc_t2, gr, st%rho, st%qtot)
221
222 call messages_write(' step ')
223 call messages_write(iter)
224 call messages_write(', residue = ')
225 call messages_write(abs(diff), fmt = '(1x,es9.2)')
226 call messages_info(namespace=namespace)
227
228 if (abs(diff) <= sctol) exit
229
230 if (iter /= niter) then
231 ! we are not converged, restore the states
232 do ik = st%d%kpt%start, st%d%kpt%end
233 do ib = st%group%block_start, st%group%block_end
234 call psi2(ib, ik)%copy_data_to(gr%np, st%group%psib(ib, ik))
235 end do
236 end do
237 end if
238
239 end do
240
241 if (hm%lda_u_level /= dft_u_none) then
242 call lda_u_write_u(hm%lda_u, namespace=namespace)
243 call lda_u_write_v(hm%lda_u, namespace=namespace)
244 end if
245
246 ! print an empty line
247 call messages_info(namespace=namespace)
248
249 if (present(scsteps)) scsteps = iter
250
251 do ik = st%d%kpt%start, st%d%kpt%end
252 do ib = st%group%block_start, st%group%block_end
253 call psi2(ib, ik)%end()
254 end do
255 end do
256
257 safe_deallocate_a(psi2)
258
259 pop_sub(td_etrs_sc)
260 end subroutine td_etrs_sc
261
262 ! ---------------------------------------------------------
264 subroutine td_aetrs(namespace, space, hm, gr, st, tr, time, dt, ions_dyn, ions, ext_partners, mc)
265 type(namespace_t), intent(in) :: namespace
266 type(electron_space_t), intent(in) :: space
267 type(hamiltonian_elec_t), intent(inout) :: hm
268 type(grid_t), intent(inout) :: gr
269 type(states_elec_t), intent(inout) :: st
270 type(propagator_base_t), intent(inout) :: tr
271 real(real64), intent(in) :: time
272 real(real64), intent(in) :: dt
273 type(ion_dynamics_t), intent(inout) :: ions_dyn
274 type(ions_t), intent(inout) :: ions
275 type(partner_list_t), intent(in) :: ext_partners
276 type(multicomm_t), intent(inout) :: mc
277
278 type(gauge_field_t), pointer :: gfield
279
280 push_sub(td_aetrs)
281
282 ! propagate half of the time step with H(time - dt)
283 call propagation_ops_elec_exp_apply(tr%te, namespace, st, gr, hm, m_half*dt)
284
285 !Get the potentials from the interpolation
286 call propagation_ops_elec_interpolate_get(hm, gr, tr%vks_old)
287
288 ! move the ions to time t
289 call propagation_ops_elec_move_ions(tr%propagation_ops_elec, gr, hm, st, namespace, space, ions_dyn, &
290 ions, ext_partners, mc, time, dt)
291
292 !Propagate gauge field
293 gfield => list_get_gauge_field(ext_partners)
294 if(associated(gfield)) then
295 call propagation_ops_elec_propagate_gauge_field(tr%propagation_ops_elec, gfield, dt, time)
296 end if
297
298 !Update Hamiltonian
299 call propagation_ops_elec_update_hamiltonian(namespace, space, st, gr, hm, ext_partners, time)
300
301 !Do the time propagation for the second half of the time step
302 call propagation_ops_elec_fuse_density_exp_apply(tr%te, namespace, st, gr, hm, m_half*dt)
303
304 pop_sub(td_aetrs)
305 end subroutine td_aetrs
306
307 ! ---------------------------------------------------------
309 subroutine td_caetrs(ks, namespace, space, hm, ext_partners, gr, st, tr, time, dt, &
310 ions_dyn, ions, mc)
311 type(v_ks_t), intent(inout) :: ks
312 type(namespace_t), intent(in) :: namespace
313 type(electron_space_t), intent(in) :: space
314 type(hamiltonian_elec_t), intent(inout) :: hm
315 type(partner_list_t), intent(in) :: ext_partners
316 type(grid_t), intent(inout) :: gr
317 type(states_elec_t), intent(inout) :: st
318 type(propagator_base_t), intent(inout) :: tr
319 real(real64), intent(in) :: time
320 real(real64), intent(in) :: dt
321 type(ion_dynamics_t), intent(inout) :: ions_dyn
322 type(ions_t), intent(inout) :: ions
323 type(multicomm_t), intent(inout) :: mc
324
325 integer :: ik, ispin, ip, ist, ib
326 real(real64) :: vv
327 complex(real64) :: phase
328 type(density_calc_t) :: dens_calc
329 integer(int64) :: pnp, wgsize, dim2, dim3
330 type(accel_mem_t) :: phase_buff
331 type(gauge_field_t), pointer :: gfield
332 type(xc_copied_potentials_t) :: vold
333
334 push_sub(td_caetrs)
335
336 ! Get the interpolated KS potentials into vold
337 call hm%ks_pot%get_interpolated_potentials(tr%vks_old, 2, storage=vold)
338 ! And set it to the Hamiltonian
339 call hm%ks_pot%restore_potentials(vold)
340
341 call propagation_ops_elec_update_hamiltonian(namespace, space, st, gr, hm, ext_partners, time - dt)
342
343 call v_ks_calc_start(ks, namespace, space, hm, st, ions, ions%latt, ext_partners, &
344 time = time - dt, calc_energy = .false.)
345
346 ! propagate half of the time step with H(time - dt)
347 call propagation_ops_elec_exp_apply(tr%te, namespace, st, gr, hm, m_half*dt)
348
349 call v_ks_calc_finish(ks, hm, namespace, space, ions%latt, st, ext_partners)
350
351 call hm%ks_pot%set_interpolated_potentials(tr%vks_old, 1)
352
353 call hm%ks_pot%perform_interpolation(tr%vks_old, (/time - dt, time - m_two*dt, time - m_three*dt/), time)
354
355 ! Replace vold by 0.5(vhxc+vold)
356 call hm%ks_pot%mix_potentials(vold, dt)
358 ! copy vold to a cl buffer
359 if (accel_is_enabled() .and. hm%apply_packed()) then
360 if (family_is_mgga_with_exc(hm%xc)) then
361 call messages_not_implemented('CAETRS propagator with accel and MGGA with energy functionals', namespace=namespace)
362 end if
363 pnp = accel_padded_size(gr%np)
364 call accel_create_buffer(phase_buff, accel_mem_read_only, type_float, pnp*st%d%nspin)
365 call vold%copy_vhxc_to_buffer(int(gr%np, int64), st%d%nspin, pnp, phase_buff)
366 end if
367
368 !Get the potentials from the interpolator
369 call propagation_ops_elec_interpolate_get(hm, gr, tr%vks_old)
370
371 ! move the ions to time t
372 call propagation_ops_elec_move_ions(tr%propagation_ops_elec, gr, hm, st, namespace, space, ions_dyn, &
373 ions, ext_partners, mc, time, dt)
374
375 gfield => list_get_gauge_field(ext_partners)
376 if(associated(gfield)) then
377 call propagation_ops_elec_propagate_gauge_field(tr%propagation_ops_elec, gfield, dt, time)
378 end if
379
380 call propagation_ops_elec_update_hamiltonian(namespace, space, st, gr, hm, ext_partners, time)
381
382 call density_calc_init(dens_calc, st, gr, st%rho)
383
384 ! propagate the other half with H(t)
385 do ik = st%d%kpt%start, st%d%kpt%end
386 ispin = st%d%get_spin_index(ik)
387
388 do ib = st%group%block_start, st%group%block_end
389 if (hm%apply_packed()) then
390 call st%group%psib(ib, ik)%do_pack()
391 if (hamiltonian_elec_inh_term(hm)) call hm%inh_st%group%psib(ib, ik)%do_pack()
392 end if
393
394 call profiling_in("CAETRS_PHASE")
395 select case (st%group%psib(ib, ik)%status())
396 case (batch_not_packed)
397 do ip = 1, gr%np
398 vv = vold%vhxc(ip, ispin)
399 phase = cmplx(cos(vv), -sin(vv), real64)
400 do ist = 1, st%group%psib(ib, ik)%nst_linear
401 st%group%psib(ib, ik)%zff_linear(ip, ist) = st%group%psib(ib, ik)%zff_linear(ip, ist)*phase
402 end do
403 end do
404 case (batch_packed)
405 do ip = 1, gr%np
406 vv = vold%vhxc(ip, ispin)
407 phase = cmplx(cos(vv), -sin(vv), real64)
408 do ist = 1, st%group%psib(ib, ik)%nst_linear
409 st%group%psib(ib, ik)%zff_pack(ist, ip) = st%group%psib(ib, ik)%zff_pack(ist, ip)*phase
410 end do
411 end do
413 call accel_set_kernel_arg(kernel_phase, 0, pnp*(ispin - 1))
414 call accel_set_kernel_arg(kernel_phase, 1, gr%np)
415 call accel_set_kernel_arg(kernel_phase, 2, phase_buff)
416 call accel_set_kernel_arg(kernel_phase, 3, st%group%psib(ib, ik)%ff_device)
417 call accel_set_kernel_arg(kernel_phase, 4, log2(st%group%psib(ib, ik)%pack_size(1)))
418
419 wgsize = accel_max_workgroup_size()/st%group%psib(ib, ik)%pack_size(1)
420 dim3 = pnp/(accel_max_size_per_dim(2)*wgsize) + 1
421 dim2 = min(accel_max_size_per_dim(2)*wgsize, pad(pnp, wgsize))
422
423 call accel_kernel_run(kernel_phase, (/st%group%psib(ib, ik)%pack_size(1), dim2, dim3/), &
424 (/st%group%psib(ib, ik)%pack_size(1), wgsize, 1_int64/))
425
426 end select
427 call profiling_out("CAETRS_PHASE")
428
429 call hm%phase%set_phase_corr(gr, st%group%psib(ib, ik))
430 if (hamiltonian_elec_inh_term(hm)) then
431 call tr%te%apply_batch(namespace, gr, hm, st%group%psib(ib, ik), m_half*dt, &
432 inh_psib = hm%inh_st%group%psib(ib, ik))
433 else
434 call tr%te%apply_batch(namespace, gr, hm, st%group%psib(ib, ik), m_half*dt)
435 end if
436 call hm%phase%unset_phase_corr(gr, st%group%psib(ib, ik))
437
438 call density_calc_accumulate(dens_calc, st%group%psib(ib, ik))
439
440 if (hm%apply_packed()) then
441 call st%group%psib(ib, ik)%do_unpack()
442 if (hamiltonian_elec_inh_term(hm)) call hm%inh_st%group%psib(ib, ik)%do_unpack()
443 end if
444 end do
445 end do
446
447 call density_calc_end(dens_calc)
448
449 if (accel_is_enabled() .and. hm%apply_packed()) then
450 call accel_release_buffer(phase_buff)
451 end if
452
453 pop_sub(td_caetrs)
454 end subroutine td_caetrs
455
456end module propagator_etrs_oct_m
457
458!! Local Variables:
459!! mode: f90
460!! coding: utf-8
461!! End:
double sin(double __x) __attribute__((__nothrow__
double cos(double __x) __attribute__((__nothrow__
integer pure function, public accel_max_size_per_dim(dim)
Definition: accel.F90:2165
subroutine, public accel_release_buffer(this)
Definition: accel.F90:1248
type(accel_kernel_t), target, save, public kernel_phase
Definition: accel.F90:288
pure logical function, public accel_is_enabled()
Definition: accel.F90:401
integer, parameter, public accel_mem_read_only
Definition: accel.F90:183
integer pure function, public accel_max_workgroup_size()
Definition: accel.F90:1474
This module implements batches of mesh functions.
Definition: batch.F90:133
integer, parameter, public batch_not_packed
functions are stored in CPU memory, unpacked order
Definition: batch.F90:276
integer, parameter, public batch_device_packed
functions are stored in device memory in packed order
Definition: batch.F90:276
integer, parameter, public batch_packed
functions are stored in CPU memory, in transposed (packed) order
Definition: batch.F90:276
This module implements a calculator for the density and defines related functions.
Definition: density.F90:120
subroutine, public density_calc_end(this, allreduce, symmetrize)
Finalize the density calculation.
Definition: density.F90:561
subroutine, public density_calc_accumulate(this, psib, async)
Accumulate weighted orbital densities for a batch psib.
Definition: density.F90:394
subroutine, public density_calc_init(this, st, gr, density)
initialize the density calculator
Definition: density.F90:187
type(gauge_field_t) function, pointer, public list_get_gauge_field(partners)
real(real64), parameter, public m_two
Definition: global.F90:190
real(real64), parameter, public m_half
Definition: global.F90:194
real(real64), parameter, public m_three
Definition: global.F90:191
This module implements the underlying real-space grid.
Definition: grid.F90:117
pure logical function, public hamiltonian_elec_inh_term(hm)
This module defines classes and functions for interaction partners.
A module to handle KS potential, without the external potential.
integer, parameter, public independent_particles
subroutine, public lda_u_write_u(this, iunit, namespace)
Definition: lda_u_io.F90:525
subroutine, public lda_u_write_v(this, iunit, namespace)
Definition: lda_u_io.F90:573
integer, parameter, public dft_u_none
Definition: lda_u.F90:201
subroutine, public lda_u_update_occ_matrices(this, namespace, mesh, st, hm_base, phase, energy)
Definition: lda_u.F90:797
This module is intended to contain "only mathematical" functions and procedures.
Definition: math.F90:115
This module defines various routines, operating on mesh functions.
subroutine, public messages_not_implemented(feature, namespace)
Definition: messages.F90:1114
subroutine, public messages_new_line()
Definition: messages.F90:1135
subroutine, public messages_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
Definition: messages.F90:617
This module handles the communicators for the various parallelization strategies.
Definition: multicomm.F90:145
subroutine, public profiling_out(label)
Increment out counter and sum up difference between entry and exit time.
Definition: profiling.F90:623
subroutine, public profiling_in(label, exclude)
Increment in counter and save entry time.
Definition: profiling.F90:552
subroutine, public propagation_ops_elec_propagate_gauge_field(wo, gfield, dt, time, save_gf)
subroutine, public propagation_ops_elec_update_hamiltonian(namespace, space, st, mesh, hm, ext_partners, time)
subroutine, public propagation_ops_elec_exp_apply(te, namespace, st, mesh, hm, dt)
subroutine, public propagation_ops_elec_interpolate_get(hm, mesh, vks_old)
subroutine, public propagation_ops_elec_move_ions(wo, gr, hm, st, namespace, space, ions_dyn, ions, ext_partners, mc, time, dt, save_pos)
subroutine, public propagation_ops_elec_fuse_density_exp_apply(te, namespace, st, gr, hm, dt, dt2, vmagnus)
subroutine, public td_aetrs(namespace, space, hm, gr, st, tr, time, dt, ions_dyn, ions, ext_partners, mc)
Propagator with approximate enforced time-reversal symmetry.
subroutine, public td_etrs_sc(ks, namespace, space, hm, ext_partners, gr, st, tr, time, dt, ions_dyn, ions, mc, sctol, scsteps)
Propagator with enforced time-reversal symmetry and self-consistency.
subroutine, public td_etrs(ks, namespace, space, hm, ext_partners, gr, st, tr, time, dt, ions_dyn, ions, mc)
Propagator with enforced time-reversal symmetry.
subroutine, public td_caetrs(ks, namespace, space, hm, ext_partners, gr, st, tr, time, dt, ions_dyn, ions, mc)
Propagator with approximate enforced time-reversal symmetry.
This module handles spin dimensions of the states and the k-point distribution.
type(type_t), parameter, public type_float
Definition: types.F90:133
subroutine, public v_ks_calc_finish(ks, hm, namespace, space, latt, st, ext_partners, force_semilocal)
Definition: v_ks.F90:1098
subroutine, public v_ks_calc_start(ks, namespace, space, hm, st, ions, latt, ext_partners, time, calc_energy, force_semilocal)
This routine starts the calculation of the Kohn-Sham potential. The routine v_ks_calc_finish must be ...
Definition: v_ks.F90:799
subroutine, public v_ks_calc(ks, namespace, space, hm, st, ions, ext_partners, calc_eigenval, time, calc_energy, calc_current, force_semilocal)
Definition: v_ks.F90:744
Definition: xc.F90:114
logical pure function, public family_is_mgga_with_exc(xcs)
Is the xc function part of the mGGA family with an energy functional.
Definition: xc.F90:595
The calculator object.
Definition: density.F90:169
Extension of space that contains the knowledge of the spin dimension.
Description of the grid, containing information on derivatives, stencil, and symmetries.
Definition: grid.F90:168
Stores all communicators and groups.
Definition: multicomm.F90:206
The states_elec_t class contains all electronic wave functions.
batches of electronic states
Definition: wfs_elec.F90:138
int true(void)