Skip to content
Snippets Groups Projects
Commit 4228e442 authored by Rudolf Zeller's avatar Rudolf Zeller
Browse files

Implementation of updating the semi-core normalization in the self-consistency steps

parent b1a4e97e
No related branches found
No related tags found
No related merge requests found
......@@ -451,6 +451,7 @@ module ProcessKKRresults_mod
double precision :: chrgNt_local
double precision :: new_fermi
double precision :: CHRGSEMICORE !< total semicore charge over all atoms
double precision :: fsemicore_in
integer :: ila, r1fu
integer :: num_local_atoms
......@@ -659,7 +660,12 @@ module ProcessKKRresults_mod
! --> Sum up semicore charges from different MPI ranks
call sumChargeSemi_com(CHRGSEMICORE, mp%mySEComm)
! --> Recalculate the semicore contour factor FSEMICORE
if (mp%isMasterRank) call calcFactorSemi(CHRGSEMICORE, emesh%FSEMICORE, params%fsemicore)
if(iter==1) then
fsemicore_in = params%fsemicore
else
fsemicore_in = emesh%FSEMICORE
endif
if (mp%isMasterRank) call calcFactorSemi(CHRGSEMICORE, emesh%FSEMICORE, fsemicore_in)
endif
emesh%E2 = new_fermi ! Assumes that for every atom the same Fermi correction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment