Skip to content

Conversation

@hfp
Copy link
Member

@hfp hfp commented Oct 29, 2025

  • Not actually necessary (modern Fortran).

- Not actually necessary (modern Fortran).
@alazzaro
Copy link
Member

yes, allocatable variables are released when they go out of the scope... so why this change is needed?

@hfp
Copy link
Member Author

hfp commented Oct 29, 2025

I had it around for long time and it is now only for consistency like every ALLOCATE get DEALLOCATE. Originally, I wanted to reduce the number of allocated arrays, but code looked to bad when lumping arrays together. What remains (beside of consistency), is deallocation happens likely earlier given automatic cleanup is "at the end of the subroutine".

@alazzaro
Copy link
Member

LGTM. better verbose...

@hfp hfp merged commit 9ed226c into cp2k:develop Oct 29, 2025
20 of 24 checks passed
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