Skip to content

Commit

Permalink
Merge pull request #933 from edoapra/flaccid-fraction
Browse files Browse the repository at this point in the history
fix for #931
  • Loading branch information
nwchemgit authored Jan 15, 2024
2 parents 45332c4 + 60f5d95 commit 2d9f8e6
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/nwdft/input_dft/dft_rdinput.F
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Subroutine dft_rdinput(rtdb)
External int_normalize
External int_norm_2c
External atom_tag_check
logical status
logical status,exact_2c
c
me=ga_nodeid()
c
Expand Down Expand Up @@ -1116,7 +1116,21 @@ Subroutine dft_rdinput(rtdb)
c
if (.not. bas_create(CD_bas_han, 'cd basis'))
& call errquit(pname//'bas_create?',102, BASIS_ERR)
CDFIT=bas_rtdb_load(rtdb, geom, CD_bas_han, 'cd basis')
cdfit=bas_rtdb_load(rtdb, geom, CD_bas_han, 'cd basis')
c
c cdfit and x2c are not compatible
c
if (.not. rtdb_get(rtdb,'x2c',mt_log,1,exact_2c))
& exact_2c = .false.
if(exact_2c.and.cdfit) then
if(ga_nodeid().eq.0) then
write(LuOut,*)
write(LuOut,*) 'WARNING: CD fitting disabled'
write(LuOut,*) ' when x2c is used'
write(LuOut,*)
cdfit=.false.
endif
endif
c
c if adft && cdfit bas not provided, try to load
c def2-universal-jfit
Expand Down

0 comments on commit 2d9f8e6

Please sign in to comment.