30 use,
intrinsic :: iso_fortran_env
70 type(mesh_t),
pointer :: mesh_p
71 real(real64),
allocatable :: rho_p(:)
72 real(real64),
allocatable :: grho_p(:, :)
73 real(real64) :: alpha2_p
74 real(real64),
pointer :: pos_p(:)
81 class(species_t),
target,
intent(in) :: species
82 type(namespace_t),
intent(in) :: namespace
83 class(space_t),
intent(in) :: space
84 type(lattice_vectors_t),
intent(in) :: latt
85 real(real64),
intent(in) :: pos(1:space%dim)
86 type(mesh_t),
intent(in) :: mesh
87 integer,
intent(in) :: spin_channels
88 real(real64),
contiguous,
intent(inout) :: rho(:, :)
90 integer :: isp, ip, in_points, icell
91 real(real64) :: rr, x, pos_pc(space%dim), nrm, rmax
92 real(real64) :: xx(space%dim), yy(space%dim), rerho, imrho
93 real(real64),
allocatable :: dorbital(:)
94 type(ps_t),
pointer :: ps
95 type(volume_t) :: volume
96 integer :: in_points_red
97 type(lattice_iterator_t) :: latt_iter
98 integer :: iorb, ii, nn, ll, mm
99 real(real64) :: radius, density
100 type(submesh_t) :: sphere
104 assert(spin_channels == 1 .or. spin_channels == 2)
109 select type (species)
121 do isp = 1, spin_channels
122 do iorb = 1, species%get_niwfs()
123 call species%get_iwf_ilm(iorb, isp, ii, ll, mm)
125 call species%get_iwf_n(iorb, isp, nn)
127 radius = species%get_iwf_radius(nn, isp)
129 radius = max(radius,
m_two*maxval(mesh%spacing))
131 call submesh_init(sphere, space, mesh, latt, pos, radius)
132 safe_allocate(dorbital(1:sphere%np))
139 dorbital(ip) = species%conf%occ(ii, isp)/real(2*ll+1, real64) *dorbital(ip)*dorbital(ip)
142 safe_deallocate_a(dorbital)
156 rmax = latt%max_length()
159 do icell = 1, latt_iter%n_cells
160 yy = latt_iter%get(icell)
162 call mesh_r(mesh, ip, rr, origin = pos, coords = xx)
168 rho(ip, 1) = rho(ip, 1) + rerho
174 if (spin_channels > 1)
then
175 rho(:, 1) =
m_half*rho(:, 1)
176 rho(:, 2) = rho(:, 1)
180 do isp = 1, spin_channels
184 rho(ip, isp) = x * rho(ip, isp)
194 rmax = latt%max_length()
197 do icell = 1, latt_iter%n_cells
198 yy = latt_iter%get(icell)
200 call mesh_r(mesh, ip, rr, origin = pos, coords = xx)
206 rho(ip, 1) = rho(ip, 1) + rerho
210 if (spin_channels > 1)
then
211 rho(:, 1) =
m_half*rho(:, 1)
212 rho(:, 2) = rho(:, 1)
216 do isp = 1, spin_channels
220 rho(ip, isp) = x * rho(ip, isp)
229 call mesh_r(mesh, ip, rr, origin = pos)
230 if (rr <= species%radius())
then
231 in_points = in_points + 1
235 if (mesh%parallel_in_domains)
then
236 call mesh%mpi_grp%allreduce(in_points, in_points_red, 1, mpi_integer, mpi_sum)
237 in_points = in_points_red
240 if (in_points > 0)
then
243 if (mesh%use_vol_pp)
then
245 call mesh_r(mesh, ip, rr, origin = pos)
246 if (rr <= species%radius())
then
247 rho(ip, 1:spin_channels) = species%get_zval() / &
248 (mesh%vol_pp(ip) * real(in_points*spin_channels, real64) )
253 call mesh_r(mesh, ip, rr, origin = pos)
254 if (rr <= species%radius())
then
255 rho(ip, 1:spin_channels) = species%get_zval() / &
256 (mesh%vol_pp(1) * real(in_points * spin_channels, real64) )
263 density = species%get_density(mesh%box%bounding_box_l) / spin_channels
266 rr = abs(mesh%x(3, ip) - pos(3))
267 if (rr <= species%thickness() /
m_two)
then
268 rho(ip, 1:spin_channels) = density
279 assert(
allocated(ps%density))
282 do isp = 1, spin_channels
283 rmax = max(rmax, ps%density(isp)%x_threshold)
287 do icell = 1, latt_iter%n_cells
288 pos_pc = pos + latt_iter%get(icell)
290 call mesh_r(mesh, ip, rr, origin = pos_pc)
293 do isp = 1, spin_channels
295 rho(ip, isp) = rho(ip, isp) +
spline_eval(ps%density(isp), rr)
306 do icell = 1, latt_iter%n_cells
307 pos_pc = pos + latt_iter%get(icell)
309 call mesh_r(mesh, ip, rr, origin = pos_pc)
314 do isp = 1, spin_channels
323 do isp = 1, spin_channels
327 do isp = 1, spin_channels
328 call lalg_scal(mesh%np, species%get_zval()/nrm, rho(:, isp))
339 do isp = 1, spin_channels
340 rho(1:mesh%np, isp) =
m_one
341 x = (species%get_zval()/real(spin_channels, real64) ) /
dmf_integrate(mesh, rho(:, isp))
342 rho(1:mesh%np, isp) = x
352 class(
species_t),
target,
intent(in) :: species
354 real(real64),
intent(in) :: pos(:)
355 type(
mesh_t),
intent(in) :: mesh
356 integer,
intent(in) :: spin_channels
357 real(real64),
intent(inout) :: rho(:, :)
360 real(real64) :: rr, nrm
361 type(
ps_t),
pointer :: ps
375 assert(
allocated(ps%density))
378 do isp = 1, spin_channels
381 call mesh_r(mesh, ip, rr, origin = pos)
384 rho(ip, isp) = rho(ip, isp) +
spline_eval(ps%density(isp), rr)
395 call mesh_r(mesh, ip, rr, origin = pos)
400 do isp = 1, spin_channels
408 do isp = 1, spin_channels
412 do isp = 1, spin_channels
413 call lalg_scal(mesh%np, species%get_zval()/nrm, rho(:, isp))
430 class(
species_t),
target,
intent(in) :: species
432 real(real64),
contiguous,
intent(in) :: pos(:)
433 type(
mesh_t),
intent(in) :: mesh
434 integer,
intent(in) :: spin_channels
435 real(real64),
intent(inout) :: drho(:, :)
439 type(
ps_t),
pointer :: ps
451 do isp = 1, spin_channels
454 call mesh_r(mesh, ip, rr, origin = pos)
457 drho(ip, isp) = drho(ip, isp) +
spline_eval(ps%density_der(isp), rr)
482 class(
species_t),
target,
intent(in) :: species
484 class(
space_t),
intent(in) :: space
486 real(real64),
intent(in) :: pos(1:space%dim)
487 type(
mesh_t),
intent(in) :: mesh
488 integer,
intent(in) :: spin_channels
489 real(real64),
intent(inout) :: drho(:, :, :)
491 integer :: isp, ip, icell, idir
492 real(real64) :: rr, pos_pc(space%dim), range, spline
493 type(
ps_t),
pointer :: ps
498 assert(spin_channels == 1 .or. spin_channels == 2)
510 range = ps%density_der(1)%x_threshold
511 if (spin_channels == 2) range = max(range, ps%density_der(2)%x_threshold)
514 do icell = 1, latt_iter%n_cells
515 pos_pc = pos + latt_iter%get(icell)
518 call mesh_r(mesh, ip, rr, origin = pos_pc)
521 do isp = 1, spin_channels
525 if(abs(spline) < 1e-150_real64) cycle
527 do idir = 1, space%dim
528 drho(ip, isp, idir) = drho(ip, isp, idir) - spline*(mesh%x(idir, ip) - pos_pc(idir))/rr
552 class(
species_t),
target,
intent(in) :: species
554 class(
space_t),
intent(in) :: space
556 real(real64),
target,
intent(in) :: pos(1:space%dim)
557 class(
mesh_t),
target,
intent(in) :: mesh
558 real(real64),
contiguous,
intent(out) :: rho(:)
559 type(
submesh_t),
optional,
target,
intent(inout) :: sphere_inout
560 real(real64),
contiguous,
optional,
intent(inout) :: nlr_x(:,:)
564 real(real64) :: startval(space%dim)
565 real(real64) :: delta, alpha, xx(space%dim), yy(space%dim), rr, imrho1, rerho
566 real(real64) :: dist2_min
567 integer :: icell, ipos, ip, idir, rankmin
569 type(
ps_t),
pointer :: ps
573 logical :: have_point
574 real(real64),
allocatable :: rho_sphere(:)
575 real(real64),
parameter :: threshold = 1e-6_real64
576 real(real64) :: norm_factor, range, radius, radius_nlr, radius_vl
582 if(
present(nlr_x))
then
583 assert(species%is_ps())
586 select type (species)
590 if (
present(sphere_inout))
then
591 radius_vl = ps%vl%x_threshold*1.05_real64
592 radius = max(radius_nlr, radius_vl)
593 call submesh_init(sphere_inout, space, mesh, latt, pos, radius)
594 sphere => sphere_inout
597 call submesh_init(sphere_local, space, mesh, latt, pos, radius)
598 sphere => sphere_local
601 safe_allocate(rho_sphere(1:sphere%np))
602 if (.not.
present(sphere_inout) .and. sphere%np > 0)
then
603 call lalg_copy(sphere%np, sphere%r, rho_sphere)
607 if(sphere%r(ip) <= radius_nlr)
then
619 norm_factor = abs(species%get_zval()/
dsm_integrate(mesh, sphere, rho_sphere))
621 rho(sphere%map(ip)) = rho(sphere%map(ip)) + norm_factor*rho_sphere(ip)
624 if (
present(nlr_x))
then
625 do idir = 1, space%dim
627 nlr_x(sphere%map(ip), idir) = nlr_x(sphere%map(ip), idir) + norm_factor*rho_sphere(ip)*sphere%rel_x(idir, ip)
632 safe_deallocate_a(rho_sphere)
634 if ( .not.
present(sphere_inout) )
then
645 if (mesh%mpi_grp%rank /= rankmin) have_point = .false.
648 if (mesh%use_vol_pp)
then
649 rho(ipos) = -species%get_z()/mesh%vol_pp(ipos)
651 rho(ipos) = -species%get_z()/mesh%vol_pp(1)
655 write(
message(1),
'(3a,f12.6,3a)') &
656 "Info: species_full_delta species ", trim(species%get_label()), &
664 if (space%is_periodic())
then
671 select type (cs => mesh%coord_system)
683 safe_allocate(rho_p(1:mesh%np))
684 safe_allocate(grho_p(1:mesh%np, 1:space%dim))
690 delta = mesh%spacing(1)
691 alpha =
sqrt(
m_two)*species%get_sigma()*delta
695 startval(1:space%dim) = mesh%coord_system%from_cartesian(pos)
703 write(
message(1),
'(a)')
'Root finding in species_get_density did not converge.'
709 "Info: species_full_gaussian species ", trim(species%get_label()),
":"
710 write(
message(2),
'(a,f12.6,a,f12.6)') &
711 " sigma = ", species%get_sigma(),
" spacing = ", delta
712 write(
message(3),
'(a,f12.6,a,f12.6,a)') &
713 " alpha = ", alpha,
" zeta = ",
m_one/alpha2_p,
" [bohr^-2]"
716 if(
debug%info .and. space%dim == 3)
then
717 write(
message(1),
'(a,3(f6.3,a))') &
718 'Debug: Gaussian charge position in primitive coordinates (', xx(1),
', ', xx(2),
', ', xx(3),
')'
723 rho = -species%get_z()*rho_p
727 safe_deallocate_a(grho_p)
728 safe_deallocate_a(rho_p)
739 range = latt%max_length()
743 do icell = 1, latt_iter%n_cells
744 yy = latt_iter%get(icell)
746 call mesh_r(mesh, ip, rr, origin = pos, coords = xx)
752 rho(ip) = rho(ip) - rerho
760 range = latt%max_length()
764 do icell = 1, latt_iter%n_cells
765 yy = latt_iter%get(icell)
767 call mesh_r(mesh, ip, rr, origin = pos, coords = xx)
773 rho(ip) = rho(ip) - rerho
790 subroutine func(xin, ff, jacobian)
791 real(real64),
intent(in) :: xin(:)
792 real(real64),
intent(out) :: ff(:), jacobian(:,:)
794 real(real64),
allocatable :: xrho(:)
795 integer :: idir, jdir, dim, ip
802 safe_allocate(xrho(1:mesh_p%np))
808 xrho(ip) = rho_p(ip) * mesh_p%x_t(ip, idir)
818 xrho(ip) = grho_p(ip, jdir) * mesh_p%x_t(ip, idir)
824 safe_deallocate_a(xrho)
829 subroutine species_get_nlcc(species, space, latt, pos, mesh, rho_core, accumulate, dgrid)
830 class(
species_t),
target,
intent(in) :: species
831 class(
space_t),
intent(in) :: space
833 real(real64),
intent(in) :: pos(1:space%dim)
834 class(
mesh_t),
intent(in) :: mesh
835 real(real64),
contiguous,
intent(inout) :: rho_core(:)
836 logical,
optional,
intent(in) :: accumulate
839 real(real64) :: center(space%dim), rr
842 type(
ps_t),
pointer :: ps
844 real(real64),
allocatable :: core_sm(:, :)
854 if (.not. species%has_nlcc())
then
859 if (dgrid%enabled)
then
862 safe_allocate(core_sm(1:sphere%np, 1:1))
865 safe_deallocate_a(core_sm)
869 do icell = 1, latt_iter%n_cells
870 center = pos + latt_iter%get(icell)
872 rr = norm2(mesh%x(1:space%dim, ip) - center)
874 rho_core(ip) = rho_core(ip) +
spline_eval(ps%core, rr)
900 class(
species_t),
target,
intent(in) :: species
903 real(real64),
intent(in) :: pos(1:space%dim)
904 class(
mesh_t),
intent(in) :: mesh
905 real(real64),
contiguous,
intent(inout) :: rho_core_grad_x(:,:,:)
907 real(real64) :: center(space%dim), dd(space%dim), rr, drho
908 integer :: icell, ip, idir, jdir
910 type(
ps_t),
pointer :: ps
921 if (.not. species%has_nlcc())
then
927 do icell = 1, latt_iter%n_cells
928 center = pos + latt_iter%get(icell)
930 dd(1:space%dim) = mesh%x(1:space%dim, ip) - center
935 do idir = 1, space%dim
936 do jdir = idir, space%dim
937 rho_core_grad_x(ip, idir, jdir) = rho_core_grad_x(ip, idir, jdir) &
938 + drho * dd(idir) * dd(jdir)
945 do idir = 1, space%dim
946 do jdir = idir + 1, space%dim
947 rho_core_grad_x(1:mesh%np, jdir, idir) = rho_core_grad_x(1:mesh%np, idir, jdir)
966 class(
species_t),
target,
intent(in) :: species
967 class(
space_t),
intent(in) :: space
969 real(real64),
intent(in) :: pos(1:space%dim)
970 class(
mesh_t),
intent(in) :: mesh
971 real(real64),
contiguous,
intent(out) :: grad_rho_core(:,:)
973 real(real64) :: center(space%dim), dd(space%dim), rr, drho
974 integer :: icell, ip, idir
976 type(
ps_t),
pointer :: ps
987 if (.not. species%has_nlcc())
then
993 do icell = 1, latt_iter%n_cells
994 center = pos + latt_iter%get(icell)
996 dd(1:space%dim) = mesh%x(1:space%dim, ip) - center
1001 do idir = 1, space%dim
1002 grad_rho_core(ip, idir) = grad_rho_core(ip, idir) + drho * dd(idir)
1019 class(
species_t),
target,
intent(in) :: species
1020 class(
space_t),
intent(in) :: space
1022 real(real64),
intent(in) :: pos(1:space%dim)
1023 class(
mesh_t),
intent(in) :: mesh
1024 type(
submesh_t),
intent(inout) :: sphere
1025 real(real64),
contiguous,
intent(inout) :: vpsl(:)
1028 real(real64) :: radius, sm_radius
1029 real(real64),
allocatable :: vl_sm(:, :)
1030 type(
ps_t),
pointer :: ps
1034 select type(species)
1041 if (.not.
submesh_compatible(sphere, sm_radius, pos, minval(mesh%spacing(1:space%dim))))
then
1043 call submesh_init(sphere, space, mesh, latt, pos, sm_radius)
1045 safe_allocate(vl_sm(1:sphere%np, 1:1))
1051 safe_deallocate_a(vl_sm)
1062 subroutine getrho(dim, xin)
1063 integer,
intent(in) :: dim
1064 real(real64),
intent(in) :: xin(1:dim)
1067 real(real64) :: r2, chi(dim), norm, threshold
1075 threshold = -
log(0.0001_real64)*alpha2_p
1077 do ip = 1, mesh_p%np
1080 chi(1:dim) = mesh_p%chi(1:dim, ip)
1081 r2 = sum((chi - xin(1:dim))**2)
1083 if (r2 < threshold)
then
1084 rho_p(ip) =
exp(-r2/alpha2_p)
1090 grho_p(ip, idir) = (chi(idir) - xin(idir)) * rho_p(ip)
1105 class(
species_t),
target,
intent(in) :: species
1107 class(
space_t),
intent(in) :: space
1109 real(real64),
intent(in) :: pos(1:space%dim)
1110 type(
mesh_t),
intent(in) :: mesh
1111 real(real64),
contiguous,
intent(out) :: vl(:)
1113 real(real64) :: a1, a2, rb2, range, density
1114 real(real64) :: xx(space%dim), pos_pc(space%dim), r, r2, threshold
1115 integer :: ip, err, icell
1116 complex(real64) :: zpot
1118 real(real64) :: aa, bb
1122 select type(species)
1126 call parse_variable(namespace,
'SpeciesProjectorSphereThreshold', 0.001_real64, threshold)
1132 do icell = 1, latt_iter%n_cells
1133 pos_pc = pos + latt_iter%get(icell)
1135 call mesh_r(mesh, ip, r, origin = pos_pc)
1137 vl(ip) = vl(ip) -species%get_zval()/
sqrt(r2+species%get_softening2())
1143 range = 5.0_real64 * latt%max_length()
1146 do icell = 1, latt_iter%n_cells
1147 pos_pc = pos + latt_iter%get(icell)
1149 call mesh_r(mesh, ip, r, origin = pos_pc, coords = xx)
1151 zpot = species%user_pot(space%dim, xx, r)
1152 vl(ip) = vl(ip) + real(zpot, real64)
1158 call dio_function_input(trim(species%get_filename()), namespace, space, mesh, vl, err)
1160 write(
message(1),
'(a)')
'Error loading file '//trim(species%get_filename())//
'.'
1161 write(
message(2),
'(a,i4)')
'Error code returned = ', err
1167 assert(.not. space%is_periodic())
1169 a1 = species%get_z()/(
m_two*species%radius()**3)
1170 a2 = species%get_z()/species%radius()
1171 rb2= species%radius()**2
1175 xx = mesh%x(:, ip) - pos(1:space%dim)
1178 if (r <= species%radius())
then
1179 vl(ip) = (a1*(r*r - rb2) - a2)
1181 vl(ip) = -species%get_z()/r
1190 density = species%get_density(mesh%box%bounding_box_l)
1195 r = abs(mesh%x(3, ip) - pos(3))
1197 if (r <= species%thickness()/
m_two)
then
1198 vl(ip) = a1 * (r * r / species%thickness() + species%thickness() /
m_four)
1207 assert(.not. space%is_periodic())
1211 r = norm2(mesh%x(:, ip) - pos)
1217 if (space%is_periodic())
then
1227 r2 = sum((mesh%x(:, ip) - pos)**2)*(species%get_z()*aa)**2
1238 vl(ip) = vl(ip) * (species%get_z())**2
Copies a vector x, to a vector y.
scales a vector by a constant
Both the filling of the function, and the retrieval of the values may be done using single- or double...
double log(double __x) __attribute__((__nothrow__
double exp(double __x) __attribute__((__nothrow__
subroutine, public datomic_orbital_get_submesh(species, submesh, ii, ll, mm, ispin, phi, derivative)
This module implements the curvilinear coordinates given in E.L. Briggs, D.J. Sullivan,...
type(debug_t), save, public debug
The Ono-Hirose double-grid technique [T. Ono and K. Hirose, Phys. Rev. Lett. 82, 5016 (1999); Phys....
real(real64) function, public double_grid_margin(this, mesh)
Submesh radius enlargement needed to contain the effective support of a transformed function: the ten...
subroutine, public double_grid_transform(this, sm, nf, spl, ll, mm, rcut, feff, cart_dir, cache)
Evaluate a batch of localized functions f_jf(x) = spl_jf(r) * Y_{ll,mm}(x) (or a purely radial spl_jf...
real(real64), parameter, public m_two
real(real64), parameter, public r_small
real(real64), parameter, public m_zero
real(real64), parameter, public m_four
real(real64), parameter, public m_pi
some mathematical constants
real(real64), parameter, public m_half
real(real64), parameter, public m_one
real(real64), parameter, public m_three
This module implements the index, used for the mesh points.
subroutine, public dio_function_input(filename, namespace, space, mesh, ff, ierr, map)
Reads a mesh function from file filename, and puts it into ff. If the map argument is passed,...
This module defines various routines, operating on mesh functions.
This module defines the meshes, which are used in Octopus.
integer function, public mesh_nearest_point(mesh, pos, dmin, rankmin)
Returns the index of the point which is nearest to a given vector position pos.
pure subroutine, public mesh_r(mesh, ip, rr, origin, coords)
return the distance to the origin for a given grid point
subroutine, public messages_not_implemented(feature, 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)
/* 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 ps_has_density(ps)
real(real64) pure function, public long_range_potential(r, sigma, z_val)
Evaluate the long-range potential at a given distance.
integer, parameter, public root_newton
subroutine, public root_solver_init(rs, namespace, dimensionality, solver_type, maxiter, rel_tolerance, abs_tolerance)
subroutine, public droot_solver_run(rs, func, root, success, startval)
subroutine, public species_get_nlcc_grad_bare(species, space, latt, pos, mesh, grad_rho_core)
Returns the bare analytic gradient of the NLCC core density.
subroutine, public species_get_local(species, namespace, space, latt, pos, mesh, vl)
used when the density is not available, or otherwise the Poisson eqn would be used instead
subroutine func(xin, ff, jacobian)
subroutine, public species_atom_density_np(species, namespace, pos, mesh, spin_channels, rho)
subroutine, public species_get_long_range_density(species, namespace, space, latt, pos, mesh, rho, sphere_inout, nlr_x)
subroutine, public species_atom_density_derivative_np(species, namespace, pos, mesh, spin_channels, drho)
subroutine, public species_get_nlcc(species, space, latt, pos, mesh, rho_core, accumulate, dgrid)
subroutine, public species_get_nlcc_grad(species, space, latt, pos, mesh, rho_core_grad_x)
Returns the (r-R_I)-weighted analytic gradient of the NLCC core density.
subroutine, public species_get_local_sr(species, space, latt, pos, mesh, sphere, vpsl, dgrid)
Accumulate the short-range (localized) part of the local pseudopotential of one atom into vpsl,...
subroutine, public species_atom_density_grad(species, namespace, space, latt, pos, mesh, spin_channels, drho)
subroutine getrho(dim, xin)
subroutine, public species_atom_density(species, namespace, space, latt, pos, mesh, spin_channels, rho)
real(real64) function, public spline_x_threshold(spl, threshold)
Determines the largest value of x for which the spline values are above the threshold.
real(real64) function, public spline_eval(spl, x)
real(real64) pure function, public spline_range_max(this)
real(real64) function, public dsm_integrate(mesh, sm, ff, reduce)
subroutine, public submesh_end(this)
logical function, public submesh_compatible(this, radius, center, dx)
subroutine, public submesh_init(this, space, mesh, latt, center, rc)
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
subroutine, public volume_read_from_block(vol, namespace, block_name)
logical function, public volume_in_volume(space, vol, xx)
subroutine, public volume_end(vol)
subroutine, public volume_init(vol)
subroutine generate_uniform_density()
An abstract type for all electron species.
The following class implements a lattice iterator. It allows one to loop over all cells that are with...
Describes mesh distribution to nodes.
A type storing the information and data about a pseudopotential.
An abstract class for species. Derived classes include jellium, all electron, and pseudopotential spe...
A submesh is a type of mesh, used for the projectors in the pseudopotentials It contains points on a ...