Repository navigation
Eric boittier/metatomic capi update - #1510
Draft
EricBoittier wants to merge 3 commits into
Draft
EricBoittier wants to merge 3 commits into
EricBoittier wants to merge 3 commits into
Conversation
Add the --enable-libmetatomic-core configure option, which probes the metatomic-core C++ API (metatomic::load_model / metatomic::execute_model) and links libmetatomic and libmetatensor without requiring libtorch. It defines __PLUMED_HAS_LIBMETATOMIC_CORE and the libmetatomic_core config key. Add regtest/metatomic/rt-core, a two-atom distance model written as a metatomic.NumpyModel Python script and loaded through metatomic's Python plugin, with explicit positions and strain gradients. The second frame crosses the periodic boundary. Document plugin models in the METATOMIC action and the module page, recommending Python NumpyModel scripts and linking PLUMED against the libmetatomic shipped in the metatomic-core Python package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EricBoittier
marked this pull request as draft
October 15, 2026 13:30
| } // namespace metatomic | ||
| } // namespace PLMD | ||
|
|
||
| #endif |
| } // namespace metatomic | ||
| } // namespace PLMD | ||
|
|
||
| #endif |
| reinterpret_cast<const double (*)[3]>(&cell(0, 0)), | ||
| periodic.data(), | ||
| {vesin::VesinCPU, 0}, | ||
| options, |
carlocamilloni
marked this pull request as ready for review
October 15, 2026 16:52
carlocamilloni
marked this pull request as draft
October 15, 2026 16:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Target release
I would like my code to appear in release XXXXX
Type of contribution
Copyright
COPYRIGHTfile with the correct license information. Code should be released under an open source license. I also used the commandcd src && ./header.sh mymodulenamein order to make sure the headers of the module are correct.Tests