mirror of https://gitlab.com/QEF/q-e.git
XClib - dft name small fixes
This commit is contained in:
parent
50ff8c125c
commit
c7a33fc0c4
|
@ -120,10 +120,10 @@ CONTAINS
|
|||
imeta = matching( dftout, nmeta, dft_MGGA_name )
|
||||
imetac = 0
|
||||
!
|
||||
CALL matching_shortIDs( dftout )
|
||||
!
|
||||
ENDIF
|
||||
!
|
||||
IF (.NOT. dft_defined) CALL matching_shortIDs( dftout )
|
||||
!
|
||||
! Back compatibility - TO BE REMOVED
|
||||
!
|
||||
IF (igcx == 14) igcx = 3 ! PBE -> PBX
|
||||
|
@ -334,12 +334,12 @@ CONTAINS
|
|||
TYPE(xc_f03_func_info_t) :: xc_info
|
||||
#endif
|
||||
!
|
||||
IF ( matches('_x_', TRIM(dft_)) .OR. matches('_c_', TRIM(dft_)) .OR. &
|
||||
matches('_k_', TRIM(dft_)) .OR. matches('_xc_', TRIM(dft_)) ) &
|
||||
IF ( matches('_X_', TRIM(dft_)) .OR. matches('_C_', TRIM(dft_)) .OR. &
|
||||
matches('_K_', TRIM(dft_)) .OR. matches('_XC_', TRIM(dft_)) ) &
|
||||
CALL xclib_error( 'matching_shortIDs', 'It looks like one or more Libxc names &
|
||||
&have been put as input, but since v7.0 the index notation only&
|
||||
& is allowed. Check the QE user guide or the comments in this &
|
||||
&routine.', 0 )
|
||||
&routine.', 1 )
|
||||
!
|
||||
IF ( dft_(1:3) /= 'XC-' ) RETURN
|
||||
!
|
||||
|
@ -446,10 +446,11 @@ CONTAINS
|
|||
CALL xclib_error( 'matching_shortIDs', 'a Libxc functional of a kind not &
|
||||
&usable in QE has been found.', 2 )
|
||||
!
|
||||
IF ( (is_libxc(3).AND.iexch/=0) .OR. (is_libxc(4).AND. icorr/=0) ) &
|
||||
CALL xclib_infomsg( 'matching_shortIDs', 'WARNING: an LDA functional has bee&
|
||||
&n found, but Libxc GGA functionals already include t&
|
||||
&he LDA term.' )
|
||||
IF ( ((is_libxc(3).AND.iexch/=0) .OR. (is_libxc(4).AND. icorr/=0)) .OR. &
|
||||
((is_libxc(5).AND.iexch+igcx/=0) .OR. (is_libxc(6).AND. icorr+igcc/=0)) ) &
|
||||
CALL xclib_infomsg( 'matching_shortIDs', 'WARNING: an LDA/GGA functional has been&
|
||||
& found, but Libxc GGA/mGGA functionals already include &
|
||||
&the LDA/GGA terms.' )
|
||||
!
|
||||
#endif
|
||||
!
|
||||
|
|
|
@ -23,7 +23,6 @@ PROGRAM xc_infos
|
|||
gau_parameter
|
||||
USE xclib_utils_and_para, ONLY: stdout, nowarning
|
||||
#if defined(__LIBXC)
|
||||
#include "xc_version.h"
|
||||
USE xc_f03_lib_m
|
||||
USE dft_setting_params, ONLY: xc_info, xc_kind_error, n_ext_params, &
|
||||
par_list, libxc_flags
|
||||
|
@ -36,13 +35,6 @@ PROGRAM xc_infos
|
|||
CHARACTER(LEN=10) :: dft_n
|
||||
INTEGER :: n_ext, id(6), idfull
|
||||
INTEGER :: i, ii
|
||||
#if defined(__LIBXC)
|
||||
#if (XC_MAJOR_VERSION>5)
|
||||
!workaround to keep compatibility with libxc develop version
|
||||
INTEGER, PARAMETER :: XC_FAMILY_HYB_GGA = -10
|
||||
INTEGER, PARAMETER :: XC_FAMILY_HYB_MGGA = -11
|
||||
#endif
|
||||
#endif
|
||||
!
|
||||
!-------- Input var -----------------------
|
||||
CHARACTER(LEN=80) :: dft
|
||||
|
|
Loading…
Reference in New Issue