Skip to content

Conversation

@MGraml
Copy link
Contributor

@MGraml MGraml commented Mar 7, 2024

Added Bethe Salpeter on top of GW for the calculation of electronic excitations in molecules.

MGraml added 2 commits March 7, 2024 18:13
Added Bethe Salpeter on top of GW for the calculation of electronic excitations in molecules.
WRITE (unit_nr, *) "z_space_energy_cutoff", z_space_energy_cutoff
END IF

!MG to del
Copy link
Contributor

@fstein93 fstein93 Mar 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this debug code and similar code below

WRITE (unit_nr, *) "MG: Resetting dimension in i_iter=", i_iter
END IF
IF (unit_nr > 0) THEN
OPEN (10, file=res_filename, status="old", access="sequential", position="append")
Copy link
Contributor

@fstein93 fstein93 Mar 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ask CP2K for a unit number (close_file/open_file/get_unit_number from the module "cp_files") or use the provide ones (default_input_unit/default_output_unit from the module "machine")

src/bse_util.F Outdated
DO i = 1, nrow_local
DO j = 1, ncol_local
IF (ABS(fm%local_data(i, j)) > thresh) THEN
WRITE (*, "(A7,T10,I5,T20,I5,T30,F13.5)") header, row_indices(i), col_indices(j), &
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add suitable unit numbers

lone_keyword_l_val=.TRUE.)
CALL section_add_keyword(section, keyword)
CALL keyword_release(keyword)
! CALL keyword_create(keyword, __LOCATION__, name="BSE", &
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you have a keyword and a section? Remove it if it is obsolete and not expected to be reused.

Copy link
Contributor

@fstein93 fstein93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have left a few formal comments. The CI will complain about most of them anyways.

@MGraml
Copy link
Contributor Author

MGraml commented Mar 8, 2024

Thank you for the review! I incorporated all your comments in the new commit.

@fstein93
Copy link
Contributor

fstein93 commented Mar 8, 2024

There is still the write statement from bse_util.F left.

@fstein93 fstein93 merged commit 6a30819 into cp2k:master Mar 8, 2024
@oschuett oschuett mentioned this pull request Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants