22 use,
intrinsic :: iso_fortran_env, only: real64
45 integer :: n_simplices
47 integer,
allocatable :: simplices(:,:)
75 real(real64),
intent(inout) :: values(2)
76 integer,
intent(inout) :: idx(2)
90 real(real64),
intent(inout) :: values(3)
91 integer,
intent(inout) :: idx(3)
107 real(real64),
intent(inout) :: values(4)
108 integer,
intent(inout) :: idx(4)
124 real(real64),
intent(inout) :: a, b
125 integer,
intent(inout) :: ia, ib
127 real(real64) :: tmp_a
156 function simplex_init(dim, naxis, nshifts, shift, kpoints, equiv, opt)
result(this)
157 integer,
intent(in) :: dim
158 integer,
intent(in) :: naxis(1:dim)
159 integer,
intent(in) :: nshifts
160 real(real64),
intent(in) :: shift(:,:)
161 real(real64),
intent(in) :: kpoints(:,:)
162 integer,
intent(in),
optional :: equiv(:)
163 logical,
intent(in) :: opt
166 real(real64) :: kmin(dim)
167 integer :: ik, npoints
170 integer,
allocatable :: kl123(:,:,:)
172 integer :: rdim, raxis(3)
176 if (nshifts /= 1)
then
177 message(1) =
"The linear tetrahedron method only works for automatic k-point grids with a single shift"
182 safe_allocate_source(kl123(1:naxis(1), 1:naxis(2), 1:naxis(3)), -1)
184 npoints = product(naxis)
185 kmin = minval(kpoints, 2)
188 ix(:) = nint((kpoints(:,ik) - kmin) * naxis + 1)
189 assert(kl123(ix(1), ix(2), ix(3)) == -1)
190 if (
present(equiv))
then
191 kl123(ix(1), ix(2), ix(3)) = equiv(ik)
193 kl123(ix(1), ix(2), ix(3)) = ik
197 rdim = sum(merge(1, 0, naxis > 1))
198 raxis(1:rdim) = pack(naxis, naxis > 1)
200 if (any(raxis(1:rdim) /= naxis(1:rdim)))
then
201 message(1) =
"The periodic dimensions must be consecutive"
210 integer,
parameter :: submesh_segments(1,2) = reshape([ &
211 1, 2 ], shape(submesh_segments), order=[2, 1])
213 integer,
parameter :: b(4,2) = reshape([ &
218 ], shape(b), order=[2, 1])
220 integer :: i, ip1, it, n
221 integer :: corners(2,1), v(2,1), c(1)
222 integer :: this_segment(2), this_corner
224 this%n_points = npoints
225 this%n_simplices = npoints
227 this%sdim = merge(4, 2, opt)
228 safe_allocate(this%simplices(this%n_simplices, this%sdim))
231 ip1 = modulo(i, raxis(1)) + 1
232 corners(:,:) = reshape([ i , ip1 ], shape(corners), order=[2, 1])
234 do it = 1,
size(submesh_segments, 1)
235 n = (it - 1) + 1 * (i - 1) + 1
236 this_segment(:) = submesh_segments(it, :)
237 v(1,:) = corners(this_segment(1), :)
238 v(2,:) = corners(this_segment(2), :)
240 c(:) = b(ik,1) * v(1,:) + b(ik,2) * v(2,:)
241 c(:) = modulo(c(:) - 1, raxis(1:rdim)) + 1
242 this_corner = kl123(c(1), 1, 1)
243 this%simplices(n,ik) = this_corner
250 integer,
parameter :: submesh_triangles(2,3) = reshape([ &
252 1, 4, 3], shape(submesh_triangles), order=[2, 1])
254 integer,
parameter :: b(10,3) = reshape([ &
265 ], shape(b), order=[2, 1])
267 integer :: i, j, ip1, jp1, it, n
268 integer :: corners(4,2), v(3,2), c(2)
269 integer :: this_triangle(3), this_corner
271 this%n_points = npoints
272 this%n_simplices = 2 * npoints
274 this%sdim = merge(10, 3, opt)
275 safe_allocate(this%simplices(this%n_simplices, this%sdim))
279 ip1 = modulo(i, raxis(1)) + 1
280 jp1 = modulo(j, raxis(2)) + 1
281 corners(:,:) = reshape([ &
285 i , jp1 ], shape(corners), order=[2, 1])
287 do it = 1,
size(submesh_triangles, 1)
288 n = (it - 1) + 2 * ((j - 1) + raxis(2) * (i - 1)) + 1
289 this_triangle(:) = submesh_triangles(it, :)
290 v(1,:) = corners(this_triangle(1), :)
291 v(2,:) = corners(this_triangle(2), :)
292 v(3,:) = corners(this_triangle(3), :)
294 c(:) = b(ik,1) * v(1,:) + b(ik,2) * v(2,:) + b(ik,3) * v(3,:)
295 c(:) = modulo(c(:) - 1, raxis(1:rdim)) + 1
296 this_corner = kl123(c(1), c(2), 1)
297 this%simplices(n,ik) = this_corner
305 integer,
parameter :: submesh_tetras(6,4) = reshape([ &
311 2, 3, 4, 6], shape(submesh_tetras), order=[2, 1])
313 integer,
parameter :: b(20,4) = reshape([ &
334 ], shape(b), order=[2, 1])
336 integer :: i, j, k, ip1, jp1, kp1, it, n
337 integer :: corners(8,3), v(4,3), c(3)
338 integer :: this_tetra(4), this_corner
340 this%n_points = npoints
341 this%n_simplices = 6 * npoints
343 this%sdim = merge(20, 4, opt)
344 safe_allocate(this%simplices(this%n_simplices, this%sdim))
349 ip1 = modulo(i, raxis(1)) + 1
350 jp1 = modulo(j, raxis(2)) + 1
351 kp1 = modulo(k, raxis(3)) + 1
352 corners(:,:) = reshape([ &
360 ip1 , jp1 , kp1 ], shape(corners), order=[2, 1])
362 do it = 1,
size(submesh_tetras, 1)
363 n = (it - 1) + 6 * ((k - 1) + raxis(3) * ((j - 1) + raxis(2) * (i - 1))) + 1
364 this_tetra(:) = submesh_tetras(it, :)
365 v(1,:) = corners(this_tetra(1), :)
366 v(2,:) = corners(this_tetra(2), :)
367 v(3,:) = corners(this_tetra(3), :)
368 v(4,:) = corners(this_tetra(4), :)
370 c(:) = b(ik,1) * v(1,:) + b(ik,2) * v(2,:) + b(ik,3) * v(3,:) + b(ik,4) * v(4,:)
371 c(:) = modulo(c(:) - 1, raxis(1:rdim)) + 1
372 this_corner = kl123(c(1), c(2), c(3))
373 this%simplices(n,ik) = this_corner
382 safe_deallocate_a(kl123)
393 safe_deallocate_a(this%simplices)
405 integer,
intent(in) :: rdim
406 real(real64),
intent(in) :: esimplex(:)
407 real(real64),
intent(in) :: ef
408 real(real64),
intent(out) :: weights(:)
409 real(real64),
intent(out) :: dos(:)
411 real(real64) :: weights_array(size(weights), 1), dos_array(size(dos), 1)
416 weights(:) = weights_array(:, 1)
417 dos(:) = dos_array(:, 1)
428 integer,
intent(in) :: rdim
429 real(real64),
intent(in) :: esimplex(:)
430 real(real64),
intent(in) :: efs(:)
431 real(real64),
intent(out) :: weights(:,:)
432 real(real64),
intent(out) :: dos(:,:)
436 assert(
size(weights, 1) == rdim + 1)
437 assert(
size(dos, 1) == rdim + 1)
438 assert(
size(weights, 2) ==
size(efs))
439 assert(
size(dos, 2) ==
size(efs))
460 integer,
intent(in) :: rdim
461 real(real64),
intent(in) :: esimplex(:)
462 real(real64),
intent(in) :: ef
463 real(real64),
intent(out) :: dos(:)
465 real(real64) :: dos_array(size(dos), 1)
470 dos(:) = dos_array(:, 1)
480 integer,
intent(in) :: rdim
481 real(real64),
intent(in) :: esimplex(:)
482 real(real64),
intent(in) :: efs(:)
483 real(real64),
intent(out) :: dos(:,:)
487 assert(
size(dos, 1) == rdim + 1)
488 assert(
size(dos, 2) ==
size(efs))
509 real(real64),
intent(in) :: esegment(:)
510 real(real64),
intent(in) :: eFs(:)
511 real(real64),
intent(out) :: weights(:,:)
512 real(real64),
intent(out) :: dos(:,:)
514 real(real64) :: E(2), E1, E2, eF
515 real(real64) :: w(2), d(2), sumE, bloechl_corr(2)
516 integer :: idx(2), ie, ne
517 logical :: apply_bloechl
519 real(real64),
parameter :: vT_vG = 1.0_real64
520 real(real64),
parameter :: vT_2vG = vt_vg / 2.0_real64
522 real(real64),
parameter :: P(2,4) = 1.0_real64 / 60.0_real64 * reshape([ &
524 1 , 64 , -2 , -3 ], shape(p), order=[2, 1])
528 select case (
size(esegment))
535 do i = 1,
size(esegment)
536 e(:) = e(:) + p(:,i) * esegment(i)
548 apply_bloechl = (
size(esegment) == 2)
549 if (apply_bloechl)
then
551 bloechl_corr(:) = (sume - 2.0_real64 * e) / 12.0_real64
560 elseif (e2 < ef)
then
563 elseif (e1 < ef .and. ef <= e2)
then
565 real(real64) :: E21, C
567 c = vt_2vg * (ef - e1) / e21
570 2.0_real64 - (ef - e1) / e21, &
573 d(:) = vt_vg / e21 * [ &
574 m_one - (ef - e1) / e21, &
583 if (apply_bloechl) weights(idx, ie) = weights(idx, ie) + sum(d) * bloechl_corr
593 real(real64),
intent(in) :: esegment(:)
594 real(real64),
intent(in) :: eFs(:)
595 real(real64),
intent(out) :: dos(:,:)
597 real(real64) :: E(2), E1, E2, eF
599 integer :: idx(2), ie, ne
601 real(real64),
parameter :: vT_vG = 1.0_real64
603 real(real64),
parameter :: P(2,4) = 1.0_real64 / 60.0_real64 * reshape([ &
605 1 , 64 , -2 , -3 ], shape(p), order=[2, 1])
609 select case (
size(esegment))
616 do i = 1,
size(esegment)
617 e(:) = e(:) + p(:,i) * esegment(i)
633 if (ef <= e1 .or. e2 < ef)
then
635 elseif (e1 < ef .and. ef <= e2)
then
640 d(:) = vt_vg / e21 * [ &
641 m_one - (ef - e1) / e21, &
665 real(real64),
intent(in) :: etriangle(:)
666 real(real64),
intent(in) :: eFs(:)
667 real(real64),
intent(out) :: weights(:,:)
668 real(real64),
intent(out) :: dos(:,:)
670 real(real64) :: E(3), E1, E2, E3, eF
671 real(real64) :: w(3), d(3), sumE, bloechl_corr(3)
672 integer :: idx(3), ie, ne
673 logical :: apply_bloechl
675 real(real64),
parameter :: vT_vG = 1.0_real64 / 2.0_real64
676 real(real64),
parameter :: vT_3vG = vt_vg / 3.0_real64
678 real(real64),
parameter :: P(3,10) = 1.0_real64 / 360.0_real64 * reshape([ &
679 402 , 0 , 6 , -13 , 5 , -17 , -13 , -11 , 7 , -6 , &
680 6 , 396 , 6 , -9 , -15 , 3 , 3 , -15 , -9 , -6 , &
681 6 , 0 , 402 , 7 , -11 , -13 , -17 , 5 , -13 , -6 &
682 ], shape(p), order=[2, 1])
686 select case (
size(etriangle))
693 do i = 1,
size(etriangle)
694 e(:) = e(:) + p(:,i) * etriangle(i)
707 apply_bloechl = (
size(etriangle) == 3)
708 if (apply_bloechl)
then
710 bloechl_corr(:) = (sume - 3.0_real64 * e) / 24.0_real64
719 elseif (e3 < ef)
then
722 elseif (e1 < ef .and. ef <= e2)
then
724 real(real64) :: E21, E31, C
727 c = vt_3vg * (ef - e1) ** 2 / (e21 * e31)
730 3.0_real64 - (ef - e1) * (m_one / e21 + m_one / e31), &
734 d(:) = vt_vg * (ef - e1) / (e21 * e31) * [&
735 2.0_real64 - (ef - e1) * (m_one / e31 + m_one / e21), &
739 elseif (e2 < ef .and. ef <= e3)
then
741 real(real64) :: E23, E31, C1, C2
745 c2 = vt_3vg * (ef - e3) ** 2 / (e23 * e31)
748 c1 - c2 * (ef - e3) / e31, &
749 c1 + c2 * (ef - e3) / e23, &
750 c1 + c2 * (3.0_real64 - (ef - e3) * (m_one / e23 - m_one / e31))]
752 d(:) = vt_vg * (ef - e3) / (e23 * e31) * [ &
755 2.0_real64 - (ef - e3) * (m_one / e23 - m_one / e31)]
763 if (apply_bloechl) weights(idx, ie) = weights(idx, ie) + sum(d) * bloechl_corr
776 real(real64),
intent(in) :: etriangle(:)
777 real(real64),
intent(in) :: eFs(:)
778 real(real64),
intent(out) :: dos(:,:)
780 real(real64) :: E(3), E1, E2, E3, eF
782 integer :: idx(3), ie, ne
784 real(real64),
parameter :: vT_vG = 1.0_real64 / 2.0_real64
786 real(real64),
parameter :: P(3,10) = 1.0_real64 / 360.0_real64 * reshape([ &
787 402 , 0 , 6 , -13 , 5 , -17 , -13 , -11 , 7 , -6 , &
788 6 , 396 , 6 , -9 , -15 , 3 , 3 , -15 , -9 , -6 , &
789 6 , 0 , 402 , 7 , -11 , -13 , -17 , 5 , -13 , -6 &
790 ], shape(p), order=[2, 1])
794 select case (
size(etriangle))
801 do i = 1,
size(etriangle)
802 e(:) = e(:) + p(:,i) * etriangle(i)
819 if (ef <= e1 .or. e3 < ef)
then
821 elseif (e1 < ef .and. ef <= e2)
then
823 real(real64) :: E21, E31
827 d(:) = vt_vg * (ef - e1) / (e21 * e31) * [&
828 (2.0_real64 - (ef - e1) * (m_one / e31 + m_one / e21)), &
832 elseif (e2 < ef .and. ef <= e3)
then
834 real(real64) :: E23, E31
838 d(:) = vt_vg * (ef - e3) / (e23 * e31) * [ &
841 2.0_real64 - (ef - e3) * (m_one / e23 - m_one / e31)]
867 real(real64),
intent(in) :: etetra(:)
868 real(real64),
intent(in) :: eFs(:)
869 real(real64),
intent(out) :: weights(:,:)
870 real(real64),
intent(out) :: dos(:,:)
872 real(real64) :: E(4), E1, E2, E3, E4, eF
873 real(real64) :: w(4), d(4), sumE, bloechl_corr(4)
874 integer :: idx(4), ie, ne
875 logical :: apply_bloechl
877 real(real64),
parameter :: vT_vG = 1.0_real64 / 6.0_real64
878 real(real64),
parameter :: vT_4vG = vt_vg / 4.0_real64
880 real(real64),
parameter :: P(4,20) = 1.0_real64 / 1260.0_real64 * reshape([ &
881 1440, 0 , 30 , 0 , -38 , 7 , 17 , -28 , -56 , 9 , -46 , 9 , -38 , -28 , 17 , 7 , -18 , -18 , 12 , -18 , &
882 0 , 1440, 0 , 30 , -28 , -38 , 7 , 17 , 9 , -56 , 9 , -46 , 7 , -38 , -28 , 17 , -18 , -18 , -18 , 12 , &
883 30 , 0 , 1440, 0 , 17 , -28 , -38 , 7 , -46 , 9 , -56 , 9 , 17 , 7 , -38 , -28 , 12 , -18 , -18 , -18 , &
884 0 , 30 , 0 , 1440, 7 , 17 , -28 , -38 , 9 , -46 , 9 , -56 , -28 , 17 , 7 , -38 , -18 , 12 , -18 , -18 &
885 ], shape(p), order=[2, 1])
889 select case (
size(etetra))
896 do i = 1,
size(etetra)
897 e(:) = e(:) + p(:,i) * etetra(i)
911 apply_bloechl = (
size(etetra) == 4)
912 if (apply_bloechl)
then
914 bloechl_corr(:) = (sume - 4.0_real64 * e) / 40.0_real64
923 elseif (e4 < ef)
then
926 elseif (e1 < ef .and. ef <= e2)
then
928 real(real64) :: E21, E31, E41, C
932 c = vt_4vg * (ef - e1) ** 3 / (e21 * e31 * e41)
935 4.0_real64 - (ef - e1) * (m_one / e21 + m_one / e31 + m_one / e41), &
941 real(real64) :: f12, f13, f14, f21, f31, f41, g
942 f21 = (ef - e1) / (e2 - e1)
943 f31 = (ef - e1) / (e3 - e1)
944 f41 = (ef - e1) / (e4 - e1)
948 g = f31 * f41 / (e2 - e1)
949 d(:) = vt_vg * g * [&
955 elseif (e2 < ef .and. ef <= e3)
then
957 real(real64) :: E21, E31, E32, E41, E42, C1, C2, C3
963 c1 = vt_4vg * (ef - e1) ** 2 / (e41 * e31)
964 c2 = vt_4vg * (ef - e1) * (ef - e2) * (e3 - ef) / (e41 * e32 * e31)
965 c3 = vt_4vg * (ef - e2) ** 2 * (e4 - ef) / (e42 * e32 * e41)
968 c1 + (c1 + c2) * (e3 - ef) / e31 + (c1 + c2 + c3) * (e4 - ef) / e41, &
969 c1 + c2 + c3 + (c2 + c3) * (e3 - ef) / e32 + c3 * (e4 - ef) / e42, &
970 (c1 + c2) * (ef - e1) / e31 + (c2 + c3) * (ef - e2) / e32, &
971 (c1 + c2 + c3) * (ef - e1) / e41 + c3 * (ef - e2) / e42]
974 real(real64) :: f13, f14, f23, f24, f31, f32, f41, f42, g, delta
976 f31 = (ef - e1) / (e3 - e1)
977 f41 = (ef - e1) / (e4 - e1)
978 f32 = (ef - e2) / (e3 - e2)
979 f42 = (ef - e2) / (e4 - e2)
984 g = 3.0_real64 / delta * (f23 * f31 + f32 * f24)
986 g * f14 / 3.0_real64 + f13 * f31 * f23 / delta, &
987 g * f23 / 3.0_real64 + f24 * f24 * f32 / delta, &
988 g * f32 / 3.0_real64 + f31 * f31 * f23 / delta, &
989 g * f41 / 3.0_real64 + f42 * f24 * f32 / delta]
991 elseif (e3 < ef .and. ef <= e4)
then
993 real(real64) :: E41, E42, E43, C
997 c = vt_4vg * (e4 - ef) ** 3 / (e41 * e42 * e43)
999 w(:) = vt_4vg - c * [ &
1003 4.0_real64 - (e4 - ef) * (m_one / e41 + m_one / e42 + m_one / e43)]
1006 real(real64) :: f14, f24, f34, f41, f42, f43, g
1007 f14 = (ef - e4) / (e1 - e4)
1008 f24 = (ef - e4) / (e2 - e4)
1009 f34 = (ef - e4) / (e3 - e4)
1013 g = f14 * f24 / (e4 - e3)
1014 d(:) = vt_vg * g *[ &
1025 weights(idx, ie) = w
1026 if (apply_bloechl) weights(idx, ie) = weights(idx, ie) + sum(d) * bloechl_corr
1042 real(real64),
intent(in) :: etetra(:)
1043 real(real64),
intent(in) :: eFs(:)
1044 real(real64),
intent(out) :: dos(:,:)
1046 real(real64) :: E(4), E1, E2, E3, E4, eF
1047 real(real64) :: d(4)
1048 integer :: idx(4), ie, ne
1050 real(real64),
parameter :: vT_vG = 1.0_real64 / 6.0_real64
1052 real(real64),
parameter :: P(4,20) = 1.0_real64 / 1260.0_real64 * reshape([ &
1053 1440, 0 , 30 , 0 , -38 , 7 , 17 , -28 , -56 , 9 , -46 , 9 , -38 , -28 , 17 , 7 , -18 , -18 , 12 , -18 , &
1054 0 , 1440, 0 , 30 , -28 , -38 , 7 , 17 , 9 , -56 , 9 , -46 , 7 , -38 , -28 , 17 , -18 , -18 , -18 , 12 , &
1055 30 , 0 , 1440, 0 , 17 , -28 , -38 , 7 , -46 , 9 , -56 , 9 , 17 , 7 , -38 , -28 , 12 , -18 , -18 , -18 , &
1056 0 , 30 , 0 , 1440, 7 , 17 , -28 , -38 , 9 , -46 , 9 , -56 , -28 , 17 , 7 , -38 , -18 , 12 , -18 , -18 &
1057 ], shape(p), order=[2, 1])
1061 select case (
size(etetra))
1068 do i = 1,
size(etetra)
1069 e(:) = e(:) + p(:,i) * etetra(i)
1087 if (e1 >= ef .or. e4 < ef)
then
1089 elseif (e1 < ef .and. ef <= e2)
then
1091 real(real64) :: f12, f13, f14, f21, f31, f41, g
1092 f21 = (ef - e1) / (e2 - e1)
1093 f31 = (ef - e1) / (e3 - e1)
1094 f41 = (ef - e1) / (e4 - e1)
1098 g = f31 * f41 / (e2 - e1)
1099 d(:) = vt_vg * g * [&
1105 elseif (e2 < ef .and. ef <= e3)
then
1107 real(real64) :: f13, f14, f23, f24, f31, f32, f41, f42, g, delta
1109 f31 = (ef - e1) / (e3 - e1)
1110 f41 = (ef - e1) / (e4 - e1)
1111 f32 = (ef - e2) / (e3 - e2)
1112 f42 = (ef - e2) / (e4 - e2)
1117 g = 3.0_real64 / delta * (f23 * f31 + f32 * f24)
1119 g * f14 / 3.0_real64 + f13 * f31 * f23 / delta, &
1120 g * f23 / 3.0_real64 + f24 * f24 * f32 / delta, &
1121 g * f32 / 3.0_real64 + f31 * f31 * f23 / delta, &
1122 g * f41 / 3.0_real64 + f42 * f24 * f32 / delta]
1124 elseif (e3 < ef .and. ef <= e4)
then
1126 real(real64) :: f14, f24, f34, f41, f42, f43, g
1127 f14 = (ef - e4) / (e1 - e4)
1128 f24 = (ef - e4) / (e2 - e4)
1129 f34 = (ef - e4) / (e3 - e4)
1133 g = f14 * f24 / (e4 - e3)
1134 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.