Skip to content

Commit

Permalink
[fix] initial self-energy from dc for magnetic calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hampel committed Aug 2, 2024
1 parent 68b9c18 commit 74f4915
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/solid_dmft/dmft_tools/initial_self_energies.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,9 @@ def determine_dc_and_initial_sigma(general_params, gw_params, advanced_params, s
# if magmom positive the up channel will be favored
for spin_channel in sum_k.gf_struct_solver[icrsh].keys():
if 'up' in spin_channel:
start_sigma[icrsh][spin_channel] << -fac + dc_pot[spin_channel]
start_sigma[icrsh][spin_channel] << -np.eye(dc_pot[spin_channel].shape[0])*fac + dc_pot[spin_channel]
else:
start_sigma[icrsh][spin_channel] << fac + dc_pot[spin_channel]
start_sigma[icrsh][spin_channel] << np.eye(dc_pot[spin_channel].shape[0])*fac + dc_pot[spin_channel]
else:
for spin_channel in sum_k.gf_struct_solver[icrsh].keys():
start_sigma[icrsh][spin_channel] << dc_pot[spin_channel]
Expand Down

0 comments on commit 74f4915

Please sign in to comment.