Skip to content

Feature/latboltz unittest - #9

Open
abhinsuresh wants to merge 20 commits into
Schiller-Lab:ternary-lbmfrom
abhinsuresh:feature/latboltz-unittest
Open

abhinsuresh wants to merge 20 commits into
Schiller-Lab:ternary-lbmfrom
abhinsuresh:feature/latboltz-unittest

Conversation

@abhinsuresh

@abhinsuresh abhinsuresh commented Sep 2, 2026 •

Copy link
Copy Markdown

Summary
Adding a simple unit test, that verifies total monetum before the run and after runs is zero to 1e-6 tolerance. This acts as smoke test as well as a unit test. The test is compiled only if latboltz pkg is installed during configuration with cmake. Currently runs with 2 mpi procs. Runs for 100 time steps before checking the total momentum. Do have a yaml file with headers for the test, but currently not using it to verify any quantity. Defined a public function get_total_momentum() to extract the quantity for the test.

Related Issue(s)

Author(s)

Licensing

By submitting this pull request, I agree, that my contribution will be included in LAMMPS and redistributed under either the GNU General Public License version 2 (GPL v2) or the GNU Lesser General Public License version 2.1 (LGPL v2.1).

Backward Compatibility

Implementation Notes

Post Submission Checklist

  • The feature or features in this pull request is complete
  • Licensing information is complete
  • Corresponding author information is complete
  • The source code follows the LAMMPS formatting guidelines
  • Suitable new documentation files and/or updates to the existing docs are included
  • The added/updated documentation is integrated and tested with the documentation build system
  • The feature has been verified to work with the conventional build system
  • The feature has been verified to work with the CMake based build system
  • Suitable tests have been added to the unittest tree.
  • A package specific README file has been included or updated
  • One or more example input decks are included

Further Information, Files, and Links

uschille and others added 15 commits April 23, 2026 12:25
* Create ctest ci.yml which runs on push

* adding changes to src/version.h for ci test

* adding small changes to version.h to make it pass

* Update ci.yml
* adding small changes to src/version.h to see PR failing

* adding small changes to src/version.h to fix PR fail
* adding ctest for checking lb_multicomponent test

* fix in spacing, fix error in cmake PACKAGE_ to PKG_, fix error in ci cmake latboltz needs BUILD_MPI

* adding install dependencies like mpi on ci.yml

* fixing install dependencies like mpi on ci.yml

* fixing install dependencies space after \ on ci.yml

* only running ctest for the lb_mult smoke ci.yml
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