Skip to content

Commit

Permalink
Fix segfaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederick Stein authored and fstein93 committed Jan 19, 2023
1 parent cb4512d commit 10ddac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/qs_scf_post_gpw.F
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ SUBROUTINE scf_post_calculation_gpw(qs_env, wf_type, do_mp2)
IF (do_kpoints) THEN
CPWARN("STM not implemented for k-point calculations!")
ELSE
NULLIFY (unoccupied_orbs_stm, unoccupied_evals_stm)
IF (nlumo_stm > 0) THEN
ALLOCATE (unoccupied_orbs_stm(dft_control%nspins))
ALLOCATE (unoccupied_evals_stm(dft_control%nspins))
Expand Down
1 change: 1 addition & 0 deletions src/qs_scf_post_tb.F
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ SUBROUTINE scf_post_calculation_tb(qs_env, tb_type, no_mos)
homo_lumo(ispin, 1) = mo_eigenvalues(homo)
END DO
has_homo = .TRUE.
NULLIFY (unoccupied_orbs_stm, unoccupied_evals_stm)
IF (nlumo_stm > 0) THEN
ALLOCATE (unoccupied_orbs_stm(dft_control%nspins))
ALLOCATE (unoccupied_evals_stm(dft_control%nspins))
Expand Down

0 comments on commit 10ddac4

Please sign in to comment.