Skip to content

Change verbosity for Linear Solve in InitializationProblems to be None#4507

Open
jClugstor wants to merge 3 commits into
SciML:masterfrom
jClugstor:initialization_verbosity
Open

Change verbosity for Linear Solve in InitializationProblems to be None#4507
jClugstor wants to merge 3 commits into
SciML:masterfrom
jClugstor:initialization_verbosity

Conversation

@jClugstor
Copy link
Copy Markdown
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@jClugstor jClugstor marked this pull request as ready for review May 5, 2026 20:08
@oscardssmith
Copy link
Copy Markdown
Member

could use a test.

@jClugstor
Copy link
Copy Markdown
Member Author

Sure, test added.


prob = ODEProblem(verbsys, [a => 0.5, k => 1.0], (0.0, 1.0))

@test haskey(prob.f.initializeprob.kwargs, :verbose)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add a @test_nowarn?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Meh, for a meaningful test we would need a test case that always causes some kind of blas error, or causes blas to have invalid arguments, since those are the only two toggles we're turning off.
This already tests that the correct verbosity settings get in to the nonlinear solver, adding a @test_logs would basically just be testing that the verbosity system works in NonlinearSolve, but that's already tested in NonlinearSolve.

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