Skip to content

Commit

Permalink
embed input
Browse files Browse the repository at this point in the history
  • Loading branch information
rybkinjr committed Feb 27, 2019
1 parent 467917b commit 462e007
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/embed_types.F
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ MODULE embed_types
LOGICAL :: accept_step, newton_step, level_shift, steep_desc, &
add_const_pot, converged, read_embed_pot, &
read_embed_pot_cube, change_spin, open_shell_embed, &
grid_opt
grid_opt, leeuwen
INTEGER, ALLOCATABLE, DIMENSION(:) :: all_nspins
TYPE(lri_kind_type), DIMENSION(:), POINTER :: lri ! Needed to store integrals

Expand Down
10 changes: 9 additions & 1 deletion src/input_cp2k_dft.F
Original file line number Diff line number Diff line change
Expand Up @@ -5990,7 +5990,7 @@ SUBROUTINE create_optimize_embed(section)
CPASSERT(.NOT. ASSOCIATED(section))
CALL section_create(section, name="OPT_EMBED", &
description="This section specifies optional parameters for DFT embedding potential optimization.", &
n_keywords=15, n_subsections=4, repeats=.FALSE.)
n_keywords=16, n_subsections=4, repeats=.FALSE.)

NULLIFY (keyword)

Expand Down Expand Up @@ -6060,6 +6060,14 @@ SUBROUTINE create_optimize_embed(section)
CALL section_add_keyword(section, keyword)
CALL keyword_release(keyword)

CALL keyword_create(keyword, name="LEEUWEN-BAERENDS", &
description="Van Leeuwen-Baerends iterative update. Alternative to Wu-Yang "// &
"optimizer. Use only with ADD_CONTST_POT.", &
usage="LEEUWEN-BAERENDS .TRUE.", &
default_l_val=.FALSE.)
CALL section_add_keyword(section, keyword)

CALL keyword_release(keyword)
CALL keyword_create(keyword, name="ADD_CONST_POT", &
description="Apply level shift in the "// &
"optimization of the embedding potential.", &
Expand Down

0 comments on commit 462e007

Please sign in to comment.