Skip to content

Conversation

Drewniok
Copy link
Collaborator

Description

This PR ensures that ClusterComplete cannot be selected as the simulation engine when ALGLIB is disabled.

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have added a changelog entry.
  • I have created/adjusted the Python bindings for any new or updated functionality.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

@Drewniok Drewniok requested review from wlambooy and marcelwa March 28, 2025 11:37
@Drewniok Drewniok self-assigned this Mar 28, 2025
@Drewniok Drewniok added the bug Something isn't working label Mar 28, 2025
@Drewniok Drewniok changed the title 🎨 Exclude ClusterComplete from simulation engine selection when ALGLIB is disabled 🐛 Exclude ClusterComplete from simulation engine selection when ALGLIB is disabled Mar 28, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

Drewniok and others added 3 commits March 28, 2025 12:45
Signed-off-by: GitHub Actions <actions@github.com>
@Drewniok Drewniok requested review from marcelwa and wlambooy March 28, 2025 11:49
Drewniok and others added 2 commits March 28, 2025 13:06
Signed-off-by: GitHub Actions <actions@github.com>
wlambooy
wlambooy previously approved these changes Mar 28, 2025
Copy link
Collaborator

@wlambooy wlambooy left a comment

Choose a reason for hiding this comment

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

Thanks a lot! It looks good the way it is, now that all the work is done already. Though I think it would have been an easier fix and perhaps just as maintainable to only put

#else   // FICTION_ALGLIB_ENABLED
        assert(false && "ALGLIB must be enabled if ClusterComplete is to be used");
#endif  // FICTION_ALGLIB_ENABLED

on the place where it was missing. Although, it might not help when in Release mode, I guess that is the problem since a user won't be getting any error message then.

In short, thanks a lot, looks good!

Copy link

codecov bot commented Mar 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.20%. Comparing base (0ee0f3d) to head (cd2c15a).
Report is 73 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #700      +/-   ##
==========================================
- Coverage   98.20%   98.20%   -0.01%     
==========================================
  Files         255      255              
  Lines       42229    42229              
  Branches     1949     1948       -1     
==========================================
- Hits        41471    41469       -2     
- Misses        758      760       +2     
Files with missing lines Coverage Δ
...lgorithms/simulation/sidb/critical_temperature.hpp 96.00% <ø> (ø)
...tion/algorithms/simulation/sidb/is_operational.hpp 92.02% <ø> (ø)
...orithms/simulation/sidb/sidb_simulation_engine.hpp 71.42% <ø> (ø)
...on/algorithms/simulation/sidb/time_to_solution.hpp 96.42% <ø> (ø)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ee0f3d...cd2c15a. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@marcelwa marcelwa merged commit dbef7e9 into cda-tum:main Mar 29, 2025
49 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants