Skip to content

Add asserts after malloc and realloc in DBM and grid code#3706

Merged
oschuett merged 2 commits intocp2k:masterfrom
oschuett:current5
Oct 2, 2024
Merged

Add asserts after malloc and realloc in DBM and grid code#3706
oschuett merged 2 commits intocp2k:masterfrom
oschuett:current5

Conversation

@oschuett
Copy link
Member

@oschuett oschuett commented Oct 2, 2024

This will cleanly catch any out-of-memory errors instead of leading to confusing seg-faults down the line.

@oschuett oschuett merged commit 8f7c1fd into cp2k:master Oct 2, 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.

1 participant