-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seemingly false positive "unused database option" warning from PETSc #27859
Comments
@pbehne Here's the issue we discussed on slack. |
@lindsayad, I'll work on this. |
I have more information on this now. The above MOOSE input file describes a transient diffusion problem with no source term and homogeneous Dirichlet boundary conditions. This problem has a constant solution: zero. MOOSE uses zero - the solution - as the initial guess. The particular petsc nonlinear solver used for this problem is A quick fix would be to change the default value of the When the above parameter is false, HOWEVER, I am of the opinion that this is a bug in petsc and we shouldn't have to change MOOSE or libMesh to address it. Whether this warning is emitted depends on the completely unrelated boundary condition. Also, it is possible that I'd recommend creating a petsc ticket to report this bug with a minimum working example petsc-only example. I would rather defer this to a more experienced petsc user on the MOOSE team, but can work on this if needed. Just let me know. |
This all makes sense to me. It then sounded to me like there is also no easy fix on the petsc side, is there? |
As you said
and indeed I think what @tophmatthews saw was a different one. But I agree, this seems more like a petsc issue. |
While I don't know petsc's source in much detail, conceptually, it should be as simple as adding and tracking an early convergence flag and for every ksp-related option, setting the corresponding entry in the PetscOptions' |
Agreed. I'll let you find find a more experienced petsc user in the moose team :) |
I'm not convinced it's a PETSc issue. PETSc doesn't complain about |
Additionally
|
I'm more convinced it's a PETSc issue. Interesting that
only leads to warnings about |
Indeed, most options are handled straightaway in |
I'll ask on the PETSc discord about the best way to eliminate the warning |
Yeah, "bug" is probably not the best label. Maybe "minor annoyance that does not affect solution accuracy and confuses users" is more appropriate. |
So this will stop being an issue when MOOSE updates the version of PETSc is uses. How do we close these kinds of issues? Should it be closed now, or when we update the petsc submodule? If the later, how do we remember to close this? |
We should wait to close it until the submodule has been updated such that users are no longer experiencing the issue. How to remember is a good question 😄 |
Makes sense. I'll put a recurring task on my todo list to check back on this so we don't forget to close the issue. It looks like @cticenhour usually performs the petsc submodule updates. Casey, any idea when we are due for another petsc update? @milljm, once the petsc submodule is updated, how long does it usually take to propagate into the conda packages? |
First thing is to see MR7640 actually merged into release... |
Bug Description
Running some input files give me warnings like below
Steps to Reproduce
Run the following MRE with moose_test-opt
Impact
This is mostly just annoyance, but could potentially mislead users to believe something went wrong.
[Optional] Diagnostics
No response
The text was updated successfully, but these errors were encountered: