Skip to content

Resonant Inelastic X-ray Spectroscopy (RIXS) Module#4315

Merged
oschuett merged 19 commits intocp2k:masterfrom
BelizSertcan:rixs
Jul 22, 2025
Merged

Resonant Inelastic X-ray Spectroscopy (RIXS) Module#4315
oschuett merged 19 commits intocp2k:masterfrom
BelizSertcan:rixs

Conversation

@BelizSertcan
Copy link
Member

This pull request introduces a new module for Resonant Inelastic X-ray Spectroscopy (RIXS), built upon the existing xas_tdp and tddft modules. The implementation follows the theoretical framework described in Vaz da Cruz et al.

Upcoming work will include extension to roks/uks.

@BelizSertcan BelizSertcan requested a review from marci73 July 18, 2025 15:41
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 made some specific comments.
I personally try to reduce the use of POINTERs in Fortran if it is easily possible (less memory leaks, less worries about incorrectly setup pointers, ...). Furthermore, you could also think of dropping the POINTER attributes of your types and allocate them outside their routines such that the creation/release routines are only concerned with the actual basic setup/release of the components of the types.

@BelizSertcan
Copy link
Member Author

i don't understand what is causing the mem leak @oschuett @fstein93

@BelizSertcan BelizSertcan marked this pull request as ready for review July 22, 2025 08:14
@fstein93
Copy link
Contributor

I compiled an sdbg myself and found the same leaks. I attach the output of one test
CO-PBE0.inp.log

@oschuett
Copy link
Member

@BelizSertcan, did the log that Frederick posted put you on the right track? I know that hunting memory leaks of reference-counted objects can be quite tedious.

@BelizSertcan
Copy link
Member Author

@BelizSertcan, did the log that Frederick posted put you on the right track? I know that hunting memory leaks of reference-counted objects can be quite tedious.

It took me some time to figure the problem was coming from mo_coeff, I also had some help from Augustin. It should be fixed now.

@oschuett oschuett merged commit bf603df into cp2k:master Jul 22, 2025
42 checks passed
@BelizSertcan BelizSertcan deleted the rixs branch July 22, 2025 16:02
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.

3 participants