Skip to content

Commit

Permalink
fix small issue: (i) print already done in anoter subroutine, (ii) pr…
Browse files Browse the repository at this point in the history
…int the actual occupation of the mos during rtp
  • Loading branch information
glb96 authored and oschuett committed Jan 16, 2023
1 parent 6769890 commit b578666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/emd/rt_propagation_output.F
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ SUBROUTINE rt_prop_output(qs_env, run_type, delta_iter, used_time)
END IF
IF (.NOT. dft_control%qs_control%dftb) THEN
!Not sure if these things could also work with dftb or not
CALL write_mo_free_results(qs_env)
IF (BTEST(cp_print_key_should_output(logger%iter_info, &
dft_section, "REAL_TIME_PROPAGATION%PRINT%CURRENT"), cp_p_file)) THEN
DO spin = 1, SIZE(rho_new)/2
Expand Down
2 changes: 2 additions & 0 deletions src/emd/rt_propagation_utils.F
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ SUBROUTINE write_rtp_mos_to_output_unit(qs_env, rtp)
spin = ""
END IF

mo_set_rtp%occupation_numbers = mos(ispin)%occupation_numbers

!loop for real (odd) and imaginary (even) parts
DO i = 1, 0, -1
CALL cp_fm_to_fm(mos_new(2*ispin - i), mo_set_rtp%mo_coeff)
Expand Down

0 comments on commit b578666

Please sign in to comment.