21 use,
intrinsic :: iso_fortran_env, only: real64
41 type(namespace_t),
intent(in) :: namespace
42 character(len=*),
intent(in) :: fname
43 real(real64),
contiguous,
intent(in) :: matrix(:, :)
49 write(
message(1),
'(a)')
"ISDF. Outputting: " // trim(adjustl(fname))
54 open(newunit=unit, file=trim(adjustl(fname)))
55 do j = 1,
size(matrix, 2)
56 do i = 1,
size(matrix, 1)
57 write(unit, *) matrix(i, j)
78 type(states_elec_t),
intent(in) :: st
79 integer,
intent(in) :: ik_index
92 if (abs(st%occ(ist, ik_index)) <
m_min_occ)
exit
real(real64), parameter, public m_min_occ
Minimal occupation that is considered to be non-zero.
subroutine, public output_matrix(namespace, fname, matrix)
Helper routine to output a 2D matrix.
integer function, public highest_occupied_index(st, ik_index)
Return the index of highest occupied Kohn-Sham state for k-point ik.
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
subroutine, public messages_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
type(mpi_grp_t), public mpi_world
integer, parameter, public smear_semiconductor