Skip to content

Add md-flexible Comparison Test - #1

Merged
dmartin13 merged 13 commits into
mainfrom
mdFlexComparisonTest
Nov 27, 2026
Merged

dmartin13 merged 13 commits into
mainfrom
mdFlexComparisonTest

Conversation

@dmartin13

Copy link
Copy Markdown
Collaborator

This PR adds an md-flexible comparison test to ensure that AutoPas+md-flexible and AutoPasDM+reduced md-flexible produce the same results.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 36 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e421fb06-9709-4fb4-a59b-02aed11846df
Commits

Reviewing files that changed from the base of the PR and between 8fcc5af and e592f5e.

Files selected for processing: 1

  • .github/workflows/TestSuites.yaml
Summary

Summary by CodeRabbit

  • Testing
    • Expanded regression checks for single-site and multi-site simulations, including force calculations, thermostat output, dynamic behavior, reflective boundaries, and load balancing.
    • Added comparisons of particle states across reference and distributed runs, with checks for matching iterations and configurable tolerances.
  • Documentation
    • Updated regression instructions and examples, including configuration paths and the simulation results covered by each comparison.

The changes add a VTK-based comparison script, new md-flexible regression configurations, and CI comparisons for SingleSite and MultiSite runs. They also update MPI test paths and document the regression commands and comparison coverage.

Changes: md-flexible Regression Comparisons

