Skip to content

Implement System in metatomic-core#246

Merged
Luthaf merged 1 commit into
metatomic-corefrom
metatomic-core-system
Jun 3, 2026
Merged

Implement System in metatomic-core#246
Luthaf merged 1 commit into
metatomic-corefrom
metatomic-core-system

Conversation

@frostedoyster
Copy link
Copy Markdown
Contributor

@frostedoyster frostedoyster commented May 30, 2026

This PR implements SystemCore in metatomic-core. Since the arrays are DLPack (meaning we have no indexing or operations), checks on the arrays are left to the wrapping classes. Checks on the keys of the two extra data and neighbor list maps are still performed [note that, for now, duplicate keys are rejected in both cases]. A separate public System class exposes systems to Rust users

EDIT: System is now gone and SystemCore is renamed to System, we're not going to offer a wrapper for usage in Rust

Contributor (creator of pull-request) checklist

  • Tests updated (for new features and bugfixes)?
  • Documentation updated (for new features)?
  • Issue referenced (for PRs that solve an issue)?

Reviewer checklist

  • CHANGELOG updated with public API or any other important changes?

📚 Download documentation for this pull-request

📚 Download documentation for this pull-request

📚 Download documentation for this pull-request

📚 Download documentation for this pull-request

📚 Download documentation for this pull-request

📚 Download documentation for this pull-request

📚 Download documentation for this pull-request

📚 Download documentation for this pull-request

📚 Download documentation for this pull-request

@frostedoyster frostedoyster force-pushed the metatomic-core-system branch from f124022 to 92f371a Compare May 30, 2026 05:49
@frostedoyster frostedoyster requested a review from Luthaf June 1, 2026 08:25
@Luthaf
Copy link
Copy Markdown
Member

Luthaf commented Jun 1, 2026

Can you move serialization to a different PR? Also, the format should be the exact same as existing .mta, there is no need to add a new format.

@frostedoyster frostedoyster force-pushed the metatomic-core-system branch from 5360628 to 1573c99 Compare June 1, 2026 10:33
@frostedoyster
Copy link
Copy Markdown
Contributor Author

Done, this PR now only contains the implementation of System

@frostedoyster frostedoyster force-pushed the metatomic-core-system branch from b3026c4 to aa0aef7 Compare June 1, 2026 10:53
@Luthaf Luthaf force-pushed the metatomic-core branch 2 times, most recently from b024db0 to 4a4484a Compare June 2, 2026 12:05
@Luthaf Luthaf force-pushed the metatomic-core-system branch from aa0aef7 to b5b93a1 Compare June 2, 2026 14:34
Co-Authored-By: frostedoyster <bigi.f@libero.it>
@Luthaf Luthaf force-pushed the metatomic-core-system branch from b5b93a1 to acc3d02 Compare June 3, 2026 08:45
@Luthaf Luthaf merged commit 5a0882c into metatomic-core Jun 3, 2026
19 checks passed
@Luthaf Luthaf deleted the metatomic-core-system branch June 3, 2026 09:52
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