Skip to content

Initialize private arrays with zero#81

Merged
thfroitzheim merged 2 commits intogrimme-lab:mainfrom
thfroitzheim:fix-omp
Apr 3, 2025
Merged

Initialize private arrays with zero#81
thfroitzheim merged 2 commits intogrimme-lab:mainfrom
thfroitzheim:fix-omp

Conversation

@thfroitzheim
Copy link
Copy Markdown
Member

In add_coordination_number_derivs the gradient and sigma can contain entries from previous contributions (inout instead of out). Thus, we cannot use them to allocate the private arrays. I added a test to catch errors like this in the future.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2025

Codecov Report

Attention: Patch coverage is 44.44444% with 15 lines in your changes missing coverage. Please review.

Project coverage is 68.63%. Comparing base (77f65c6) to head (4627714).
Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
test/test_ncoord.f90 48.00% 4 Missing and 9 partials ⚠️
src/mctc/ncoord/type.f90 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
- Coverage   69.79%   68.63%   -1.17%     
==========================================
  Files          64       79      +15     
  Lines        8618    10099    +1481     
  Branches     2579     3261     +682     
==========================================
+ Hits         6015     6931     +916     
- Misses        782      844      +62     
- Partials     1821     2324     +503     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-authored-by: Marvin Friede <51965259+marvinfriede@users.noreply.github.com>
@thfroitzheim thfroitzheim merged commit ee1fe51 into grimme-lab:main Apr 3, 2025
9 checks passed
@thfroitzheim thfroitzheim deleted the fix-omp branch April 3, 2025 11:06
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