83#include "./base/base_uses.f90"
100 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'particle_methods'
125 TYPE(
qs_kind_type),
DIMENSION(:),
POINTER :: qs_kind_set
126 INTEGER,
DIMENSION(:),
INTENT(INOUT),
OPTIONAL :: first_sgf, last_sgf, nsgf, nmao
128 INTEGER,
DIMENSION(:),
INTENT(INOUT),
OPTIONAL :: ncgf
130 INTEGER :: ikind, iparticle, isgf, nparticle, ns
132 cpassert(
ASSOCIATED(particle_set))
134 nparticle =
SIZE(particle_set)
135 IF (
PRESENT(first_sgf))
THEN
136 cpassert(
SIZE(first_sgf) >= nparticle)
138 IF (
PRESENT(last_sgf))
THEN
139 cpassert(
SIZE(last_sgf) >= nparticle)
141 IF (
PRESENT(nsgf))
THEN
142 cpassert(
SIZE(nsgf) >= nparticle)
144 IF (
PRESENT(nmao))
THEN
145 cpassert(
SIZE(nmao) >= nparticle)
147 IF (
PRESENT(ncgf))
THEN
148 cpassert(
SIZE(ncgf) >= nparticle)
151 IF (
PRESENT(first_sgf) .OR.
PRESENT(last_sgf) .OR.
PRESENT(nsgf))
THEN
153 DO iparticle = 1, nparticle
154 CALL get_atomic_kind(particle_set(iparticle)%atomic_kind, kind_number=ikind)
155 IF (
PRESENT(basis))
THEN
156 IF (
ASSOCIATED(basis(ikind)%gto_basis_set))
THEN
164 IF (
PRESENT(nsgf)) nsgf(iparticle) = ns
165 IF (
PRESENT(first_sgf)) first_sgf(iparticle) = isgf + 1
167 IF (
PRESENT(last_sgf)) last_sgf(iparticle) = isgf
171 IF (
PRESENT(ncgf))
THEN
172 DO iparticle = 1, nparticle
173 CALL get_atomic_kind(particle_set(iparticle)%atomic_kind, kind_number=ikind)
174 IF (
PRESENT(basis))
THEN
175 IF (
ASSOCIATED(basis(ikind)%gto_basis_set))
THEN
187 IF (
PRESENT(first_sgf))
THEN
188 IF (
SIZE(first_sgf) > nparticle) first_sgf(nparticle + 1) = isgf + 1
191 IF (
PRESENT(nmao))
THEN
192 DO iparticle = 1, nparticle
193 CALL get_atomic_kind(particle_set(iparticle)%atomic_kind, kind_number=ikind)
225 content, title, cell, array, unit_conv, &
226 charge_occup, charge_beta, &
227 charge_extended, print_kind)
230 INTEGER :: iunit, output_format
231 CHARACTER(LEN=*) :: content, title
232 TYPE(
cell_type),
OPTIONAL,
POINTER :: cell
233 REAL(kind=
dp),
DIMENSION(:),
INTENT(IN),
OPTIONAL :: array
234 REAL(kind=
dp),
INTENT(IN),
OPTIONAL :: unit_conv
235 LOGICAL,
INTENT(IN),
OPTIONAL :: charge_occup, charge_beta, &
236 charge_extended, print_kind
238 CHARACTER(len=*),
PARAMETER :: routinen =
'write_particle_coordinates'
240 CHARACTER(LEN=120) :: line
241 CHARACTER(LEN=2) :: element_symbol
242 CHARACTER(LEN=4) :: name
243 CHARACTER(LEN=default_string_length) :: atm_name, my_format
244 INTEGER :: handle, iatom, natom
245 LOGICAL :: dummy, my_charge_beta, &
246 my_charge_extended, my_charge_occup, &
248 REAL(kind=
dp) :: angle_alpha, angle_beta, angle_gamma, &
250 REAL(kind=
dp),
ALLOCATABLE,
DIMENSION(:, :) :: arr
251 REAL(kind=
dp),
DIMENSION(3) :: abc, angles, f, r, v
252 REAL(kind=
dp),
DIMENSION(3, 3) :: h
253 REAL(kind=
sp),
ALLOCATABLE,
DIMENSION(:) :: x4, y4, z4
258 CALL timeset(routinen, handle)
260 natom =
SIZE(particle_set)
261 IF (
PRESENT(array))
THEN
262 SELECT CASE (trim(content))
263 CASE (
"POS_VEL",
"POS_VEL_FORCE")
264 cpabort(
"Illegal usage")
268 IF (
PRESENT(unit_conv))
THEN
271 SELECT CASE (output_format)
273 my_print_kind = .false.
274 IF (
PRESENT(print_kind)) my_print_kind = print_kind
275 WRITE (iunit,
"(I8)") natom
276 WRITE (iunit,
"(A)") trim(title)
279 element_symbol=element_symbol)
280 IF (len_trim(element_symbol) == 0 .OR. my_print_kind)
THEN
285 atm_name = trim(atm_name)
287 my_format =
"(T2,A2,"
288 atm_name = trim(element_symbol)
290 SELECT CASE (trim(content))
292 IF (
PRESENT(array))
THEN
295 r(:) = particle_set(iatom)%r(:)
297 WRITE (iunit, trim(my_format)//
"1X,3F20.10)") trim(atm_name), r(1:3)*factor
299 IF (
PRESENT(array))
THEN
302 v(:) = particle_set(iatom)%v(:)
304 WRITE (iunit, trim(my_format)//
"1X,3F20.10)") trim(atm_name), v(1:3)*factor
306 IF (
PRESENT(array))
THEN
307 f(:) = array((iatom - 1)*3 + 1:(iatom - 1)*3 + 3)
309 f(:) = particle_set(iatom)%f(:)
311 WRITE (iunit, trim(my_format)//
"1X,3F20.10)") trim(atm_name), f(1:3)*factor
312 CASE (
"FORCE_MIXING_LABELS")
313 IF (
PRESENT(array))
THEN
314 f(:) = array((iatom - 1)*3 + 1:(iatom - 1)*3 + 3)
316 f(:) = particle_set(iatom)%f(:)
318 WRITE (iunit, trim(my_format)//
"1X,3F20.10)") trim(atm_name), f(1:3)*factor
323 SELECT CASE (trim(content))
325 IF (
PRESENT(array))
THEN
328 r(:) = particle_set(iatom)%r(:)
330 WRITE (iunit,
"(3F20.10)") r(1:3)*factor
332 IF (
PRESENT(array))
THEN
335 v(:) = particle_set(iatom)%v(:)
337 WRITE (iunit,
"(3F20.10)") v(1:3)*factor
339 IF (
PRESENT(array))
THEN
340 f(:) = array((iatom - 1)*3 + 1:(iatom - 1)*3 + 3)
342 f(:) = particle_set(iatom)%f(:)
344 WRITE (iunit,
"(3F20.10)") f(1:3)*factor
345 CASE (
"FORCE_MIXING_LABELS")
346 IF (
PRESENT(array))
THEN
347 f(:) = array((iatom - 1)*3 + 1:(iatom - 1)*3 + 3)
349 f(:) = particle_set(iatom)%f(:)
351 WRITE (iunit,
"(3F20.10)") f(1:3)*factor
355 IF (.NOT. (
PRESENT(cell)))
THEN
356 cpabort(
"Cell is not present! Report this bug!")
358 CALL get_cell(cell, alpha=angle_alpha, beta=angle_beta,
gamma=angle_gamma, &
367 CALL cell_clone(cell, cell_dcd, tag=
"CELL_DCD")
368 angles(1) = angle_alpha/
degree
369 angles(2) = angle_beta/
degree
370 angles(3) = angle_gamma/
degree
373 h(1:3, 1:3) = matmul(cell_dcd%hmat(1:3, 1:3), cell%h_inv(1:3, 1:3))
376 ALLOCATE (arr(3, natom))
377 IF (
PRESENT(array))
THEN
378 arr(1:3, 1:natom) = reshape(array, [3, natom])
380 SELECT CASE (trim(content))
383 arr(1:3, iatom) = particle_set(iatom)%r(1:3)
387 arr(1:3, iatom) = particle_set(iatom)%v(1:3)
391 arr(1:3, iatom) = particle_set(iatom)%f(1:3)
394 cpabort(
"Illegal DCD dump type")
401 x4(1:natom) = real(matmul(h(1, 1:3), arr(1:3, 1:natom)), kind=
sp)
402 y4(1:natom) = real(matmul(h(2, 1:3), arr(1:3, 1:natom)), kind=
sp)
403 z4(1:natom) = real(matmul(h(3, 1:3), arr(1:3, 1:natom)), kind=
sp)
405 x4(1:natom) = real(arr(1, 1:natom), kind=
sp)
406 y4(1:natom) = real(arr(2, 1:natom), kind=
sp)
407 z4(1:natom) = real(arr(3, 1:natom), kind=
sp)
409 WRITE (iunit) abc(1)*factor, angle_gamma, abc(2)*factor, &
410 angle_beta, angle_alpha, abc(3)*factor
411 WRITE (iunit) x4*real(factor, kind=
sp)
412 WRITE (iunit) y4*real(factor, kind=
sp)
413 WRITE (iunit) z4*real(factor, kind=
sp)
420 my_charge_occup = .false.
421 IF (
PRESENT(charge_occup)) my_charge_occup = charge_occup
422 my_charge_beta = .false.
423 IF (
PRESENT(charge_beta)) my_charge_beta = charge_beta
424 my_charge_extended = .false.
425 IF (
PRESENT(charge_extended)) my_charge_extended = charge_extended
426 IF (len_trim(title) > 0)
THEN
427 WRITE (unit=iunit, fmt=
"(A6,T11,A)") &
428 "REMARK", trim(title)
430 CALL get_cell(cell, alpha=angle_alpha, beta=angle_beta,
gamma=angle_gamma, abc=abc)
442 WRITE (unit=iunit, fmt=
"(A6,3F9.3,3F7.2)") &
443 "CRYST1", abc(1:3)*factor, angle_alpha, angle_beta, angle_gamma
444 WRITE (unit=line(1:6), fmt=
"(A6)")
"ATOM "
465 element_symbol=element_symbol, name=atm_name, &
466 fist_potential=fist_potential, shell=shell)
467 IF (len_trim(element_symbol) == 0)
THEN
470 name = trim(atm_name)
471 IF (
ASSOCIATED(fist_potential))
THEN
476 IF (
ASSOCIATED(shell))
CALL get_shell(shell=shell, charge=qeff)
477 WRITE (unit=line(1:6), fmt=
"(A6)")
"ATOM "
478 WRITE (unit=line(7:11), fmt=
"(I5)")
modulo(iatom, 100000)
479 WRITE (unit=line(13:16), fmt=
"(A4)") adjustl(name)
482 SELECT CASE (trim(content))
484 IF (
PRESENT(array))
THEN
487 r(:) = particle_set(iatom)%r(:)
489 WRITE (unit=line(31:54), fmt=
"(3F8.3)") r(1:3)*factor
491 cpabort(
"PDB dump only for trajectory available")
493 IF (my_charge_occup)
THEN
494 WRITE (unit=line(55:60), fmt=
"(F6.2)") qeff
496 WRITE (unit=line(55:60), fmt=
"(F6.2)") 0.0_dp
498 IF (my_charge_beta)
THEN
499 WRITE (unit=line(61:66), fmt=
"(F6.2)") qeff
501 WRITE (unit=line(61:66), fmt=
"(F6.2)") 0.0_dp
504 WRITE (unit=line(77:78), fmt=
"(A2)") adjustr(trim(element_symbol))
505 IF (my_charge_extended)
THEN
506 WRITE (unit=line(81:), fmt=
"(SP,F0.8)") qeff
508 WRITE (unit=iunit, fmt=
"(A)") trim(line)
510 WRITE (unit=iunit, fmt=
"(A)")
"END"
512 cpabort(
"Illegal dump type")
515 CALL timestop(handle)
531 REAL(kind=
dp),
DIMENSION(:),
OPTIONAL :: charges
533 CHARACTER(LEN=default_string_length) :: name, unit_str
534 INTEGER :: iatom, ikind, iw, natom
535 REAL(kind=
dp) :: conv, mass, qcore, qeff, qshell
544 "PRINT%ATOMIC_COORDINATES", extension=
".coordLog")
550 WRITE (unit=iw, fmt=
"(/,/,T2,A)") &
551 "MODULE FIST: ATOMIC COORDINATES IN "//trim(unit_str)
552 WRITE (unit=iw, fmt=
"(/,T4,A,T30,A,T44,A,T58,A,T66,A,T77,A)") &
553 "Atom Kind Name",
"X",
"Y",
"Z",
"q(eff)",
"Mass"
554 natom =
SIZE(particle_set)
562 IF (
PRESENT(charges)) qeff = charges(iatom)
563 IF (
ASSOCIATED(shell_kind))
THEN
567 qeff = qcore + qshell
569 WRITE (unit=iw, fmt=
"(T2,I6,1X,I4,1X,A7,3(1X,F13.6),2(1X,F8.4))") &
570 iatom, ikind, name, particle_set(iatom)%r(1:3)*conv, qeff, mass/
massunit
576 "PRINT%ATOMIC_COORDINATES")
593 TYPE(
qs_kind_type),
DIMENSION(:),
POINTER :: qs_kind_set
595 CHARACTER(LEN=*),
INTENT(IN) :: label
597 CHARACTER(len=*),
PARAMETER :: routinen =
'write_qs_particle_coordinates'
599 CHARACTER(LEN=2) :: element_symbol
600 CHARACTER(LEN=default_string_length) :: unit_str
601 INTEGER :: handle, iatom, ikind, iw, natom, z
602 REAL(kind=
dp) :: conv, mass, zeff
605 CALL timeset(routinen, handle)
610 "PRINT%ATOMIC_COORDINATES", extension=
".coordLog")
616 WRITE (unit=iw, fmt=
"(/,/,T2,A)") &
617 "MODULE "//trim(label)//
": ATOMIC COORDINATES IN "//trim(unit_str)
618 WRITE (unit=iw, fmt=
"(/,T4,A,T30,A,T44,A,T58,A,T66,A,T77,A)") &
619 "Atom Kind Element",
"X",
"Y",
"Z",
"Z(eff)",
"Mass"
620 natom =
SIZE(particle_set)
624 element_symbol=element_symbol, &
628 WRITE (unit=iw, fmt=
"(T2,I6,1X,I4,1X,A2,1X,I4,3(1X,F13.6),2(1X,F8.4))") &
629 iatom, ikind, element_symbol, z, particle_set(iatom)%r(1:3)*conv, zeff, mass/
massunit
635 "PRINT%ATOMIC_COORDINATES")
637 CALL timestop(handle)
656 CHARACTER(len=*),
PARAMETER :: routinen =
'write_particle_distances'
658 CHARACTER(LEN=default_string_length) :: unit_str
659 INTEGER :: handle, iatom, iw, jatom, natom
660 INTEGER,
DIMENSION(3) :: periodic
662 REAL(kind=
dp) :: conv, dab, dab_abort, dab_min, dab_warn
663 REAL(kind=
dp),
ALLOCATABLE,
DIMENSION(:, :) :: distance_matrix
664 REAL(kind=
dp),
DIMENSION(3) :: rab
667 CALL timeset(routinen, handle)
669 cpassert(
ASSOCIATED(particle_set))
670 cpassert(
ASSOCIATED(cell))
671 cpassert(
ASSOCIATED(subsys_section))
676 "PRINT%INTERATOMIC_DISTANCES", extension=
".distLog")
680 CALL section_vals_val_get(subsys_section,
"PRINT%INTERATOMIC_DISTANCES%CHECK_INTERATOMIC_DISTANCES", &
681 r_val=dab_min, explicit=explicit)
685 natom =
SIZE(particle_set)
689 IF (explicit .OR. (iw > 0) .OR. (natom <= 2000))
THEN
690 IF (dab_min > 0.0_dp)
THEN
691 dab_warn = dab_min*conv
692 ELSE IF (dab_min < 0.0_dp)
THEN
693 dab_abort = abs(dab_min)*conv
697 IF ((iw > 0) .OR. (dab_abort > 0.0_dp) .OR. (dab_warn > 0.0_dp))
THEN
698 CALL get_cell(cell=cell, periodic=periodic)
700 ALLOCATE (distance_matrix(natom, natom))
701 distance_matrix(:, :) = 0.0_dp
704 DO jatom = iatom + 1, natom
705 rab(:) =
pbc(particle_set(iatom)%r(:), &
706 particle_set(jatom)%r(:), cell)
707 dab = sqrt(rab(1)*rab(1) + rab(2)*rab(2) + rab(3)*rab(3))*conv
708 IF (dab_abort > 0.0_dp)
THEN
710 IF (dab < dab_abort)
THEN
711 CALL cp_abort(__location__,
"The distance between the atoms "// &
712 trim(adjustl(
cp_to_string(iatom, fmt=
"(I8)")))//
" and "// &
713 trim(adjustl(
cp_to_string(jatom, fmt=
"(I8)")))//
" is only "// &
715 trim(adjustl(unit_str))//
" and thus smaller than the requested threshold of "// &
716 trim(adjustl(
cp_to_string(dab_abort, fmt=
"(F6.3)")))//
" "// &
717 trim(adjustl(unit_str)))
720 IF (dab < dab_warn)
THEN
722 CALL cp_warn(__location__,
"The distance between the atoms "// &
723 trim(adjustl(
cp_to_string(iatom, fmt=
"(I8)")))//
" and "// &
724 trim(adjustl(
cp_to_string(jatom, fmt=
"(I8)")))//
" is only "// &
726 trim(adjustl(unit_str))//
" and thus smaller than the threshold of "// &
727 trim(adjustl(
cp_to_string(dab_warn, fmt=
"(F6.3)")))//
" "// &
728 trim(adjustl(unit_str)))
731 distance_matrix(iatom, jatom) = dab
732 distance_matrix(jatom, iatom) = distance_matrix(iatom, jatom)
738 WRITE (unit=iw, fmt=
"(/,/,T2,A)") &
739 "INTERATOMIC DISTANCES IN "//trim(unit_str)
741 IF (
ALLOCATED(distance_matrix))
DEALLOCATE (distance_matrix)
744 "PRINT%INTERATOMIC_DISTANCES")
747 CALL timestop(handle)
761 REAL(kind=
dp),
DIMENSION(:, :) :: matrix
763 INTEGER,
INTENT(IN) :: iw
764 INTEGER,
INTENT(IN),
OPTIONAL :: el_per_part
765 INTEGER,
DIMENSION(:),
OPTIONAL,
POINTER :: ilist
766 INTEGER,
INTENT(IN),
OPTIONAL :: parts_per_line
768 CHARACTER(LEN=2) :: element_symbol
769 CHARACTER(LEN=default_string_length) :: fmt_string1, fmt_string2
770 INTEGER :: from, i, iatom, icol, jatom, katom, &
771 my_el_per_part, my_parts_per_line, &
773 INTEGER,
DIMENSION(:),
POINTER :: my_list
776 IF (
PRESENT(el_per_part)) my_el_per_part = el_per_part
777 my_parts_per_line = 5
778 IF (
PRESENT(parts_per_line)) my_parts_per_line = max(parts_per_line, 1)
779 WRITE (fmt_string1, fmt=
'(A,I0,A)') &
780 "(/,T2,9X,", my_parts_per_line,
"(4X,I6,4X))"
781 WRITE (fmt_string2, fmt=
'(A,I0,A)') &
782 "(T2,I5,1X,A2,1X,", my_parts_per_line,
"(1X,ES13.6E2))"
783 IF (
PRESENT(ilist))
THEN
786 natom =
SIZE(particle_set)
788 ALLOCATE (my_list(natom))
789 IF (
PRESENT(ilist))
THEN
796 natom = natom*my_el_per_part
797 DO jatom = 1, natom, my_parts_per_line
799 to = min(from + my_parts_per_line - 1, natom)
800 WRITE (unit=iw, fmt=trim(fmt_string1)) (icol, icol=from, to)
802 katom = iatom/my_el_per_part
803 IF (mod(iatom, my_el_per_part) /= 0) katom = katom + 1
804 CALL get_atomic_kind(atomic_kind=particle_set(my_list(katom))%atomic_kind, &
805 element_symbol=element_symbol)
806 WRITE (unit=iw, fmt=trim(fmt_string2)) &
807 iatom, element_symbol, &
808 (matrix(iatom, icol), icol=from, to)
835 CHARACTER(LEN=*),
PARAMETER :: routinen =
'write_structure_data'
837 CHARACTER(LEN=default_string_length) :: string, unit_str
838 INTEGER :: handle, i, i_rep, iw, n, n_rep, n_vals, &
839 natom, new_size, old_size, wrk2(2), &
841 INTEGER,
ALLOCATABLE,
DIMENSION(:) :: work
842 INTEGER,
DIMENSION(:),
POINTER :: atomic_indices, index_list
844 REAL(kind=
dp) :: conv, dab
845 REAL(kind=
dp),
DIMENSION(3) :: r, rab, rbc, rcd, s
849 CALL timeset(routinen, handle)
850 NULLIFY (atomic_indices)
858 basis_section=input_section, &
859 print_key_path=
"PRINT%STRUCTURE_DATA", &
860 extension=
".coordLog")
866 natom =
SIZE(particle_set)
868 subsection_name=
"PRINT%STRUCTURE_DATA")
870 WRITE (unit=iw, fmt=
"(/,T2,A)")
"REQUESTED STRUCTURE DATA"
873 keyword_name=
"POSITION", &
876 WRITE (unit=iw, fmt=
"(/,T3,A,/)") &
877 "Position vectors r(i) of the atoms i in "//trim(unit_str)
881 keyword_name=
"POSITION", &
883 i_vals=atomic_indices)
884 n_vals =
SIZE(atomic_indices)
885 new_size = old_size + n_vals
887 index_list(old_size + 1:new_size) = atomic_indices(1:n_vals)
890 ALLOCATE (work(new_size))
891 CALL sort(index_list, new_size, work)
894 WRITE (unit=string, fmt=
"(A,I0,A)")
"(", index_list(i),
")"
895 IF ((index_list(i) < 1) .OR. (index_list(i) > natom))
THEN
896 WRITE (unit=iw, fmt=
"(T3,A)") &
897 "Invalid atomic index "//trim(string)//
" specified. Print request is ignored."
902 IF (index_list(i) == index_list(i - 1)) cycle
904 WRITE (unit=iw, fmt=
"(T3,A,T20,A,3F13.6)") &
905 "r"//trim(string),
"=",
pbc(particle_set(index_list(i))%r(1:3), cell)*conv
907 DEALLOCATE (index_list)
912 keyword_name=
"POSITION_SCALED", &
915 WRITE (unit=iw, fmt=
"(/,T3,A,/)") &
916 "Position vectors s(i) of the atoms i in scaled coordinates"
920 keyword_name=
"POSITION_SCALED", &
922 i_vals=atomic_indices)
923 n_vals =
SIZE(atomic_indices)
924 new_size = old_size + n_vals
926 index_list(old_size + 1:new_size) = atomic_indices(1:n_vals)
929 ALLOCATE (work(new_size))
930 CALL sort(index_list, new_size, work)
933 WRITE (unit=string, fmt=
"(A,I0,A)")
"(", index_list(i),
")"
934 IF ((index_list(i) < 1) .OR. (index_list(i) > natom))
THEN
935 WRITE (unit=iw, fmt=
"(T3,A)") &
936 "Invalid atomic index "//trim(string)//
" specified. Print request is ignored."
941 IF (index_list(i) == index_list(i - 1)) cycle
943 r(1:3) =
pbc(particle_set(index_list(i))%r(1:3), cell)
945 WRITE (unit=iw, fmt=
"(T3,A,T20,A,3F13.6)") &
946 "s"//trim(string),
"=", s(1:3)
948 DEALLOCATE (index_list)
953 keyword_name=
"DISTANCE", &
956 WRITE (unit=iw, fmt=
"(/,T3,A,/)") &
957 "Distance vector r(i,j) between the atom i and j in "// &
961 keyword_name=
"DISTANCE", &
963 i_vals=atomic_indices)
965 WRITE (unit=string, fmt=
"(A,2(I0,A))") &
966 "(", atomic_indices(1),
",", atomic_indices(2),
")"
967 wrk2 = atomic_indices
969 IF (((wrk2(1) >= 1) .AND. (wrk2(
SIZE(wrk2)) <= natom)) .AND. unique)
THEN
970 rab(:) =
pbc(particle_set(atomic_indices(1))%r(:), &
971 particle_set(atomic_indices(2))%r(:), cell)
972 dab = sqrt(rab(1)*rab(1) + rab(2)*rab(2) + rab(3)*rab(3))
973 WRITE (unit=iw, fmt=
"(T3,A,T20,A,3F13.6,3X,A,F13.6)") &
974 "r"//trim(string),
"=", rab(:)*conv, &
977 WRITE (unit=iw, fmt=
"(T3,A)") &
978 "Invalid atomic indices "//trim(string)//
" specified. Print request is ignored."
985 keyword_name=
"ANGLE", &
988 WRITE (unit=iw, fmt=
"(/,T3,A,/)") &
989 "Angle a(i,j,k) between the atomic distance vectors r(j,i) and "// &
993 keyword_name=
"ANGLE", &
995 i_vals=atomic_indices)
997 WRITE (unit=string, fmt=
"(A,3(I0,A))") &
998 "(", atomic_indices(1),
",", atomic_indices(2),
",", atomic_indices(3),
")"
999 wrk3 = atomic_indices
1001 IF (((wrk3(1) >= 1) .AND. (wrk3(
SIZE(wrk3)) <= natom)) .AND. unique)
THEN
1002 rab(:) =
pbc(particle_set(atomic_indices(1))%r(:), &
1003 particle_set(atomic_indices(2))%r(:), cell)
1004 rbc(:) =
pbc(particle_set(atomic_indices(2))%r(:), &
1005 particle_set(atomic_indices(3))%r(:), cell)
1006 WRITE (unit=iw, fmt=
"(T3,A,T26,A,F9.3)") &
1009 WRITE (unit=iw, fmt=
"(T3,A)") &
1010 "Invalid atomic indices "//trim(string)//
" specified. Print request is ignored."
1017 keyword_name=
"DIHEDRAL_ANGLE", &
1020 WRITE (unit=iw, fmt=
"(/,T3,A,/)") &
1021 "Dihedral angle d(i,j,k,l) between the planes (i,j,k) and (j,k,l) "// &
1025 keyword_name=
"DIHEDRAL_ANGLE", &
1027 i_vals=atomic_indices)
1029 WRITE (unit=string, fmt=
"(A,4(I0,A))") &
1030 "(", atomic_indices(1),
",", atomic_indices(2),
",", &
1031 atomic_indices(3),
",", atomic_indices(4),
")"
1032 wrk4 = atomic_indices
1034 IF (((wrk4(1) >= 1) .AND. (wrk4(
SIZE(wrk4)) <= natom)) .AND. unique)
THEN
1035 rab(:) =
pbc(particle_set(atomic_indices(1))%r(:), &
1036 particle_set(atomic_indices(2))%r(:), cell)
1037 rbc(:) =
pbc(particle_set(atomic_indices(2))%r(:), &
1038 particle_set(atomic_indices(3))%r(:), cell)
1039 rcd(:) =
pbc(particle_set(atomic_indices(3))%r(:), &
1040 particle_set(atomic_indices(4))%r(:), cell)
1042 WRITE (unit=iw, fmt=
"(T3,A,T26,A,F9.3)") &
1045 WRITE (unit=iw, fmt=
"(T3,A)") &
1046 "Invalid atomic indices "//trim(string)//
" specified. Print request is ignored."
1052 "PRINT%STRUCTURE_DATA")
1054 CALL timestop(handle)
1086 keep_angles, keep_symmetry, keep_volume, &
1087 gopt_env_label, constraint_label)
1089 TYPE(
cell_type),
INTENT(IN),
POINTER :: cell
1091 LOGICAL,
INTENT(IN) :: conv, keep_angles, keep_symmetry, &
1093 CHARACTER(LEN=default_string_length),
INTENT(IN) :: gopt_env_label
1094 CHARACTER(LEN=4),
INTENT(IN) :: constraint_label
1096 CHARACTER(len=*),
PARAMETER :: routinen =
'write_final_structure'
1098 CHARACTER(LEN=1) :: conv_str
1099 CHARACTER(LEN=2) :: element_symbol
1100 CHARACTER(LEN=2),
ALLOCATABLE :: element_list(:)
1101 CHARACTER(LEN=5) :: pbc_str
1102 CHARACTER(LEN=:),
ALLOCATABLE :: formula_structural, formula_sum
1103 CHARACTER(LEN=default_path_length) :: cell_str, record, title
1104 CHARACTER(LEN=default_string_length) :: atm_name, f_cif, f_cif_label, &
1106 CHARACTER(LEN=default_string_length),
ALLOCATABLE :: cif_label(:), cif_type_symbol(:)
1107 CHARACTER(LEN=timestamp_length) :: timestamp
1108 INTEGER :: elem_seen, file_unit, gcd_all, handle, i, iatom, ielem, natom, output_unit, &
1109 symmetry_id, w_cif_label, w_cif_type_symbol
1110 INTEGER,
ALLOCATABLE :: count_list(:)
1111 LOGICAL :: dummy, elem_in_list, orthorhombic, &
1112 print_final_structure, print_kind, &
1113 write_cif, write_xyz
1114 REAL(kind=
dp) :: angle_alpha, angle_beta, angle_gamma, &
1116 REAL(kind=
dp),
DIMENSION(3) :: abc, r, s
1117 REAL(kind=
dp),
DIMENSION(3, 3) :: hmat
1124 CALL timeset(routinen, handle)
1126 NULLIFY (enum, logger, symmetry_keyword, print_key, tmp_cell_section)
1133 IF (conv) conv_str(1:1) =
"T"
1137 CALL get_cell(cell, alpha=angle_alpha, beta=angle_beta,
gamma=angle_gamma, &
1138 deth=deth, orthorhombic=orthorhombic, abc=abc, h=hmat, &
1139 symmetry_id=symmetry_id)
1140 IF (cell%perd(1) == 1) pbc_str(1:1) =
"T"
1141 IF (cell%perd(2) == 1) pbc_str(3:3) =
"T"
1142 IF (cell%perd(3) == 1) pbc_str(5:5) =
"T"
1148 WRITE (unit=cell_str, fmt=
"(9(1X,F19.10))") &
1160 natom =
SIZE(particle_set)
1161 ALLOCATE (element_list(
nelem + 1), count_list(
nelem + 1))
1163 ALLOCATE (cif_label(natom), cif_type_symbol(natom))
1165 w_cif_type_symbol = 0
1167 atom_loop:
DO iatom = 1, natom
1168 elem_in_list = .false.
1170 name=atm_name, element_symbol=element_symbol)
1171 cif_type_symbol(iatom) = trim(atm_name)
1175 IF (len_trim(element_symbol) == 0)
THEN
1177 cif_label(iatom) = trim(atm_name)//trim(adjustl(
cp_to_string(iatom)))
1179 cif_label(iatom) = trim(element_symbol)//trim(adjustl(
cp_to_string(iatom)))
1180 elem_loop:
DO ielem = 1, elem_seen
1181 IF (element_list(ielem) == element_symbol)
THEN
1182 elem_in_list = .true.
1183 count_list(ielem) = count_list(ielem) + 1
1187 IF (.NOT. elem_in_list)
THEN
1188 elem_seen = elem_seen + 1
1189 element_list(elem_seen) = element_symbol
1190 count_list(elem_seen) = 1
1193 IF (len_trim(cif_type_symbol(iatom)) > w_cif_type_symbol)
THEN
1194 w_cif_type_symbol = len_trim(cif_type_symbol(iatom))
1196 IF (len_trim(cif_label(iatom)) > w_cif_label)
THEN
1197 w_cif_label = len_trim(cif_label(iatom))
1209 f_cif_type_symbol =
"A"//trim(adjustl(
cp_to_string(w_cif_type_symbol + 4)))
1210 f_cif_label =
"A"//trim(adjustl(
cp_to_string(w_cif_label + 4)))
1211 f_cif =
"(T3,"//trim(f_cif_type_symbol)//
","//trim(f_cif_label)//
",I4,3F14.8,F8.2)"
1214 cpassert(elem_seen > 0)
1215 cpassert(count_list(1) > 0)
1217 DO ielem = 1, elem_seen
1218 formula_sum = formula_sum//trim(adjustl(element_list(ielem)))
1219 formula_sum = formula_sum//trim(adjustl(
cp_to_string(count_list(ielem))))
1220 formula_sum = formula_sum//
" "
1222 formula_sum = trim(adjustl(formula_sum))//
"'"
1225 gcd_all = count_list(1)
1226 DO ielem = 1, elem_seen
1227 IF (count_list(ielem) /= 0)
THEN
1228 gcd_all =
gcd(gcd_all, count_list(ielem))
1231 IF (gcd_all > 1) count_list = count_list/gcd_all
1232 formula_structural =
"'"
1233 DO ielem = 1, elem_seen
1234 formula_structural = formula_structural//trim(adjustl(element_list(ielem)))
1235 formula_structural = formula_structural//trim(adjustl(
cp_to_string(count_list(ielem))))
1236 formula_structural = formula_structural//
" "
1238 formula_structural = trim(adjustl(formula_structural))//
"'"
1242 write_xyz = write_xyz .AND. print_final_structure
1249 IF (output_unit > 0)
THEN
1251 WRITE (unit=output_unit, fmt=
"(/,T2,A)") &
1252 routinen//
": Optimization converged, writing XYZ file gladly:"
1254 WRITE (unit=output_unit, fmt=
"(/,T2,A)") &
1255 routinen//
": Optimization not yet converged, writing XYZ file anyway:"
1257 WRITE (unit=output_unit, fmt=
"(T3,A)") trim(record)
1261 WRITE (unit=title, fmt=
"(A)") &
1262 'Lattice="'//trim(adjustl(cell_str))//
'" '// &
1263 'Properties=species:S:1:pos:R:3 '// &
1264 'pbc="'//pbc_str//
'" '// &
1265 'Converged='//conv_str
1270 file_status=
"REPLACE", file_form=
"FORMATTED", &
1272 IF (file_unit > 0)
THEN
1274 cell=cell, unit_conv=unit_conv, print_kind=print_kind)
1280 write_cif = write_cif .AND. print_final_structure
1286 IF (output_unit > 0)
THEN
1288 WRITE (unit=output_unit, fmt=
"(/,T2,A)") &
1289 routinen//
": Optimization converged, writing CIF file gladly:"
1291 WRITE (unit=output_unit, fmt=
"(/,T2,A)") &
1292 routinen//
": Optimization not yet converged, writing CIF file anyway:"
1294 WRITE (unit=output_unit, fmt=
"(T3,A)") trim(record)
1302 file_status=
"REPLACE", file_form=
"FORMATTED", &
1304 IF (file_unit > 0)
THEN
1306 WRITE (unit=file_unit, fmt=
"(A)") &
1307 "# CIF file created by CP2K "//trim(modulen)//
":"//trim(routinen)
1308 WRITE (unit=file_unit, fmt=
"(A)") &
1309 "data_"//trim(logger%iter_info%project_name)
1310 WRITE (unit=file_unit, fmt=
"(A,T39,A)") &
1311 "_audit_creation_date", timestamp(:10)
1312 WRITE (unit=file_unit, fmt=
"(A,/,A,/,A)") &
1313 "_audit_creation_method",
";", &
1315 WRITE (unit=file_unit, fmt=
"(A,/,A,/,A,/,A)") &
1316 "Project name "//trim(logger%iter_info%project_name), &
1318 "processed in "//trim(
r_cwd), &
1319 "generated at "//trim(timestamp)
1320 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1321 repeat(
" -*WARNING*- ", 6)
1322 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1323 "WARNING| the lines enclosed in between -*WARNING*- contain metadata"
1324 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1325 "WARNING| provided in a tentative format for the newly implemented"
1326 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1327 "WARNING| CIF output from CP2K version 2026.2, which may be unstable"
1328 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1329 "WARNING| and subject to overhaul in a future release. Contact the"
1330 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1331 "WARNING| developers in case a stabilized format is needed for some"
1332 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1333 "WARNING| downstream CIF parser with text pattern matchers (regexp)."
1334 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1335 "- Optimization type: "//trim(gopt_env_label)
1337 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1338 "- Optimization converged: TRUE"
1340 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1341 "- Optimization converged: FALSE"
1343 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1344 "- Requested initial cell symmetry: "//trim(
enum_i2c(enum, symmetry_id))
1345 IF (orthorhombic)
THEN
1346 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1347 "- Cell is numerically orthorhombic: TRUE"
1349 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1350 "- Cell is numerically orthorhombic: FALSE"
1352 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1353 "- Periodicity of cell: "//trim(pbc_str)
1354 IF (gopt_env_label ==
"CELL_OPT")
THEN
1355 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1356 "- Cell is subject to optimization: TRUE"
1357 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1358 "- Cell has constraint on direction: "//trim(adjustl(constraint_label))
1359 IF (keep_angles)
THEN
1360 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1361 "- Keep angles between the cell vectors during optimization: TRUE"
1363 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1364 "- Keep angles between the cell vectors during optimization: FALSE"
1366 IF (keep_symmetry)
THEN
1367 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1368 "- Keep initial cell symmetry during optimization: TRUE"
1370 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1371 "- Keep initial cell symmetry during optimization: FALSE"
1373 IF (keep_volume)
THEN
1374 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1375 "- Keep initial cell volume during optimization: TRUE"
1377 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1378 "- Keep initial cell volume during optimization: FALSE"
1381 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1382 "- Cell is subject to optimization: FALSE"
1384 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1385 "- Final cell vectors A, B, C by rows [angstrom]:"
1387 WRITE (unit=file_unit, fmt=
"(T3,3(1X,F19.10))") &
1392 WRITE (unit=file_unit, fmt=
"(T2,A)") &
1393 repeat(
"-*WARNING*- ", 6)
1394 WRITE (unit=file_unit, fmt=
"(A)")
";"
1396 WRITE (unit=file_unit, fmt=
"(/,A,T44,A)") &
1397 "_symmetry_space_group_name_H-M",
"'P 1'"
1398 WRITE (unit=file_unit, fmt=
"(A,T31,F18.8)") &
1400 WRITE (unit=file_unit, fmt=
"(A,T31,F18.8)") &
1402 WRITE (unit=file_unit, fmt=
"(A,T31,F18.8)") &
1404 WRITE (unit=file_unit, fmt=
"(A,T31,F18.8)") &
1405 "_cell_angle_alpha", angle_alpha
1406 WRITE (unit=file_unit, fmt=
"(A,T31,F18.8)") &
1407 "_cell_angle_beta", angle_beta
1408 WRITE (unit=file_unit, fmt=
"(A,T31,F18.8)") &
1409 "_cell_angle_gamma", angle_gamma
1410 WRITE (unit=file_unit, fmt=
"(A,T48,A)") &
1411 "_symmetry_Int_Tables_number",
"1"
1412 WRITE (unit=file_unit, fmt=
"(A,T36,A)") &
1413 "_chemical_formula_structural", formula_structural
1414 WRITE (unit=file_unit, fmt=
"(A,T36,A)") &
1415 "_chemical_formula_sum", formula_sum
1416 WRITE (unit=file_unit, fmt=
"(A,T31,F18.8)") &
1418 WRITE (unit=file_unit, fmt=
"(A,T41,I8)") &
1419 "_cell_formula_units_Z", gcd_all
1420 WRITE (unit=file_unit, fmt=
"(A,/,T2,A,/,T2,A,/,T3,A)") &
1421 "loop_",
"_symmetry_equiv_pos_site_id", &
1422 "_symmetry_equiv_pos_as_xyz",
"1 'x, y, z'"
1423 WRITE (unit=file_unit, fmt=
"(A,/,T2,A,/,T2,A,/,T2,A,/,T2,A,/,T2,A,/,T2,A,/,T2,A)") &
1424 "loop_",
"_atom_site_type_symbol",
"_atom_site_label", &
1425 "_atom_site_symmetry_multiplicity",
"_atom_site_fract_x", &
1426 "_atom_site_fract_y",
"_atom_site_fract_z",
"_atom_site_occupancy"
1430 r(1:3) =
pbc(particle_set(iatom)%r(1:3), cell, positive_range=.true.)
1432 WRITE (unit=file_unit, fmt=trim(f_cif)) &
1433 cif_type_symbol(iatom), cif_label(iatom), 1, s(1:3), 1.0_dp
1439 DEALLOCATE (element_list, count_list, formula_structural, &
1440 formula_sum, cif_label, cif_type_symbol)
1443 "PRINT%FINAL_STRUCTURE")
1444 IF (output_unit > 0 .AND. (write_xyz .OR. write_cif))
THEN
1445 WRITE (unit=output_unit, fmt=
'(/,T2,A)') &
1449 CALL timestop(handle)
static GRID_HOST_DEVICE int modulo(int a, int m)
Equivalent of Fortran's MODULO, which always return a positive number. https://gcc....
Define the atomic kind types and their sub types.
subroutine, public get_atomic_kind(atomic_kind, fist_potential, element_symbol, name, mass, kind_number, natom, atom_list, rcov, rvdw, z, qeff, apol, cpol, mm_radius, shell, shell_active, damping)
Get attributes of an atomic kind.
subroutine, public get_gto_basis_set(gto_basis_set, name, aliases, norm_type, kind_radius, ncgf, nset, nsgf, cgf_symbol, sgf_symbol, norm_cgf, set_radius, lmax, lmin, lx, ly, lz, m, ncgf_set, npgf, nsgf_set, nshell, cphi, pgf_radius, sphi, scon, zet, first_cgf, first_sgf, l, last_cgf, last_sgf, n, gcc, maxco, maxl, maxpgf, maxsgf_set, maxshell, maxso, nco_sum, npgf_sum, nshell_sum, maxder, short_kind_radius, npgf_seg_sum, ccon)
...
Handles all functions related to the CELL.
subroutine, public set_cell_param(cell, cell_length, cell_angle, periodic, do_init_cell)
Sets the cell using the internal parameters (a,b,c) (alpha,beta,gamma) using the convention: a parall...
subroutine, public cell_create(cell, hmat, periodic, tag)
allocates and initializes a cell
Handles all functions related to the CELL.
subroutine, public real_to_scaled(s, r, cell)
Transform real to scaled cell coordinates. s=h_inv*r.
subroutine, public cell_release(cell)
releases the given cell (see doc/ReferenceCounting.html)
subroutine, public cell_clone(cell_in, cell_out, tag)
Clone cell variable.
subroutine, public get_cell(cell, alpha, beta, gamma, deth, orthorhombic, abc, periodic, h, h_inv, symmetry_id, tag)
Get informations about a simulation cell.
some minimal info about CP2K, including its version and license
character(len=default_string_length), public r_host_name
character(len= *), parameter, public compile_revision
character(len= *), parameter, public cp2k_version
character(len=default_path_length), public r_cwd
character(len=default_string_length), public r_user_name
various routines to log and control the output. The idea is that decisions about where to log should ...
integer function, public cp_logger_get_default_io_unit(logger)
returns the unit nr for the ionode (-1 on all other processors) skips as well checks if the procs cal...
type(cp_logger_type) function, pointer, public cp_get_default_logger()
returns the default logger
routines to handle the output, The idea is to remove the decision of wheter to output and what to out...
integer function, public cp_print_key_unit_nr(logger, basis_section, print_key_path, extension, middle_name, local, log_filename, ignore_should_output, file_form, file_position, file_action, file_status, do_backup, on_file, is_new_file, mpi_io, fout)
...
character(len=default_path_length) function, public cp_print_key_generate_filename(logger, print_key, middle_name, extension, my_local)
Utility function that returns a unit number to write the print key. Might open a file with a unique f...
subroutine, public cp_print_key_finished_output(unit_nr, logger, basis_section, print_key_path, local, ignore_should_output, on_file, mpi_io)
should be called after you finish working with a unit obtained with cp_print_key_unit_nr,...
integer, parameter, public cp_p_file
integer function, public cp_print_key_should_output(iteration_info, basis_section, print_key_path, used_print_key, first_time)
returns what should be done with the given property if btest(res,cp_p_store) then the property should...
real(kind=dp) function, public cp_unit_from_cp2k(value, unit_str, defaults, power)
converts from the internal cp2k units to the given unit
Definition of the atomic potential types.
Calculation of the incomplete Gamma function F_n(t) for multi-center integrals over Cartesian Gaussia...
Defines the basic variable types.
integer, parameter, public dp
integer, parameter, public default_string_length
integer, parameter, public default_path_length
integer, parameter, public sp
Machine interface based on Fortran 2003 and POSIX.
integer, parameter, public timestamp_length
subroutine, public m_timestamp(timestamp)
Returns a human readable timestamp.
Definition of mathematical constants and functions.
real(kind=dp), parameter, public degree
Collection of simple mathematical functions and subroutines.
pure real(kind=dp) function, public angle(a, b)
Calculation of the angle between the vectors a and b. The angle is returned in radians.
elemental integer function, public gcd(a, b)
computes the greatest common divisor of two number
pure real(kind=dp) function, public dihedral_angle(ab, bc, cd)
Returns the dihedral angle, i.e. the angle between the planes defined by the vectors (-ab,...
Utility routines for the memory handling.
Define methods related to particle_type.
subroutine, public write_qs_particle_coordinates(particle_set, qs_kind_set, subsys_section, label)
Write the atomic coordinates to the output unit.
subroutine, public write_fist_particle_coordinates(particle_set, subsys_section, charges)
Write the atomic coordinates to the output unit.
subroutine, public write_final_structure(particle_set, cell, input_section, conv, keep_angles, keep_symmetry, keep_volume, gopt_env_label, constraint_label)
Write the final geometry and cell information to files.
subroutine, public write_particle_matrix(matrix, particle_set, iw, el_per_part, ilist, parts_per_line)
...
subroutine, public get_particle_set(particle_set, qs_kind_set, first_sgf, last_sgf, nsgf, nmao, basis, ncgf)
Get the components of a particle set.
subroutine, public write_structure_data(particle_set, cell, input_section)
Write structure data requested by a separate structure data input section to the output unit....
subroutine, public write_particle_distances(particle_set, cell, subsys_section)
Write the matrix of the particle distances to the output unit.
subroutine, public write_particle_coordinates(particle_set, iunit, output_format, content, title, cell, array, unit_conv, charge_occup, charge_beta, charge_extended, print_kind)
Should be able to write a few formats e.g. xmol, and some binary format (dcd) some format can be used...
Define the data structure for the particle information.
pure real(kind=dp) function, dimension(3), public get_particle_pos_or_vel(iatom, particle_set, vector)
Return the atomic position or velocity of atom iatom in x from a packed vector even if core-shell par...
Periodic Table related data definitions.
integer, parameter, public nelem
Definition of physical constants:
real(kind=dp), parameter, public massunit
logical function, public qmmm_ff_precond_only_qm(id1, id2, id3, id4, is_link)
This function handles the atom names and modifies the "_QM_" prefix, in order to find the parameters ...
Define the quickstep kind type and their sub types.
subroutine, public get_qs_kind(qs_kind, basis_set, basis_type, ncgf, nsgf, all_potential, tnadd_potential, gth_potential, sgp_potential, upf_potential, cneo_potential, se_parameter, dftb_parameter, xtb_parameter, dftb3_param, zatom, zeff, elec_conf, mao, lmax_dftb, alpha_core_charge, ccore_charge, core_charge, core_charge_radius, paw_proj_set, paw_atom, hard_radius, hard0_radius, max_rad_local, covalent_radius, vdw_radius, gpw_type_forced, harmonics, max_iso_not0, max_s_harm, grid_atom, ngrid_ang, ngrid_rad, lmax_rho0, dft_plus_u_atom, l_of_dft_plus_u, n_of_dft_plus_u, u_minus_j, hund_j, u_of_dft_plus_u, j_of_dft_plus_u, alpha_of_dft_plus_u, beta_of_dft_plus_u, j0_of_dft_plus_u, occupation_of_dft_plus_u, dispersion, bs_occupation, magnetization, no_optimize, addel, laddel, naddel, orbitals, max_scf, eps_scf, smear, u_ramping, u_minus_j_target, eps_u_ramping, proj_shell_charge, lr_atom, do_mtlr, u_j_loop, ao_coef, init_u_ramping_each_scf, reltmat, ghost, monovalent, floating, name, element_symbol, pao_basis_size, pao_model_file, pao_potentials, pao_descriptors, nelec)
Get attributes of an atomic kind.
elemental subroutine, public get_shell(shell, charge, charge_core, charge_shell, mass_core, mass_shell, k2_spring, k4_spring, max_dist, shell_cutoff)
...
Utilities for string manipulations.
elemental subroutine, public uppercase(string)
Convert all lower case characters in a string to upper case.
All kind of helpful little routines.
Type defining parameters related to the simulation cell.
type of a logger, at the moment it contains just a print level starting at which level it should be l...
Provides all information about a quickstep kind.