Skip to content

Move coordination number to mctc-lib#283

Merged
marvinfriede merged 13 commits intodftd4:mainfrom
thfroitzheim:ncoord
Apr 11, 2025
Merged

Move coordination number to mctc-lib#283
marvinfriede merged 13 commits intodftd4:mainfrom
thfroitzheim:ncoord

Conversation

@thfroitzheim
Copy link
Copy Markdown
Contributor

PR to move the coordination number to the mctc-lib (see PR #71 there). This avoids duplicated code in all our projects and makes the addition of new coordination numbers simpler. The full functionality and all tests were moved to mctc-lib.

This PR starts as a draft pointing to the mctc-lib branch until it is merged.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 17, 2025

Codecov Report

Attention: Patch coverage is 42.26190% with 97 lines in your changes missing coverage. Please review.

Project coverage is 56.78%. Comparing base (6cb449a) to head (50764b5).
Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
test/unit/test_model.f90 45.80% 30 Missing and 41 partials ⚠️
src/dftd4/ncoord.f90 33.33% 4 Missing and 6 partials ⚠️
src/dftd4/charge.f90 20.00% 4 Missing and 4 partials ⚠️
test/api/example.c 33.33% 4 Missing and 4 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #283       +/-   ##
===========================================
+ Coverage   41.13%   56.78%   +15.64%     
===========================================
  Files          33       50       +17     
  Lines        2966     4357     +1391     
  Branches     1347     1590      +243     
===========================================
+ Hits         1220     2474     +1254     
+ Misses       1005      846      -159     
- Partials      741     1037      +296     

☔ 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.

@thfroitzheim
Copy link
Copy Markdown
Contributor Author

This should now be ready. I added back the routines for the API and expanded the testing a bit to improve the coverage.

@thfroitzheim thfroitzheim marked this pull request as ready for review March 31, 2025 09:32
Copy link
Copy Markdown
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

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

Looks good to me now.

Let's merge this once we have a new mctc-lib release which we can refer to. I would prefer to not merge this with depending on the latest git commit.

@marvinfriede marvinfriede merged commit 2596f98 into dftd4:main Apr 11, 2025
44 checks passed
@thfroitzheim thfroitzheim deleted the ncoord branch April 11, 2025 11:18
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