Skip to content

Commit

Permalink
Remove __SIRIUS conditional code
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaillefumier authored and mkrack committed Sep 19, 2022
1 parent 86aeba6 commit 80f9abb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
27 changes: 12 additions & 15 deletions src/input_cp2k_subsys.F
Original file line number Diff line number Diff line change
Expand Up @@ -2246,7 +2246,6 @@ SUBROUTINE create_dft_plus_u_section(section)
n_keywords=3, &
n_subsections=1, &
repeats=.FALSE.)

NULLIFY (keyword)

CALL keyword_create(keyword, __LOCATION__, &
Expand All @@ -2270,19 +2269,6 @@ SUBROUTINE create_dft_plus_u_section(section)
CALL section_add_keyword(section, keyword)
CALL keyword_release(keyword)

#if defined(__SIRIUS)
CALL keyword_create(keyword, __LOCATION__, &
name="N", &
description="principal quantum number of the"// &
"orbitals to which the correction is applied. Ignored unless pwdft is used for the calculations", &
repeats=.FALSE., &
n_var=1, &
type_of_var=integer_t, &
default_i_val=-1, &
usage="N 2")
CALL section_add_keyword(section, keyword)
CALL keyword_release(keyword)

CALL keyword_create(keyword, __LOCATION__, &
name="U_MINUS_J", &
variants=(/"U_EFF"/), &
Expand All @@ -2296,6 +2282,18 @@ SUBROUTINE create_dft_plus_u_section(section)
CALL section_add_keyword(section, keyword)
CALL keyword_release(keyword)

CALL keyword_create(keyword, __LOCATION__, &
name="N", &
description="principal quantum number of the"// &
"orbitals to which the correction is applied. Ignored unless pwdft is used for the calculations", &
repeats=.FALSE., &
n_var=1, &
type_of_var=integer_t, &
default_i_val=-1, &
usage="N 2")
CALL section_add_keyword(section, keyword)
CALL keyword_release(keyword)

CALL keyword_create(keyword, __LOCATION__, &
name="U", &
description="U parameter in the theory of Dudarev et al. Ignored unless pwdft is used", &
Expand Down Expand Up @@ -2366,7 +2364,6 @@ SUBROUTINE create_dft_plus_u_section(section)
usage="occupation 6")
CALL section_add_keyword(section, keyword)
CALL keyword_release(keyword)
#endif

CALL keyword_create(keyword, __LOCATION__, &
name="U_RAMPING", &
Expand Down
2 changes: 2 additions & 0 deletions src/qs_kind_types.F
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,8 @@ SUBROUTINE read_qs_kind(qs_kind, kind_section, para_env, force_env_section, no_f
CALL section_vals_val_get(dft_plus_u_section, &
keyword_name="occupation", &
r_val=qs_kind%dft_plus_u%occupation)
#else
nu = 0;
#endif
CALL section_vals_val_get(dft_plus_u_section, &
Expand Down

0 comments on commit 80f9abb

Please sign in to comment.