55#include "./base/base_uses.f90"
61 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'scf_control_types'
62 LOGICAL,
PRIVATE,
PARAMETER :: debug_this_module = .true.
97 LOGICAL :: do_smear = .false.
98 LOGICAL :: common_mu = .false.
99 INTEGER :: method = -1
100 REAL(kind=
dp) :: electronic_temperature = -1.0_dp, &
101 fixed_mag_mom = -1.0_dp, &
102 eps_fermi_dirac = -1.0_dp, &
103 window_size = -1.0_dp, &
104 smearing_width = -1.0_dp
105 REAL(kind=
dp),
DIMENSION(:),
POINTER ::
list => null()
108 TYPE diagonalization_type
109 INTEGER :: method = -1, update_method = -1, max_history = -1
110 REAL(kind=
dp) :: eps_jacobi = -1.0_dp
111 REAL(kind=
dp) :: jacobi_threshold = -1.0_dp
112 INTEGER :: max_iter = -1, nkrylov = -1, nblock_krylov = -1
113 LOGICAL :: adiis_verbose = .false., do_oda = .false.
115 LOGICAL :: mom = .false., mom_didguess = .false.
116 INTEGER :: mom_proj_formula = -1
118 INTEGER,
DIMENSION(:),
POINTER :: mom_deocca => null(), mom_deoccb => null(), &
119 mom_occa => null(), mom_occb => null()
124 INTEGER :: mom_start = -1
125 INTEGER :: mom_type = -1
126 REAL(kind=
dp) :: eps_iter = -1.0_dp
127 REAL(kind=
dp) :: eps_adapt = -1.0_dp
129 END TYPE diagonalization_type
134 TYPE(diagonalization_type) :: diagonalization = diagonalization_type()
136 INTEGER :: density_guess = -1, mixing_method = -1
137 REAL(kind=
dp) :: eps_eigval = -1.0_dp, eps_scf = -1.0_dp, eps_scf_hist = -1.0_dp, &
138 level_shift = -1.0_dp, &
139 eps_lumos = -1.0_dp, eps_diis = -1.0_dp
140 INTEGER :: max_iter_lumos = -1, max_diis = -1, nmixing = -1
141 INTEGER :: max_scf = -1, max_scf_hist = -1, &
142 maxl = -1, nkind = -1
143 LOGICAL :: do_diag_sub = .false., &
144 use_cholesky = .false., use_ot = .false., &
145 use_diag = .false., do_outer_scf_reortho = .false., &
146 ignore_convergence_failure = .false.
147 LOGICAL :: force_scf_calculation = .false.
148 LOGICAL :: non_selfconsistent = .false.
149 INTEGER,
DIMENSION(2) :: added_mos = -1
150 LOGICAL,
DIMENSION(2) :: added_mos_auto = .false.
151 INTEGER :: roks_scheme = -1
152 REAL(kind=
dp) :: roks_f = -1.0_dp
153 REAL(kind=
dp),
DIMENSION(0:2, 0:2, 1:2) :: roks_parameter = -1.0_dp
157 LOGICAL :: do_gce = .false.
158 REAL(kind=
dp) :: target_workfunction = 0.16_dp, &
160 mixing_coef = 0.3_dp, &
161 prev_workfunction = -1001.0_dp, &
179 CHARACTER(LEN=*),
PARAMETER :: routinen =
'scf_c_create'
183 CALL timeset(routinen, handle)
187 IF (scf_control%non_selfconsistent)
THEN
188 scf_control%density_guess =
no_guess
192 scf_control%eps_eigval = 1.0e-5_dp
193 scf_control%eps_scf = 1.0e-5_dp
194 scf_control%eps_scf_hist = 0.0_dp
195 scf_control%eps_lumos = 1.0e-5_dp
196 scf_control%max_iter_lumos = 2999
197 scf_control%eps_diis = 0.1_dp
198 scf_control%level_shift = 0.0_dp
199 scf_control%max_diis = 4
200 scf_control%max_scf = 50
201 scf_control%nmixing = 2
202 scf_control%use_cholesky = .true.
203 scf_control%use_diag = .true.
204 scf_control%do_diag_sub = .false.
205 scf_control%use_ot = .false.
206 scf_control%ignore_convergence_failure = .false.
207 scf_control%force_scf_calculation = .false.
208 scf_control%do_outer_scf_reortho = .true.
209 scf_control%max_diis = 4
210 scf_control%eps_diis = 0.1_dp
211 scf_control%added_mos(:) = 0
212 scf_control%added_mos_auto(:) = .false.
213 scf_control%max_scf_hist = 0
216 IF (scf_control%non_selfconsistent)
THEN
217 scf_control%mixing_method =
no_mix
223 scf_control%diagonalization%method = 0
225 scf_control%diagonalization%max_history = 16
226 scf_control%diagonalization%do_oda = .false.
227 scf_control%diagonalization%adiis_verbose = .false.
228 scf_control%diagonalization%eps_jacobi = 0.0_dp
229 scf_control%diagonalization%jacobi_threshold = 1.0e-7_dp
230 scf_control%diagonalization%max_iter = 0
231 scf_control%diagonalization%eps_iter = 0.0_dp
232 scf_control%diagonalization%eps_adapt = 0.0_dp
233 scf_control%diagonalization%nkrylov = 0
234 scf_control%diagonalization%nblock_krylov = 0
237 scf_control%diagonalization%mom = .false.
238 scf_control%diagonalization%mom_didguess = .false.
239 scf_control%diagonalization%mom_proj_formula = 0
240 NULLIFY (scf_control%diagonalization%mom_deoccA)
241 NULLIFY (scf_control%diagonalization%mom_deoccB)
242 NULLIFY (scf_control%diagonalization%mom_occA)
243 NULLIFY (scf_control%diagonalization%mom_occB)
244 scf_control%diagonalization%mom_start = 0
249 scf_control%roks_f = 0.5_dp
254 scf_control%roks_parameter(0, 0, 1) = 1.5_dp
255 scf_control%roks_parameter(0, 0, 2) = -0.5_dp
256 scf_control%roks_parameter(1, 1, 1) = 0.5_dp
257 scf_control%roks_parameter(1, 1, 2) = 0.5_dp
258 scf_control%roks_parameter(2, 2, 1) = -0.5_dp
259 scf_control%roks_parameter(2, 2, 2) = 1.5_dp
263 scf_control%roks_parameter(0, 1, 1) = 1.0_dp
264 scf_control%roks_parameter(0, 1, 2) = 0.0_dp
265 scf_control%roks_parameter(0, 2, 1) = 0.5_dp
266 scf_control%roks_parameter(0, 2, 2) = 0.5_dp
267 scf_control%roks_parameter(1, 2, 1) = 0.0_dp
268 scf_control%roks_parameter(1, 2, 2) = 1.0_dp
272 scf_control%roks_parameter(1, 0, 1) = scf_control%roks_parameter(0, 1, 1)
273 scf_control%roks_parameter(1, 0, 2) = scf_control%roks_parameter(0, 1, 2)
274 scf_control%roks_parameter(2, 0, 1) = scf_control%roks_parameter(0, 2, 1)
275 scf_control%roks_parameter(2, 0, 2) = scf_control%roks_parameter(0, 2, 2)
276 scf_control%roks_parameter(2, 1, 1) = scf_control%roks_parameter(1, 2, 1)
277 scf_control%roks_parameter(2, 1, 2) = scf_control%roks_parameter(1, 2, 2)
281 scf_control%outer_scf%have_scf = .false.
282 scf_control%outer_scf%max_scf = 0
283 scf_control%outer_scf%eps_scf = 0.0_dp
284 scf_control%outer_scf%step_size = 0.0_dp
285 scf_control%outer_scf%type = -1
286 scf_control%outer_scf%optimizer = -1
287 scf_control%outer_scf%diis_buffer_length = -1
288 NULLIFY (scf_control%outer_scf%cdft_opt_control)
292 NULLIFY (scf_control%smear)
294 CALL timestop(handle)
311 IF (
ASSOCIATED(scf_control%smear%list))
THEN
312 DEALLOCATE (scf_control%smear%list)
314 DEALLOCATE (scf_control%smear)
316 IF (
ASSOCIATED(scf_control%outer_scf%cdft_opt_control))
THEN
320 IF (
ASSOCIATED(scf_control%gce))
THEN
321 DEALLOCATE (scf_control%gce)
345 CHARACTER(LEN=*),
PARAMETER :: routinen =
'scf_c_read_parameters'
347 CHARACTER(LEN=default_string_length) :: added_mos_string, error_message
348 CHARACTER(LEN=default_string_length), &
349 DIMENSION(:),
POINTER :: added_mos
350 INTEGER :: added_mos_value, cholesky_flag, handle, &
352 LOGICAL :: do_mixing, explicit
353 REAL(kind=
dp),
DIMENSION(:),
POINTER :: roks_parameter
355 mixing_section, outer_scf_section, &
356 scf_section, smear_section
358 CALL timeset(routinen, handle)
362 l_val=scf_control%use_diag)
363 IF (scf_control%use_diag)
THEN
365 l_val=scf_control%do_diag_sub)
368 IF (scf_control%use_diag .AND. scf_control%use_ot)
THEN
370 cpabort(
"Don't activate OT and Diagonaliztion together")
371 ELSE IF (.NOT. (scf_control%use_diag .OR. scf_control%use_ot))
THEN
373 scf_control%use_diag = .true.
380 IF (scf_control%use_ot)
THEN
382 scf_control%eps_diis = 0.0_dp
390 IF (cholesky_flag > 0)
THEN
391 scf_control%use_cholesky = .true.
393 CALL section_vals_val_get(scf_section,
"IGNORE_CONVERGENCE_FAILURE", l_val=scf_control%ignore_convergence_failure)
394 CALL section_vals_val_get(scf_section,
"FORCE_SCF_CALCULATION", l_val=scf_control%force_scf_calculation)
401 IF (scf_control%use_diag)
THEN
403 i_val=scf_control%diagonalization%method)
405 i_val=scf_control%diagonalization%update_method)
407 r_val=scf_control%diagonalization%eps_jacobi)
409 r_val=scf_control%diagonalization%jacobi_threshold)
411 i_val=scf_control%diagonalization%max_iter)
413 r_val=scf_control%diagonalization%eps_iter)
415 r_val=scf_control%diagonalization%eps_adapt)
417 i_val=scf_control%diagonalization%nkrylov)
419 i_val=scf_control%diagonalization%nblock_krylov)
420 IF (scf_control%diagonalization%method ==
diag_ot)
THEN
422 CALL ot_diag_read_input(scf_control%diagonalization%ot_settings, scf_section)
426 l_val=scf_control%diagonalization%MOM)
427 IF (scf_control%diagonalization%mom)
THEN
429 i_val=scf_control%diagonalization%mom_type)
432 i_val=scf_control%diagonalization%mom_start)
435 i_vals=scf_control%diagonalization%mom_deoccA)
438 i_vals=scf_control%diagonalization%mom_deoccB)
441 i_vals=scf_control%diagonalization%mom_occA)
444 i_vals=scf_control%diagonalization%mom_occB)
447 i_val=scf_control%diagonalization%mom_proj_formula)
453 i_val=scf_control%diagonalization%max_history)
455 l_val=scf_control%diagonalization%do_oda)
457 l_val=scf_control%diagonalization%adiis_verbose)
461 SELECT CASE (scf_control%roks_scheme)
468 NULLIFY (roks_parameter)
470 IF (
ASSOCIATED(roks_parameter))
THEN
471 scf_control%roks_parameter(2, 2, 1) = roks_parameter(1)
472 scf_control%roks_parameter(2, 2, 2) = roks_parameter(2)
473 scf_control%roks_parameter(1, 1, 1) = roks_parameter(3)
474 scf_control%roks_parameter(1, 1, 2) = roks_parameter(4)
475 scf_control%roks_parameter(0, 0, 1) = roks_parameter(5)
476 scf_control%roks_parameter(0, 0, 2) = roks_parameter(6)
486 cpassert(
ASSOCIATED(added_mos))
487 IF (
SIZE(added_mos) > 0)
THEN
488 scf_control%added_mos_auto(:) = .false.
489 DO i = 1, min(
SIZE(added_mos),
SIZE(scf_control%added_mos))
490 added_mos_string = adjustl(added_mos(i))
492 IF (trim(added_mos_string) ==
"AUTO")
THEN
493 scf_control%added_mos(i) = 0
494 scf_control%added_mos_auto(i) = .true.
497 IF (len_trim(error_message) > 0)
THEN
498 CALL cp_abort(__location__, &
499 "Invalid ADDED_MOS value '"//trim(added_mos(i))// &
500 "'. Use an integer or AUTO.")
502 scf_control%added_mos(i) = added_mos_value
505 IF (
SIZE(added_mos) == 1 .AND. scf_control%added_mos_auto(1))
THEN
506 scf_control%added_mos_auto(2) = .true.
513 IF (scf_control%level_shift /= 0.0_dp) scf_control%use_cholesky = .false.
520 CALL init_smear(scf_control%smear)
521 CALL read_smear_section(scf_control%smear, smear_section)
529 i_val=scf_control%mixing_method)
534 CALL init_gce(scf_control%gce)
535 CALL read_gce_section(scf_control%gce, gce_section)
537 CALL timestop(handle)
545 SUBROUTINE init_smear(smear)
548 cpassert(.NOT.
ASSOCIATED(smear))
550 smear%do_smear = .false.
552 smear%electronic_temperature = 0.0_dp
553 smear%eps_fermi_dirac = 1.0e-5_dp
554 smear%fixed_mag_mom = -100.0_dp
555 smear%window_size = 0.0_dp
556 smear%smearing_width = 0.0_dp
558 END SUBROUTINE init_smear
565 SUBROUTINE read_smear_section(smear, smear_section)
569 REAL(kind=
dp),
DIMENSION(:),
POINTER :: r_vals
574 l_val=smear%do_smear)
575 IF (smear%do_smear)
THEN
579 r_val=smear%electronic_temperature)
581 r_val=smear%eps_fermi_dirac)
583 r_val=smear%window_size)
588 r_val=smear%smearing_width)
593 cpassert(
ASSOCIATED(r_vals))
594 ALLOCATE (smear%list(
SIZE(r_vals)))
598 r_val=smear%fixed_mag_mom)
600 END SUBROUTINE read_smear_section
606 SUBROUTINE init_gce(gce)
609 cpassert(.NOT.
ASSOCIATED(gce))
612 gce%target_workfunction = 0.16_dp
613 gce%prev_workfunction = -1001.0_dp
615 gce%mixing_coef = 0.3_dp
616 END SUBROUTINE init_gce
623 SUBROUTINE read_gce_section(gce, gce_section)
631 r_val=gce%target_workfunction)
633 r_val=gce%mixing_coef)
635 END SUBROUTINE read_gce_section
651 CHARACTER(LEN=*),
PARAMETER :: routinen =
'scf_c_write_parameters'
653 INTEGER :: handle, output_unit, roks_scheme
655 REAL(kind=
dp) :: elec_temp
662 CALL timeset(routinen, handle)
667 NULLIFY (scf_section)
674 IF (output_unit > 0)
THEN
676 IF (scf_control%max_scf > 0)
THEN
683 IF (.NOT. scf_control%non_selfconsistent .OR. scf_control%force_scf_calculation)
THEN
684 WRITE (unit=output_unit, &
685 fmt=
"(/,/,T2,A,T25,A,T51,A30,/,T25,56('-'),3(/,T25,A,T76,I5),/, "// &
686 "T25,56('-'),4(/,T25,A,T72,ES9.2),/,T25,56('-'), "// &
687 "1(/,T25,A,T71,F10.6))") &
689 "Density guess: ", adjustr(trim(
enum_i2c(enum, scf_control%density_guess))), &
690 "max_scf: ", scf_control%max_scf, &
691 "max_scf_history: ", scf_control%max_scf_hist, &
692 "max_diis: ", scf_control%max_diis, &
693 "eps_scf: ", scf_control%eps_scf, &
694 "eps_scf_history: ", scf_control%eps_scf_hist, &
695 "eps_diis: ", scf_control%eps_diis, &
696 "eps_eigval: ", scf_control%eps_eigval, &
697 "level_shift [a.u.]:", scf_control%level_shift
699 IF (scf_control%use_diag)
THEN
702 WRITE (unit=output_unit, fmt=
"(T25,A,T51,A30)") &
703 "SCF update method: ", &
704 adjustr(trim(
enum_i2c(enum, scf_control%diagonalization%update_method)))
706 WRITE (unit=output_unit, fmt=
"(T25,A,T71,I10)") &
707 "ADIIS max history: ", scf_control%diagonalization%max_history
708 WRITE (unit=output_unit, fmt=
"(T25,A,T71,L10)") &
709 "ADIIS optimal damping: ", scf_control%diagonalization%do_oda
714 IF (any(scf_control%added_mos_auto))
THEN
715 WRITE (unit=output_unit, fmt=
"(T25,A,T71,2I5)") &
716 "added MOs (auto) ", scf_control%added_mos
717 ELSE IF (sum(abs(scf_control%added_mos)) > 0)
THEN
718 WRITE (unit=output_unit, fmt=
"(T25,A,T71,2I5)") &
719 "added MOs ", scf_control%added_mos
722 IF (scf_control%diagonalization%mom)
THEN
724 WRITE (unit=output_unit, fmt=
"(T25,A)")
"MOM enabled"
727 IF (scf_control%mixing_method > 0 .AND. .NOT. scf_control%use_ot .AND. &
728 .NOT. scf_control%non_selfconsistent)
THEN
731 WRITE (unit=output_unit, fmt=
"(T25,A,/,T25,A,T51,A30)") &
733 "Mixing method: ", adjustr(trim(
enum_i2c(enum, scf_control%mixing_method)))
734 IF (scf_control%mixing_method > 1)
THEN
735 WRITE (unit=output_unit, fmt=
"(T47,A34)")
"charge density mixing in g-space"
738 IF (scf_control%smear%do_smear)
THEN
741 WRITE (unit=output_unit, fmt=
"(T25,A,/,T25,A,T51,A30)") &
743 "Smear method: ", adjustr(trim(
enum_i2c(enum, scf_control%smear%method)))
744 SELECT CASE (scf_control%smear%method)
748 WRITE (unit=output_unit, fmt=
"(T25,A,T61,F20.1)") &
749 "Electronic temperature [K]:", elec_temp
750 WRITE (unit=output_unit, fmt=
"(T25,A,T71,ES10.2)") &
751 "Electronic temperature [a.u.]:", scf_control%smear%electronic_temperature, &
752 "Accuracy threshold:", scf_control%smear%eps_fermi_dirac
753 IF (scf_control%smear%fixed_mag_mom > 0.0_dp)
WRITE (unit=output_unit, fmt=
"(T25,A,T61,F20.1)") &
754 "Fixed magnetic moment set to:", scf_control%smear%fixed_mag_mom
756 WRITE (unit=output_unit, fmt=
"(T25,A,T71,ES10.2)") &
757 "Smearing width (sigma) [a.u.]:", scf_control%smear%smearing_width, &
758 "Accuracy threshold:", scf_control%smear%eps_fermi_dirac
759 IF (scf_control%smear%fixed_mag_mom > 0.0_dp)
THEN
760 WRITE (unit=output_unit, fmt=
"(T25,A,T61,F20.1)") &
761 "Fixed magnetic moment set to:", scf_control%smear%fixed_mag_mom
764 WRITE (unit=output_unit, fmt=
"(T25,A,T71,F10.6)") &
765 "Smear window [a.u.]: ", scf_control%smear%window_size
769 IF (scf_control%gce%do_gce)
THEN
770 WRITE (unit=output_unit, fmt=
"(T25,A,/,T25,A,T61,F20.1)") &
772 "Target workfunction [eV]:", scf_control%gce%target_workfunction
773 WRITE (unit=output_unit, fmt=
"(T25,A,T61,F20.1)")
"Mixing coefficient:", scf_control%gce%mixing_coef
774 WRITE (unit=output_unit, fmt=
"(T25,A)")
"Grand canonical SCF is activated."
778 IF (roks .AND. (.NOT. scf_control%use_ot))
THEN
783 WRITE (unit=output_unit, fmt=
"(T25,A,/,T25,A,T51,A30)") &
785 "ROKS scheme:", adjustr(trim(
enum_i2c(enum, roks_scheme)))
786 SELECT CASE (roks_scheme)
788 WRITE (unit=output_unit, fmt=
"(T25,A,T71,F10.6)") &
789 "ROKS parameter f:", scf_control%roks_f
791 WRITE (unit=output_unit, &
792 fmt=
"(T25,A,6(/,T25,A,T71,F10.6))") &
793 "ROKS parameters: a)lpha, b)eta; c)losed, o)pen, v)irtual", &
794 "acc", scf_control%roks_parameter(2, 2, 1), &
795 "bcc", scf_control%roks_parameter(2, 2, 2), &
796 "aoo", scf_control%roks_parameter(1, 1, 1), &
797 "boo", scf_control%roks_parameter(1, 1, 2), &
798 "avv", scf_control%roks_parameter(0, 0, 1), &
799 "bvv", scf_control%roks_parameter(0, 0, 2)
804 IF (scf_control%outer_scf%have_scf)
THEN
805 WRITE (output_unit,
"(T25,56('-'),/,T25,A)")
"Outer loop SCF in use "
806 SELECT CASE (scf_control%outer_scf%type)
808 WRITE (output_unit,
'(T25,A)')
"No variables optimised in outer loop"
810 WRITE (output_unit,
'(T25,A)')
"DDAPC constraint enforced"
812 WRITE (output_unit,
'(T25,A)')
"S2 constraint enforced"
814 WRITE (output_unit,
'(T25,A)')
"Floating basis function optimization enforced"
816 cpabort(
"CDFT constraints must be defined in QS&CDFT")
818 cpabort(
"Unknown outer SCF type")
820 WRITE (output_unit,
'(T25,A,T72,ES9.2)')
"eps_scf", scf_control%outer_scf%eps_scf
821 WRITE (output_unit,
'(T25,A,T72,I9)')
"max_scf", scf_control%outer_scf%max_scf
822 SELECT CASE (scf_control%outer_scf%optimizer)
824 WRITE (output_unit,
'(T25,A)')
"No outer loop optimization"
826 WRITE (output_unit,
'(T25,A)')
"Steepest descent optimization"
828 WRITE (output_unit,
'(T25,A)')
"Gradient bisection"
829 WRITE (output_unit,
'(T25,A,T72,I9)')
"bisect_trust_count", scf_control%outer_scf%bisect_trust_count
831 WRITE (output_unit,
'(T25,A)')
"DIIS optimization"
832 WRITE (output_unit,
'(T25,A,T72,I9)')
"DIIS buffer length", &
833 scf_control%outer_scf%diis_buffer_length
836 cpabort(
"Selected optimizer only compatible with CDFT")
838 WRITE (output_unit,
'(T25,A)')
"Optimization with the secant method"
840 cpabort(
"Unknown outer SCF optimizer")
842 WRITE (output_unit,
'(T25,A,T72,ES9.2)')
"step_size", scf_control%outer_scf%step_size
844 WRITE (output_unit,
"(T25,56('-'),/,T25,A)")
"No outer SCF"
852 "PRINT%PROGRAM_RUN_INFO")
854 CALL timestop(handle)
865 SUBROUTINE ot_diag_read_input(settings, scf_section)
869 CHARACTER(len=*),
PARAMETER :: routinen =
'ot_diag_read_input'
871 INTEGER :: handle, output_unit
876 CALL timeset(routinen, handle)
892 "PRINT%PROGRAM_RUN_INFO")
894 CALL timestop(handle)
896 END SUBROUTINE ot_diag_read_input
various routines to log and control the output. The idea is that decisions about where to log should ...
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)
...
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,...
Utility routines to read data from files. Kept as close as possible to the old parser because.
elemental subroutine, public read_integer_object(string, object, error_message)
Returns an integer number read from a string including products of integer numbers like iz1*iz2*iz3.
real(kind=dp) function, public cp_unit_from_cp2k(value, unit_str, defaults, power)
converts from the internal cp2k units to the given unit
Defines the basic variable types.
integer, parameter, public dp
integer, parameter, public default_string_length
An array-based list which grows on demand. When the internal array is full, a new array of twice the ...
parameters that control the outer loop of an SCF iteration
subroutine, public outer_scf_read_parameters(outer_scf, outer_scf_section)
reads the parameters of the outer_scf section into the given outer_scf
Control parameters for optimizers that work with CDFT constraints.
subroutine, public cdft_opt_type_release(cdft_opt_control)
releases the CDFT optimizer control object
subroutine, public qs_ot_settings_init(settings)
sets default values for the settings type
subroutine, public ot_readwrite_input(settings, ot_section, output_unit, complex_kpoints, eigensolver)
...
parameters that control an scf iteration
subroutine, public scf_c_read_parameters(scf_control, inp_section)
reads the parameters of the scf section into the given scf_control
subroutine, public scf_c_release(scf_control)
releases the given scf_control (see cp2k/doc/ReferenceCounting.html)
subroutine, public scf_c_write_parameters(scf_control, dft_section)
writes out the scf parameters
subroutine, public scf_c_create(scf_control)
allocates and initializes an scf control object with the default values
Utilities for string manipulations.
elemental subroutine, public uppercase(string)
Convert all lower case characters in a string to upper case.
type of a logger, at the moment it contains just a print level starting at which level it should be l...
contains the parameters needed by a scf run
notice, this variable needs to be copyable, needed for spins as e.g. in qs_ot_scf
contains the parameters needed by a scf run