--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/04c2649f-9a63-4d7a-ba69-295901a7482en%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/674eb227-d64e-4b6e-bd40-c83fe4d8e11an%40googlegroups.com.
Dear Anna,
Thank you very much for your reply! Recently, I calculated the structure of excited states for my system. Because of the large system, I used the PBE functional instead of the hybrid functional. But I found excited stated forces reach the maximun number of iterations, did't converge. I want to konw how to increase the the maximun number of iterations (default : 100)?
the inp file、out file and xyz file have been attatced.
92 PCG F 0.13E-01 0.0000000422 1245.73
93 PCG F 0.39E-01 0.0000000362 1259.35
94 PCG F 0.37E-01 0.0000000446 1272.88
95 PCG F 0.24E-01 0.0000000310 1286.32
96 PCG F 0.47E-01 0.0000000218 1299.98
97 PCG F 0.44E-01 0.0000000422 1313.46
98 PCG F 0.11E-01 0.0000000248 1327.00
99 PCG F 0.40E-01 0.0000000205 1340.44
100 PCG F 0.23E-01 0.0000000206 1353.98
The linear solver didn't converge! Maximum number of iterations reached.
DEBUG:: Pz*dT 0.02698408 0.01755403 0.08408835
DEBUG:: Pz*dHppl -0.00172389 -0.00192144 -0.00758440
DEBUG:: Pz*dHppnl 0.00203508 0.00898434 0.03836144
DEBUG:: Force Pz*dHcore 0.02729528 0.02461693 0.11486539
DEBUG:: Pz*dVhxc -0.05201569 -0.05475358 -0.22575630
DEBUG:: Vh(rhoz)*dncore -0.08077092 -0.03255382 -0.27401921
DEBUG:: Pin*dK*rhoz 0.09644318 0.04774496 0.32286211
DEBUG:: Force Pin*V(rhoz) -0.03634344 -0.03956245 -0.17691341
DEBUG:: Wz*dS -0.00842473 0.00079797 -0.00826806
DEBUG:: Response Force -0.01747288 -0.01414755 -0.07031609
DEBUG:: Total Force -0.01747288 -0.01414755 -0.07031609
Best regards
Yan Huang
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/ad1dd997-c301-4866-979e-93a41e699d98n%40googlegroups.com.
Dear Anna,
Thank you very much for your reply! I have been added the MAX_ITER keyword (default : 50) in the LINRES section and set the value 300. But it didn't change the maximun number of excited stated forces iterations.
&PROPERTIESBest regards
Yan Huang
NULLIFY (linres_section)
linres_section => section_vals_get_subs_vals(qs_env%input,"PROPERTIES%LINRES")
CALL response_equation(qs_env, p_env,ex_env%cpmos,unit_nr,lr_section=linres_section)
TYPE(section_vals_type), POINTER :: linres_section
You can also use my branch maxiter which I just generated and download it from GitHub.
However, I would also consider modifying your settings. As far as I know, CENTER_COORDINATES should be used in combination with molecules and not periodic systems. Also you could maybe check convergence of grids for your system etc.
I hope this helps, again please excuse the inconvenience and let me know if I can help with any further questions.
Best reagrds
Anna
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/be5b6b75-f714-46db-b23d-74e1337e7c9dn%40googlegroups.com.
Dear Anna,
Thank you very much for your reply! I have been added the following 3 lines in src/excited_states.F instead of the already existing line 115:
IF (dft_control%qs_control%semi_empirical) THEN
NULLIFY (linres_section)
linres_section => section_vals_get_subs_vals(qs_env%input,"PROPERTIES%LINRES")
CALL response_equation(qs_env, p_env,ex_env%cpmos,unit_nr,lr_section=linres_section)
ELSEIF (dft_control%qs_control%dftb) THEN
also initializing the variable at the beginning of excited_state_energy subroutine:
TYPE(qs_p_env_type), POINTER :: p_env
TYPE(section_vals_type), POINTER :: linres_section
Best regards
Yan Huang
index f06157953..581a029d1 100644
--- a/src/excited_states.F
+++ b/src/excited_states.F
@@ -34,6 +34,8 @@ MODULE excited_states
USE response_solver, ONLY: response_equation,&
response_force,&
response_force_xtb
+ USE input_section_types, ONLY: section_vals_get_subs_vals,&
+ section_vals_type
#include "./base/base_uses.f90"
IMPLICIT NONE
@@ -75,6 +77,7 @@ CONTAINS
TYPE(qs_energy_type), POINTER :: energy
TYPE(qs_force_type), DIMENSION(:), POINTER :: ks_force, lr_force
TYPE(qs_p_env_type) :: p_env
+ TYPE(section_vals_type), POINTER :: linres_section
CALL timeset(routineN, handle)
@@ -107,7 +110,9 @@ CONTAINS
CALL zero_qs_force(lr_force)
CALL set_qs_env(qs_env, force=lr_force)
!
- CALL response_equation(qs_env, p_env, ex_env%cpmos, unit_nr)
+ NULLIFY (linres_section)
+ linres_section => section_vals_get_subs_vals(qs_env%input,"PROPERTIES%LINRES")
+ CALL response_equation(qs_env, p_env,ex_env%cpmos,unit_nr,lr_section=linres_section)
!
CALL get_qs_env(qs_env, dft_control=dft_control)
IF (dft_control%qs_control%semi_empirical) THEN
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/89aa80af-d8ac-48f1-9bdc-dfd1c57c89a6n%40googlegroups.com.
Best regards
Yan Huang