Layer / File(s) Summary
Configure comparison scenarios
examples/md-flexible/tests/yamlTestFiles/*, examples/md-flexible/CMakeLists.txt
Adds dynamic and multi-site comparison configurations, updates existing test settings, and points five MPI tests to YAML files under tests/yamlTestFiles.
Run and compare simulation outputs
examples/md-flexible/tests/scripts/run_md_flexible_comparison.py
Adds a runner that launches reference and AutoPasDM executables, reads VTK particle and domain data, compares final particle states, and can require domain-boundary movement.
Wire regression checks into CI
.github/workflows/TestSuites.yaml
Adds SingleSite comparisons for load balancing, 3D forces, dynamic simulations, thermostat output, and reflective-boundary forces. Adds a MultiSite reference build and comparison.
Document comparison coverage
README.md, examples/md-flexible/tests/scripts/run_load_balancing_regression.py
Updates test and script paths and describes the comparison commands and coverage for the regression cases.
Merge Risk: Moderate · previous review 8fcc5

The new comparison CI steps still point to the old script and configuration locations, which no longer exist after the move. The SingleSite regression checks therefore fail on every run until the paths are updated. Fix the workflow paths before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Add md-flexible Comparison Test" matches the main change. The PR adds a comparison test (run_md_flexible_comparison.py and related YAML configs) that checks AutoPas+md-flexible against Auto…
Description check Passed The description states that the PR adds an md-flexible comparison test so that AutoPas+md-flexible and AutoPasDM+reduced md-flexible produce the same results. The changeset contains the comparison run…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Add md-flexible Comparison Test" matches the main change. The PR adds a comparison test (run_md_flexible_comparison.py and related YAML configs) that checks AutoPas+md-flexible against AutoPasDM+reduced md-flexible. The title is short, specific, and states the primary change.

Full details: Description check

Explanation

The description states that the PR adds an md-flexible comparison test so that AutoPas+md-flexible and AutoPasDM+reduced md-flexible produce the same results. The changeset contains the comparison runner, YAML configurations, CMake path updates, and README updates that match this purpose.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dmartin13 dmartin13 self-assigned this Nov 23, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3079eeb3-f099-438f-860c-bbc09940cca7
Commits

Reviewing files that changed from the base of the PR and between a8c4836 and c86e426.

Files selected for processing: 7

  • .github/workflows/TestSuites.yaml
  • README.md
  • examples/md-flexible/input/autopasdm_dynamic_compare.yaml
  • examples/md-flexible/input/autopasdm_force_compare_3d.yaml
  • examples/md-flexible/input/autopasdm_multisite_compare.yaml
  • examples/md-flexible/input/autopasdm_thermostat_compare.yaml
  • examples/md-flexible/scripts/run_md_flexible_comparison.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Major · Update the comparison step paths to the moved test files. · TestSuites.yaml:150-180

.github/workflows/TestSuites.yaml:150-180
Major · Data Integrity & Integration · Quick win

Update the comparison step paths to the moved test files.

The comparison steps still reference the pre-move scripts/ and input/ paths. At the reviewed revision, those files exist only under tests/scripts/ and tests/yamlTestFiles/. Each step fails when python3 cannot open the script or the configuration file, so the comparison jobs for GCC-Release-OMP-SingleSite cannot run. The reflective-boundary step at lines 191–200 uses the same stale paths and needs the same update.

Suggested path updates

@@ -148 +148 @@
-          python3 AutoPasDM/examples/md-flexible/scripts/run_load_balancing_regression.py \
+          python3 AutoPasDM/examples/md-flexible/tests/scripts/run_load_balancing_regression.py \
@@ -151 +151 @@
-            --config AutoPasDM/examples/md-flexible/input/autopasdm_load_balancing_compare.yaml \
+            --config AutoPasDM/examples/md-flexible/tests/yamlTestFiles/autopasdm_load_balancing_compare.yaml \
@@ -157 +157 @@
-          python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \
+          python3 AutoPasDM/examples/md-flexible/tests/scripts/run_md_flexible_comparison.py \
@@ -160 +160 @@
-            --config AutoPasDM/examples/md-flexible/input/autopasdm_force_compare_3d.yaml \
+            --config AutoPasDM/examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare_3d.yaml \
@@ -166 +166 @@
-          python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \
+          python3 AutoPasDM/examples/md-flexible/tests/scripts/run_md_flexible_comparison.py \
@@ -169 +169 @@
-            --config AutoPasDM/examples/md-flexible/input/autopasdm_dynamic_compare.yaml \
+            --config AutoPasDM/examples/md-flexible/tests/yamlTestFiles/autopasdm_dynamic_compare.yaml \
@@ -176 +176 @@
-          python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \
+          python3 AutoPasDM/examples/md-flexible/tests/scripts/run_md_flexible_comparison.py \
@@ -179 +179 @@
-            --config AutoPasDM/examples/md-flexible/input/autopasdm_thermostat_compare.yaml \
+            --config AutoPasDM/examples/md-flexible/tests/yamlTestFiles/autopasdm_thermostat_compare.yaml \
@@ -183 +183 @@
-          python3 AutoPasDM/examples/md-flexible/scripts/compare_vtk_thermostat.py \
+          python3 AutoPasDM/examples/md-flexible/tests/scripts/compare_vtk_thermostat.py \
Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1b2b9cb0-4d26-43e5-a266-336b5c0b3fe9
Commits

Reviewing files that changed from the base of the PR and between 73d1ccf and 8fcc5af.

Files selected for processing: 18

  • README.md
  • examples/md-flexible/CMakeLists.txt
  • examples/md-flexible/tests/scripts/check_reflective_forces.py
  • examples/md-flexible/tests/scripts/compare_vtk_forces.py
  • examples/md-flexible/tests/scripts/compare_vtk_thermostat.py
  • examples/md-flexible/tests/scripts/run_load_balancing_regression.py
  • examples/md-flexible/tests/scripts/run_md_flexible_comparison.py
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_all_load_balancer.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_cli_checkpoint.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_cli_checkpoint_restart.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_dynamic_compare.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare_3d.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_load_balancing_compare.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_mpi_tuning.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_multisite_compare.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_reflective_compare.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_thermostat_compare.yaml
Files with no reviewable changes: 4

  • examples/md-flexible/tests/yamlTestFiles/autopasdm_dynamic_compare.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare_3d.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_multisite_compare.yaml
  • examples/md-flexible/tests/yamlTestFiles/autopasdm_thermostat_compare.yaml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@dmartin13
dmartin13 merged commit 1656ed9 into main Nov 27, 2026
19 checks passed
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.

1 participant