Conversation
Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
|
@copilot Skala only support D3(BJ) and not other D3 variants. |
Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #163 +/- ##
==========================================
- Coverage 66.34% 66.32% -0.03%
==========================================
Files 33 33
Lines 4627 4632 +5
Branches 1608 1612 +4
==========================================
+ Hits 3070 3072 +2
- Misses 637 638 +1
- Partials 920 922 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds support for the Skala functional to the DFT-D3 parameter stack (primarily D3(BJ)), including parameter lookup, DOI plumbing, and test coverage.
Changes:
- Introduce a new Skala method ID and map
"skala"to D3(BJ) rational damping parameters. - Add a Skala DOI constant and include Skala parameter + citation entries in the TOML parameter database.
- Extend unit tests to include
"skala"in the D3(BJ) and D3(BJ)-ATM test method lists.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/dftd3/param.f90 |
Adds p_skala_df, "skala" mapping, and a dedicated D3(BJ) parameter case using doi_skala. |
src/dftd3/citation.f90 |
Adds doi_skala constant to the citation module’s exported DOI list. |
assets/parameters.toml |
Adds [parameter.skala] D3(BJ) entry and a new Skala citation record keyed by the arXiv DOI. |
test/unit/test_param.f90 |
Includes "skala" in BJ and BJ-ATM unit test method lists with corresponding reference energies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
|
@copilot specify skala with version number, i.e. skala-1.0 instead of just skala as future versions might differ in D3 settings. |
…hod_id Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Renamed to |
Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
…etuptools<78 Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
…urces removal Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
Adds DFT-D3(BJ) dispersion correction support for the Skala-1.0 functional (same parameters as B3LYP) and fixes a Python build failure caused by a stale setuptools version constraint.
Skala-1.0 functional support
p_skala_dfmethod ID withcase("skala1.0")mapping (hyphens stripped byget_method_id)10.48550/arXiv.2506.14665) with full 25-author citation in bothcitation.f90andparameters.toml[parameter."skala-1.0"]to avoid subtable interpretationBug fix:
get_method_iduninitialized variableInitialize
lc_methodto blanks before the hyphen-stripping loop. Without this, method names containing hyphens (likeskala-1.0) leave uninitialized trailing characters that breaktrim()and string comparison.Python: replace deprecated
pkg_resourcesimporttest_library.pyusedpkg_resources.parse_versionwhich was removed in setuptools 78+. Replaced withpackaging.version.Version:Python: remove setuptools version constraint
The
setuptools<78build-system constraint was added for the now-removedpkg_resourcesusage and was failing CI. Removed the cap — setuptools is still required (cffi'sdistutils_extension()returns asetuptools.Extension) but no longer needs a version ceiling.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.