Skip to content

Commit

Permalink
Stop calculation if nl-vdW functionals are requested for Energy Corre…
Browse files Browse the repository at this point in the history
…ction (#3278)
  • Loading branch information
juerghutter committed Feb 22, 2024
1 parent 47690d8 commit 9fa292d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ec_environment.F
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ SUBROUTINE init_ec_env(qs_env, ec_env, dft_section, ec_section)
pp_section => section_vals_get_subs_vals(xc_section, "VDW_POTENTIAL%PAIR_POTENTIAL")
CALL qs_dispersion_pairpot_init(atomic_kind_set, qs_kind_set, dispersion_env, pp_section, para_env)
ELSE IF (dispersion_env%type == xc_vdw_fun_nonloc) THEN
CPABORT("nl-vdW functionals not available for EC calculations")
NULLIFY (nl_section)
nl_section => section_vals_get_subs_vals(xc_section, "VDW_POTENTIAL%NON_LOCAL")
CALL qs_dispersion_nonloc_init(dispersion_env, para_env)
Expand Down

0 comments on commit 9fa292d

Please sign in to comment.