Skip to content

Fixed sloppy warnings - #478

Merged
pelesh merged 6 commits into
developfrom
shaked/fix_sloppy_systemsolver
Oct 6, 2026
Merged

pelesh merged 6 commits into
developfrom
shaked/fix_sloppy_systemsolver

Conversation

@shakedregev

@shakedregev shakedregev commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Description

System solver decided quietly how to interpret a user's erroneous input.

Proposed changes

Returns errors instead of warnings when the user's meaning is unclear.

Checklist

  • All tests pass (make test and make test_install per testing instructions). Code tested on
    • CPU backend
    • CUDA backend
    • HIP backend
  • I have manually run the non-experimental examples and verified that residuals are close to machine precision. (In your build directory run: ./examples/<your_example>.exe -h to get instructions how to run examples). Code tested on:
    • CPU backend
    • CUDA backend
    • HIP backend
  • Code compiles cleanly with flags -Wall -Wpedantic -Wconversion -Wextra.
  • The new code follows Re::Solve style guidelines.
  • There are unit tests for the new code.
  • The new code is documented.
  • The feature branch is rebased with respect to the target branch.
  • I have updated CHANGELOG.md to reflect the changes in this PR. If this is a minor PR that is part of a larger fix already included in the file, state so.

@shakedregev
shakedregev requested a review from pelesh October 5, 2026 18:17

@shakedregev shakedregev left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Rerunning CI and fixing comments.

Comment thread resolve/SystemSolver.cpp Resolved
Comment thread resolve/SystemSolver.cpp Resolved
Co-authored-by: Shaked Regev <35384901+shakedregev@users.noreply.github.com>
@shakedregev
shakedregev requested a review from kakeueda October 5, 2026 18:25
@kakeueda

kakeueda commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Looks good to me.

pelesh
pelesh previously requested changes Oct 6, 2026

@pelesh pelesh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would replace "throw" with "return" because "throw usually implies an exception. Other suggestions are optional.

Comment thread resolve/SystemSolver.cpp Resolved
Comment thread resolve/SystemSolver.cpp Resolved
Comment thread resolve/SystemSolver.cpp Resolved
Comment thread resolve/SystemSolver.cpp Resolved
Comment thread CHANGELOG.md Resolved
@shakedregev
shakedregev requested a review from pelesh October 6, 2026 14:56
@shakedregev

Copy link
Copy Markdown
Collaborator Author

Fixed throw to return.

@pelesh pelesh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Error is correctly identified and proper message is returned.

@pelesh
pelesh merged commit c2ccbca into develop Oct 6, 2026
6 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.

3 participants