22 use,
intrinsic :: iso_fortran_env, only: real64
42 integer :: n_simplices
44 integer,
allocatable :: simplices(:,:)
72 real(real64),
intent(inout) :: values(2)
73 integer,
intent(inout) :: idx(2)
87 real(real64),
intent(inout) :: values(3)
88 integer,
intent(inout) :: idx(3)
104 real(real64),
intent(inout) :: values(4)
105 integer,
intent(inout) :: idx(4)
121 real(real64),
intent(inout) :: a, b
122 integer,
intent(inout) :: ia, ib
124 real(real64) :: tmp_a
153 function simplex_init(dim, naxis, nshifts, shift, kpoints, equiv, opt)
result(this)
154 integer,
intent(in) :: dim
155 integer,
intent(in) :: naxis(1:dim)
156 integer,
intent(in) :: nshifts
157 real(real64),
intent(in) :: shift(:,:)
158 real(real64),
intent(in) :: kpoints(:,:)
159 integer,
intent(in),
optional :: equiv(:)
160 logical,
intent(in) :: opt
163 real(real64) :: kmin(dim)
164 integer :: ik, npoints
167 integer,
allocatable :: kl123(:,:,:)
169 integer :: rdim, raxis(3)
173 if (nshifts /= 1)
then
174 message(1) =
"The linear tetrahedron method only works for automatic k-point grids with a single shift"
179 safe_allocate_source(kl123(1:naxis(1), 1:naxis(2), 1:naxis(3)), -1)
181 npoints = product(naxis)
182 kmin = minval(kpoints, 2)
185 ix(:) = nint((kpoints(:,ik) - kmin) * naxis + 1)
186 assert(kl123(ix(1), ix(2), ix(3)) == -1)
187 if (
present(equiv))
then
188 kl123(ix(1), ix(2), ix(3)) = equiv(ik)
190 kl123(ix(1), ix(2), ix(3)) = ik
194 rdim = sum(merge(1, 0, naxis > 1))
195 raxis(1:rdim) = pack(naxis, naxis > 1)
197 if (any(raxis(1:rdim) /= naxis(1:rdim)))
then
198 message(1) =
"The periodic dimensions must be consecutive"
207 integer,
parameter :: submesh_segments(1,2) = reshape([ &
208 1, 2 ], shape(submesh_segments), order=[2, 1])
210 integer,
parameter :: b(4,2) = reshape([ &
215 ], shape(b), order=[2, 1])
217 integer :: i, ip1, it, n
218 integer :: corners(2,1), v(2,1), c(1)
219 integer :: this_segment(2), this_corner
221 this%n_points = npoints
222 this%n_simplices = npoints
224 this%sdim = merge(4, 2, opt)
225 safe_allocate(this%simplices(this%n_simplices, this%sdim))
228 ip1 = modulo(i, raxis(1)) + 1
229 corners(:,:) = reshape([ i , ip1 ], shape(corners), order=[2, 1])
231 do it = 1,
size(submesh_segments, 1)
232 n = (it - 1) + 1 * (i - 1) + 1
233 this_segment(:) = submesh_segments(it, :)
234 v(1,:) = corners(this_segment(1), :)
235 v(2,:) = corners(this_segment(2), :)
237 c(:) = b(ik,1) * v(1,:) + b(ik,2) * v(2,:)
238 c(:) = modulo(c(:) - 1, raxis(1:rdim)) + 1
239 this_corner = kl123(c(1), 1, 1)
240 this%simplices(n,ik) = this_corner
247 integer,
parameter :: submesh_triangles(2,3) = reshape([ &
249 1, 4, 3], shape(submesh_triangles), order=[2, 1])
251 integer,
parameter :: b(10,3) = reshape([ &
262 ], shape(b), order=[2, 1])
264 integer :: i, j, ip1, jp1, it, n
265 integer :: corners(4,2), v(3,2), c(2)
266 integer :: this_triangle(3), this_corner
268 this%n_points = npoints
269 this%n_simplices = 2 * npoints
271 this%sdim = merge(10, 3, opt)
272 safe_allocate(this%simplices(this%n_simplices, this%sdim))
276 ip1 = modulo(i, raxis(1)) + 1
277 jp1 = modulo(j, raxis(2)) + 1
278 corners(:,:) = reshape([ &
282 i , jp1 ], shape(corners), order=[2, 1])
284 do it = 1,
size(submesh_triangles, 1)
285 n = (it - 1) + 2 * ((j - 1) + raxis(2) * (i - 1)) + 1
286 this_triangle(:) = submesh_triangles(it, :)
287 v(1,:) = corners(this_triangle(1), :)
288 v(2,:) = corners(this_triangle(2), :)
289 v(3,:) = corners(this_triangle(3), :)
291 c(:) = b(ik,1) * v(1,:) + b(ik,2) * v(2,:) + b(ik,3) * v(3,:)
292 c(:) = modulo(c(:) - 1, raxis(1:rdim)) + 1
293 this_corner = kl123(c(1), c(2), 1)
294 this%simplices(n,ik) = this_corner
302 integer,
parameter :: submesh_tetras(6,4) = reshape([ &
308 2, 3, 4, 6], shape(submesh_tetras), order=[2, 1])
310 integer,
parameter :: b(20,4) = reshape([ &
331 ], shape(b), order=[2, 1])
333 integer :: i, j, k, ip1, jp1, kp1, it, n
334 integer :: corners(8,3), v(4,3), c(3)
335 integer :: this_tetra(4), this_corner
337 this%n_points = npoints
338 this%n_simplices = 6 * npoints
340 this%sdim = merge(20, 4, opt)
341 safe_allocate(this%simplices(this%n_simplices, this%sdim))
346 ip1 = modulo(i, raxis(1)) + 1
347 jp1 = modulo(j, raxis(2)) + 1
348 kp1 = modulo(k, raxis(3)) + 1
349 corners(:,:) = reshape([ &
357 ip1 , jp1 , kp1 ], shape(corners), order=[2, 1])
359 do it = 1,
size(submesh_tetras, 1)
360 n = (it - 1) + 6 * ((k - 1) + raxis(3) * ((j - 1) + raxis(2) * (i - 1))) + 1
361 this_tetra(:) = submesh_tetras(it, :)
362 v(1,:) = corners(this_tetra(1), :)
363 v(2,:) = corners(this_tetra(2), :)
364 v(3,:) = corners(this_tetra(3), :)
365 v(4,:) = corners(this_tetra(4), :)
367 c(:) = b(ik,1) * v(1,:) + b(ik,2) * v(2,:) + b(ik,3) * v(3,:) + b(ik,4) * v(4,:)
368 c(:) = modulo(c(:) - 1, raxis(1:rdim)) + 1
369 this_corner = kl123(c(1), c(2), c(3))
370 this%simplices(n,ik) = this_corner
379 safe_deallocate_a(kl123)
390 safe_deallocate_a(this%simplices)
402 integer,
intent(in) :: rdim
403 real(real64),
intent(in) :: esimplex(:)
404 real(real64),
intent(in) :: ef
405 real(real64),
intent(out) :: weights(:)
406 real(real64),
intent(out) :: dos(:)
408 real(real64) :: weights_array(size(weights), 1), dos_array(size(dos), 1)
413 weights(:) = weights_array(:, 1)
414 dos(:) = dos_array(:, 1)
425 integer,
intent(in) :: rdim
426 real(real64),
intent(in) :: esimplex(:)
427 real(real64),
intent(in) :: efs(:)
428 real(real64),
intent(out) :: weights(:,:)
429 real(real64),
intent(out) :: dos(:,:)
433 assert(
size(weights, 1) == rdim + 1)
434 assert(
size(dos, 1) == rdim + 1)
435 assert(
size(weights, 2) ==
size(efs))
436 assert(
size(dos, 2) ==
size(efs))
457 integer,
intent(in) :: rdim
458 real(real64),
intent(in) :: esimplex(:)
459 real(real64),
intent(in) :: ef
460 real(real64),
intent(out) :: dos(:)
462 real(real64) :: dos_array(size(dos), 1)
467 dos(:) = dos_array(:, 1)
477 integer,
intent(in) :: rdim
478 real(real64),
intent(in) :: esimplex(:)
479 real(real64),
intent(in) :: efs(:)
480 real(real64),
intent(out) :: dos(:,:)
484 assert(
size(dos, 1) == rdim + 1)
485 assert(
size(dos, 2) ==
size(efs))
506 real(real64),
intent(in) :: esegment(:)
507 real(real64),
intent(in) :: eFs(:)
508 real(real64),
intent(out) :: weights(:,:)
509 real(real64),
intent(out) :: dos(:,:)
511 real(real64) :: E(2), E1, E2, eF
512 real(real64) :: w(2), d(2), sumE, bloechl_corr(2)
513 integer :: idx(2), ie, ne
514 logical :: apply_bloechl
516 real(real64),
parameter :: vT_vG = 1.0_real64
517 real(real64),
parameter :: vT_2vG = vt_vg / 2.0_real64
519 real(real64),
parameter :: P(2,4) = 1.0_real64 / 60.0_real64 * reshape([ &
521 1 , 64 , -2 , -3 ], shape(p), order=[2, 1])
525 select case (
size(esegment))
532 do i = 1,
size(esegment)
533 e(:) = e(:) + p(:,i) * esegment(i)
545 apply_bloechl = (
size(esegment) == 2)
546 if (apply_bloechl)
then
548 bloechl_corr(:) = (sume - 2.0_real64 * e) / 12.0_real64
557 elseif (e2 < ef)
then
560 elseif (e1 < ef .and. ef <= e2)
then
562 real(real64) :: E21, C
564 c = vt_2vg * (ef - e1) / e21
567 2.0_real64 - (ef - e1) / e21, &
570 d(:) = vt_vg / e21 * [ &
571 m_one - (ef - e1) / e21, &
580 if (apply_bloechl) weights(idx, ie) = weights(idx, ie) + sum(d) * bloechl_corr
590 real(real64),
intent(in) :: esegment(:)
591 real(real64),
intent(in) :: eFs(:)
592 real(real64),
intent(out) :: dos(:,:)
594 real(real64) :: E(2), E1, E2, eF
596 integer :: idx(2), ie, ne
598 real(real64),
parameter :: vT_vG = 1.0_real64
600 real(real64),
parameter :: P(2,4) = 1.0_real64 / 60.0_real64 * reshape([ &
602 1 , 64 , -2 , -3 ], shape(p), order=[2, 1])
606 select case (
size(esegment))
613 do i = 1,
size(esegment)
614 e(:) = e(:) + p(:,i) * esegment(i)
630 if (ef <= e1 .or. e2 < ef)
then
632 elseif (e1 < ef .and. ef <= e2)
then
637 d(:) = vt_vg / e21 * [ &
638 m_one - (ef - e1) / e21, &
662 real(real64),
intent(in) :: etriangle(:)
663 real(real64),
intent(in) :: eFs(:)
664 real(real64),
intent(out) :: weights(:,:)
665 real(real64),
intent(out) :: dos(:,:)
667 real(real64) :: E(3), E1, E2, E3, eF
668 real(real64) :: w(3), d(3), sumE, bloechl_corr(3)
669 integer :: idx(3), ie, ne
670 logical :: apply_bloechl
672 real(real64),
parameter :: vT_vG = 1.0_real64 / 2.0_real64
673 real(real64),
parameter :: vT_3vG = vt_vg / 3.0_real64
675 real(real64),
parameter :: P(3,10) = 1.0_real64 / 360.0_real64 * reshape([ &
676 402 , 0 , 6 , -13 , 5 , -17 , -13 , -11 , 7 , -6 , &
677 6 , 396 , 6 , -9 , -15 , 3 , 3 , -15 , -9 , -6 , &
678 6 , 0 , 402 , 7 , -11 , -13 , -17 , 5 , -13 , -6 &
679 ], shape(p), order=[2, 1])
683 select case (
size(etriangle))
690 do i = 1,
size(etriangle)
691 e(:) = e(:) + p(:,i) * etriangle(i)
704 apply_bloechl = (
size(etriangle) == 3)
705 if (apply_bloechl)
then
707 bloechl_corr(:) = (sume - 3.0_real64 * e) / 24.0_real64
716 elseif (e3 < ef)
then
719 elseif (e1 < ef .and. ef <= e2)
then
721 real(real64) :: E21, E31, C
724 c = vt_3vg * (ef - e1) ** 2 / (e21 * e31)
727 3.0_real64 - (ef - e1) * (m_one / e21 + m_one / e31), &
731 d(:) = vt_vg * (ef - e1) / (e21 * e31) * [&
732 2.0_real64 - (ef - e1) * (m_one / e31 + m_one / e21), &
736 elseif (e2 < ef .and. ef <= e3)
then
738 real(real64) :: E23, E31, C1, C2
742 c2 = vt_3vg * (ef - e3) ** 2 / (e23 * e31)
745 c1 - c2 * (ef - e3) / e31, &
746 c1 + c2 * (ef - e3) / e23, &
747 c1 + c2 * (3.0_real64 - (ef - e3) * (m_one / e23 - m_one / e31))]
749 d(:) = vt_vg * (ef - e3) / (e23 * e31) * [ &
752 2.0_real64 - (ef - e3) * (m_one / e23 - m_one / e31)]
760 if (apply_bloechl) weights(idx, ie) = weights(idx, ie) + sum(d) * bloechl_corr
773 real(real64),
intent(in) :: etriangle(:)
774 real(real64),
intent(in) :: eFs(:)
775 real(real64),
intent(out) :: dos(:,:)
777 real(real64) :: E(3), E1, E2, E3, eF
779 integer :: idx(3), ie, ne
781 real(real64),
parameter :: vT_vG = 1.0_real64 / 2.0_real64
783 real(real64),
parameter :: P(3,10) = 1.0_real64 / 360.0_real64 * reshape([ &
784 402 , 0 , 6 , -13 , 5 , -17 , -13 , -11 , 7 , -6 , &
785 6 , 396 , 6 , -9 , -15 , 3 , 3 , -15 , -9 , -6 , &
786 6 , 0 , 402 , 7 , -11 , -13 , -17 , 5 , -13 , -6 &
787 ], shape(p), order=[2, 1])
791 select case (
size(etriangle))
798 do i = 1,
size(etriangle)
799 e(:) = e(:) + p(:,i) * etriangle(i)
816 if (ef <= e1 .or. e3 < ef)
then
818 elseif (e1 < ef .and. ef <= e2)
then
820 real(real64) :: E21, E31
824 d(:) = vt_vg * (ef - e1) / (e21 * e31) * [&
825 (2.0_real64 - (ef - e1) * (m_one / e31 + m_one / e21)), &
829 elseif (e2 < ef .and. ef <= e3)
then
831 real(real64) :: E23, E31
835 d(:) = vt_vg * (ef - e3) / (e23 * e31) * [ &
838 2.0_real64 - (ef - e3) * (m_one / e23 - m_one / e31)]
864 real(real64),
intent(in) :: etetra(:)
865 real(real64),
intent(in) :: eFs(:)
866 real(real64),
intent(out) :: weights(:,:)
867 real(real64),
intent(out) :: dos(:,:)
869 real(real64) :: E(4), E1, E2, E3, E4, eF
870 real(real64) :: w(4), d(4), sumE, bloechl_corr(4)
871 integer :: idx(4), ie, ne
872 logical :: apply_bloechl
874 real(real64),
parameter :: vT_vG = 1.0_real64 / 6.0_real64
875 real(real64),
parameter :: vT_4vG = vt_vg / 4.0_real64
877 real(real64),
parameter :: P(4,20) = 1.0_real64 / 1260.0_real64 * reshape([ &
878 1440, 0 , 30 , 0 , -38 , 7 , 17 , -28 , -56 , 9 , -46 , 9 , -38 , -28 , 17 , 7 , -18 , -18 , 12 , -18 , &
879 0 , 1440, 0 , 30 , -28 , -38 , 7 , 17 , 9 , -56 , 9 , -46 , 7 , -38 , -28 , 17 , -18 , -18 , -18 , 12 , &
880 30 , 0 , 1440, 0 , 17 , -28 , -38 , 7 , -46 , 9 , -56 , 9 , 17 , 7 , -38 , -28 , 12 , -18 , -18 , -18 , &
881 0 , 30 , 0 , 1440, 7 , 17 , -28 , -38 , 9 , -46 , 9 , -56 , -28 , 17 , 7 , -38 , -18 , 12 , -18 , -18 &
882 ], shape(p), order=[2, 1])
886 select case (
size(etetra))
893 do i = 1,
size(etetra)
894 e(:) = e(:) + p(:,i) * etetra(i)
908 apply_bloechl = (
size(etetra) == 4)
909 if (apply_bloechl)
then
911 bloechl_corr(:) = (sume - 4.0_real64 * e) / 40.0_real64
920 elseif (e4 < ef)
then
923 elseif (e1 < ef .and. ef <= e2)
then
925 real(real64) :: E21, E31, E41, C
929 c = vt_4vg * (ef - e1) ** 3 / (e21 * e31 * e41)
932 4.0_real64 - (ef - e1) * (m_one / e21 + m_one / e31 + m_one / e41), &
938 real(real64) :: f12, f13, f14, f21, f31, f41, g
939 f21 = (ef - e1) / (e2 - e1)
940 f31 = (ef - e1) / (e3 - e1)
941 f41 = (ef - e1) / (e4 - e1)
945 g = f31 * f41 / (e2 - e1)
946 d(:) = vt_vg * g * [&
952 elseif (e2 < ef .and. ef <= e3)
then
954 real(real64) :: E21, E31, E32, E41, E42, C1, C2, C3
960 c1 = vt_4vg * (ef - e1) ** 2 / (e41 * e31)
961 c2 = vt_4vg * (ef - e1) * (ef - e2) * (e3 - ef) / (e41 * e32 * e31)
962 c3 = vt_4vg * (ef - e2) ** 2 * (e4 - ef) / (e42 * e32 * e41)
965 c1 + (c1 + c2) * (e3 - ef) / e31 + (c1 + c2 + c3) * (e4 - ef) / e41, &
966 c1 + c2 + c3 + (c2 + c3) * (e3 - ef) / e32 + c3 * (e4 - ef) / e42, &
967 (c1 + c2) * (ef - e1) / e31 + (c2 + c3) * (ef - e2) / e32, &
968 (c1 + c2 + c3) * (ef - e1) / e41 + c3 * (ef - e2) / e42]
971 real(real64) :: f13, f14, f23, f24, f31, f32, f41, f42, g, delta
973 f31 = (ef - e1) / (e3 - e1)
974 f41 = (ef - e1) / (e4 - e1)
975 f32 = (ef - e2) / (e3 - e2)
976 f42 = (ef - e2) / (e4 - e2)
981 g = 3.0_real64 / delta * (f23 * f31 + f32 * f24)
983 g * f14 / 3.0_real64 + f13 * f31 * f23 / delta, &
984 g * f23 / 3.0_real64 + f24 * f24 * f32 / delta, &
985 g * f32 / 3.0_real64 + f31 * f31 * f23 / delta, &
986 g * f41 / 3.0_real64 + f42 * f24 * f32 / delta]
988 elseif (e3 < ef .and. ef <= e4)
then
990 real(real64) :: E41, E42, E43, C
994 c = vt_4vg * (e4 - ef) ** 3 / (e41 * e42 * e43)
996 w(:) = vt_4vg - c * [ &
1000 4.0_real64 - (e4 - ef) * (m_one / e41 + m_one / e42 + m_one / e43)]
1003 real(real64) :: f14, f24, f34, f41, f42, f43, g
1004 f14 = (ef - e4) / (e1 - e4)
1005 f24 = (ef - e4) / (e2 - e4)
1006 f34 = (ef - e4) / (e3 - e4)
1010 g = f14 * f24 / (e4 - e3)
1011 d(:) = vt_vg * g *[ &
1022 weights(idx, ie) = w
1023 if (apply_bloechl) weights(idx, ie) = weights(idx, ie) + sum(d) * bloechl_corr
1039 real(real64),
intent(in) :: etetra(:)
1040 real(real64),
intent(in) :: eFs(:)
1041 real(real64),
intent(out) :: dos(:,:)
1043 real(real64) :: E(4), E1, E2, E3, E4, eF
1044 real(real64) :: d(4)
1045 integer :: idx(4), ie, ne
1047 real(real64),
parameter :: vT_vG = 1.0_real64 / 6.0_real64
1049 real(real64),
parameter :: P(4,20) = 1.0_real64 / 1260.0_real64 * reshape([ &
1050 1440, 0 , 30 , 0 , -38 , 7 , 17 , -28 , -56 , 9 , -46 , 9 , -38 , -28 , 17 , 7 , -18 , -18 , 12 , -18 , &
1051 0 , 1440, 0 , 30 , -28 , -38 , 7 , 17 , 9 , -56 , 9 , -46 , 7 , -38 , -28 , 17 , -18 , -18 , -18 , 12 , &
1052 30 , 0 , 1440, 0 , 17 , -28 , -38 , 7 , -46 , 9 , -56 , 9 , 17 , 7 , -38 , -28 , 12 , -18 , -18 , -18 , &
1053 0 , 30 , 0 , 1440, 7 , 17 , -28 , -38 , 9 , -46 , 9 , -56 , -28 , 17 , 7 , -38 , -18 , 12 , -18 , -18 &
1054 ], shape(p), order=[2, 1])
1058 select case (
size(etetra))
1065 do i = 1,
size(etetra)
1066 e(:) = e(:) + p(:,i) * etetra(i)
1084 if (e1 >= ef .or. e4 < ef)
then
1086 elseif (e1 < ef .and. ef <= e2)
then
1088 real(real64) :: f12, f13, f14, f21, f31, f41, g
1089 f21 = (ef - e1) / (e2 - e1)
1090 f31 = (ef - e1) / (e3 - e1)
1091 f41 = (ef - e1) / (e4 - e1)
1095 g = f31 * f41 / (e2 - e1)
1096 d(:) = vt_vg * g * [&
1102 elseif (e2 < ef .and. ef <= e3)
then
1104 real(real64) :: f13, f14, f23, f24, f31, f32, f41, f42, g, delta
1106 f31 = (ef - e1) / (e3 - e1)
1107 f41 = (ef - e1) / (e4 - e1)
1108 f32 = (ef - e2) / (e3 - e2)
1109 f42 = (ef - e2) / (e4 - e2)
1114 g = 3.0_real64 / delta * (f23 * f31 + f32 * f24)
1116 g * f14 / 3.0_real64 + f13 * f31 * f23 / delta, &
1117 g * f23 / 3.0_real64 + f24 * f24 * f32 / delta, &
1118 g * f32 / 3.0_real64 + f31 * f31 * f23 / delta, &
1119 g * f41 / 3.0_real64 + f42 * f24 * f32 / delta]
1121 elseif (e3 < ef .and. ef <= e4)
then
1123 real(real64) :: f14, f24, f34, f41, f42, f43, g
1124 f14 = (ef - e4) / (e1 - e4)
1125 f24 = (ef - e4) / (e2 - e4)
1126 f34 = (ef - e4) / (e3 - e4)
1130 g = f14 * f24 / (e4 - e3)
1131 d(:) = vt_vg * g *[ &
type(debug_t), save, public debug
subroutine, public debug_pop_sub(sub_name)
Pop a routine from the debug trace.
subroutine, public debug_push_sub(sub_name)
Push a routine to the debug trace.
real(real64), parameter, public m_zero
integer(int64), public global_sizeof
logical pure function, public not_in_openmp()
character(len=100), public global_alloc_errmsg
integer, public global_alloc_err
real(real64), parameter, public m_one
subroutine, public alloc_error(size, file, line)
subroutine, public dealloc_error(size, file, line)
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
type(profile_vars_t), target, save, public prof_vars
integer, parameter, public profiling_memory
subroutine, public profiling_memory_deallocate(var, file, line, size)
subroutine, public profiling_memory_allocate(var, file, line, size_)
subroutine simplex_dos_2d(etriangle, eFs, dos)
Get only the DOS contribution of a single triangle.
pure subroutine simplex_compare_swap(a, b, ia, ib)
Swap two value-index pairs if they are out of ascending order.
subroutine simplex_weights_3d(etetra, eFs, weights, dos)
Get the weights and DOS contribution of a single tetrahedron.
pure subroutine simplex_sort_3(values, idx)
Sort three real values in ascending order while permuting indices.
subroutine simplex_dos_single(rdim, esimplex, eF, dos)
Get only the DOS contribution of a single simplex.
subroutine simplex_weights_1d(esegment, eFs, weights, dos)
Get the weights and DOS contribution of a single segment.
subroutine simplex_weights_2d(etriangle, eFs, weights, dos)
Get the weights and DOS contribution of a single tetrahedron.
type(simplex_t) function, pointer, public simplex_init(dim, naxis, nshifts, shift, kpoints, equiv, opt)
Constructor for linear simplex methods.
subroutine, public simplex_end(this)
Destructor for linear simplex methods.
subroutine simplex_weights_array(rdim, esimplex, eFs, weights, dos)
Get the weights and DOS contribution of a single simplex for multiple reference energies.
subroutine simplex_dos_3d(etetra, eFs, dos)
Get only the DOS contribution of a single tetrahedron.
pure subroutine simplex_sort_4(values, idx)
Sort four real values in ascending order while permuting indices.
pure subroutine simplex_sort_2(values, idx)
Sort two real values in ascending order while permuting indices.
subroutine simplex_dos_array(rdim, esimplex, eFs, dos)
Get only the DOS contribution of a single simplex for multiple reference energies.
subroutine simplex_dos_1d(esegment, eFs, dos)
Get only the DOS contribution of a single segment.
subroutine simplex_weights_single(rdim, esimplex, eF, weights, dos)
Get the weights and DOS contribution of a single simplex.