| #
3220ff85
|
| 25-Feb-2026 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2026-01-31/improve-dmactive' into 'main'
Split dmActive into separate support for matrix, rhs, and initial guess
See merge request petsc/petsc!8990
|
| #
bf0c7fc2
|
| 31-Jan-2026 |
Barry Smith <bsmith@mcs.anl.gov> |
Split dmActive into seperate support for matrix, rhs, and initial guess
|
| #
c687af79
|
| 23-Feb-2026 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2026-01-31/lazy-creation-of-pc' into 'main'
-ksp_error_if_not_converged was not properly propagated to...
See merge request petsc/petsc!8989
|
| #
8252debc
|
| 31-Jan-2026 |
Barry Smith <bsmith@mcs.anl.gov> |
-ksp_error_if_not_converged was not properly propagated to PCSetErrorIfFailure() for -pc_type mg (and possibly others)
- Delay creating the PC when KSPSetDM() is called. This allows better propagati
-ksp_error_if_not_converged was not properly propagated to PCSetErrorIfFailure() for -pc_type mg (and possibly others)
- Delay creating the PC when KSPSetDM() is called. This allows better propagation of properties that may be set later in the KSP to the PC - -ksp_error_if_not_converged should trigger call to KSPSetErrorIfNotConverged() instead of setting the value directly - KSPSetErrorIfNotConverged() should pass that value down to the PC - KSPGetPC() should propagate error if not converged down to a newly created PC - PCSetFromOptions() should be called AFTER KSPSetFromOptions() since actions may depend on newly set KSP options
Note that as with all the nesting in PETSc if, for example, the PCMG hierarchy is created before KSPSetErrorIfNotConverged() is called the flag cannot be propagated down to all the subsolves; this would require a huge refactorization and handling of nesting
Old (impossible to debug) behavior
$ ./ex19 -ksp_monitor -ksp_converged_reason -ksp_error_if_not_converged -pc_type mg -da_refine 1 lid velocity = 0.0204082, prandtl # = 1., grashof # = 1. [0]PETSC ERROR: --------------------- Error Message -------------------------------------------------------------- at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/iterativ.c:2142 [0]PETSC ERROR: #2 PCMGMCycle_Private() at /Users/barrysmith/Src/petsc/src/ksp/pc/impls/mg/mg.c:28 [0]PETSC ERROR: #3 PCApply_MG_Internal() at /Users/barrysmith/Src/petsc/src/ksp/pc/impls/mg/mg.c:636 [0]PETSC ERROR: #4 PCApply_MG() at /Users/barrysmith/Src/petsc/src/ksp/pc/impls/mg/mg.c:658 [0]PETSC ERROR: #5 PCApply() at /Users/barrysmith/Src/petsc/src/ksp/pc/interface/precon.c:528 [0]PETSC ERROR: #6 KSP_PCApply() at /Users/barrysmith/Src/petsc/include/petsc/private/kspimpl.h:413 [0]PETSC ERROR: #7 KSPInitialResidual() at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/itres.c:64 [0]PETSC ERROR: #8 KSPSolve_GMRES() at /Users/barrysmith/Src/petsc/src/ksp/ksp/impls/gmres/gmres.c:214 [0]PETSC ERROR: #9 KSPSolve_Private() at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/itfunc.c:914 [0]PETSC ERROR: #10 KSPSolve() at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/itfunc.c:1093 [0]PETSC ERROR: #11 SNESSolve_NEWTONLS() at /Users/barrysmith/Src/petsc/src/snes/impls/ls/ls.c:220 [0]PETSC ERROR: #12 SNESSolve() at /Users/barrysmith/Src/petsc/src/snes/interface/snes.c:4900 [0]PETSC ERROR: #13 main() at ex19.c:152 [0]PETSC ERROR: PETSc Option Table entries: [0]PETSC ERROR: -check_pointer_intensity 0 (source: environment) [0]PETSC ERROR: -da_refine 1 (source: command line) [0]PETSC ERROR: -ksp_converged_reason (source: command line) [0]PETSC ERROR: -ksp_error_if_not_converged (source: command line) [0]PETSC ERROR: -ksp_monitor (source: command line) [0]PETSC ERROR: -malloc_test (source: environment) [0]PETSC ERROR: -pc_type mg (source: command line) [0]PETSC ERROR: -start_in_debugge (source: command line) [0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint@mcs.anl.gov----------~
New more helpful behavior
$ ./ex19 -ksp_monitor -ksp_converged_reason -start_in_debugge -ksp_error_if_not_converged -pc_type mg -da_refine 2 lid velocity = 0.00591716, prandtl # = 1., grashof # = 1. [0]PETSC ERROR: --------------------- Error Message -------------------------------------------------------------- [0]PETSC ERROR: Zero pivot in LU factorization: https://petsc.org/release/faq/#zeropivot [0]PETSC ERROR: Zero pivot, row 0 [0]PETSC ERROR: WARNING! There are unused option(s) set! Could be the program crashed before usage or a spelling mistake, etc! [0]PETSC ERROR: Option left: name:-start_in_debugge (no value) source: command line [0]PETSC ERROR: See https://petsc.org/release/faq/ for trouble shooting. [0]PETSC ERROR: PETSc Development Git Revision: v3.24.4-346-g9eff264eed9 Git Date: 2026-01-31 15:32:23 -0500 [0]PETSC ERROR: ./ex19 with 1 MPI process(es) and PETSC_ARCH arch-lazy-creation-of-pc on MacBookPro.lan by barrysmith Sat Jan 31 16:30:17 2026 [0]PETSC ERROR: Configure options: none used [0]PETSC ERROR: #1 PetscKernel_A_gets_inverse_A_4() at /Users/barrysmith/Src/petsc/src/mat/impls/baij/seq/dgefa4.c:50 [0]PETSC ERROR: #2 MatInvertDiagonalForSOR_SeqAIJ_Inode() at /Users/barrysmith/Src/petsc/src/mat/impls/aij/seq/inode.c:2476 [0]PETSC ERROR: #3 MatSOR_SeqAIJ_Inode() at /Users/barrysmith/Src/petsc/src/mat/impls/aij/seq/inode.c:2509 [0]PETSC ERROR: #4 MatSOR_SeqAIJ() at /Users/barrysmith/Src/petsc/src/mat/impls/aij/seq/aij.c:1865 [0]PETSC ERROR: #5 MatSOR() at /Users/barrysmith/Src/petsc/src/mat/interface/matrix.c:4229 [0]PETSC ERROR: #6 PCApply_SOR() at /Users/barrysmith/Src/petsc/src/ksp/pc/impls/sor/sor.c:33 [0]PETSC ERROR: #7 PCApply() at /Users/barrysmith/Src/petsc/src/ksp/pc/interface/precon.c:528 [0]PETSC ERROR: #8 KSP_PCApply() at /Users/barrysmith/Src/petsc/include/petsc/private/kspimpl.h:413 [0]PETSC ERROR: #9 KSPInitialResidual() at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/itres.c:64 [0]PETSC ERROR: #10 KSPSolve_GMRES() at /Users/barrysmith/Src/petsc/src/ksp/ksp/impls/gmres/gmres.c:214 [0]PETSC ERROR: #11 KSPSolve_Private() at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/itfunc.c:914 [0]PETSC ERROR: #12 KSPSolve() at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/itfunc.c:1093 [0]PETSC ERROR: #13 KSPSetUp_Chebyshev() at /Users/barrysmith/Src/petsc/src/ksp/ksp/impls/cheby/cheby.c:826 [0]PETSC ERROR: #14 KSPSetUp() at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/itfunc.c:391 [0]PETSC ERROR: #15 PCSetUp_MG() at /Users/barrysmith/Src/petsc/src/ksp/pc/impls/mg/mg.c:1177 [0]PETSC ERROR: #16 PCSetUp() at /Users/barrysmith/Src/petsc/src/ksp/pc/interface/precon.c:1120 [0]PETSC ERROR: #17 KSPSetUp() at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/itfunc.c:429 [0]PETSC ERROR: #18 KSPSolve_Private() at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/itfunc.c:840 [0]PETSC ERROR: #19 KSPSolve() at /Users/barrysmith/Src/petsc/src/ksp/ksp/interface/itfunc.c:1093 [0]PETSC ERROR: #20 SNESSolve_NEWTONLS() at /Users/barrysmith/Src/petsc/src/snes/impls/ls/ls.c:220 [0]PETSC ERROR: #21 SNESSolve() at /Users/barrysmith/Src/petsc/src/snes/interface/snes.c:4900 [0]PETSC ERROR: #22 main() at ex19.c:152 [0]PETSC ERROR: PETSc Option Table entries: [0]PETSC ERROR: -check_pointer_intensity 0 (source: environment) [0]PETSC ERROR: -da_refine 2 (source: command line) [0]PETSC ERROR: -ksp_converged_reason (source: command line) [0]PETSC ERROR: -ksp_error_if_not_converged (source: command line) [0]PETSC ERROR: -ksp_monitor (source: command line) [0]PETSC ERROR: -malloc_test (source: environment) [0]PETSC ERROR: -pc_type mg (source: command line) [0]PETSC ERROR: -start_in_debugge (source: command line) [0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint@mcs.anl.gov----------~
show more ...
|
| #
f0e22e24
|
| 03-Feb-2026 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/deprecate-matmatmult_Bbn' into 'main'
Deprecate -matmatmult_Bbn in favor of -matproduct_batch_size
See merge request petsc/petsc!8993
|
| #
1e2d28a0
|
| 02-Feb-2026 |
Pierre Jolivet <pierre@joliv.et> |
Deprecate -matmatmult_Bbn in favor of -matproduct_batch_size
See also -ksp_matsolve_batch_size
|
| #
4e8208cb
|
| 31-Jan-2026 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2026-01-13/ftn-generation-for-context-functions' into 'main'
Fortran generation of interface definitions for functions that take and return context variables (void *ctx and PetC
Merge branch 'barry/2026-01-13/ftn-generation-for-context-functions' into 'main'
Fortran generation of interface definitions for functions that take and return context variables (void *ctx and PetCtx ctx)
See merge request petsc/petsc!8956
show more ...
|
| #
2a8381b2
|
| 13-Jan-2026 |
Barry Smith <bsmith@mcs.anl.gov> |
Add automatic generated fortran support for setting and returning contexts
Major cleanup of the code for setting and returning application (previously called user) contexts - PetscCtx ctx is now t
Add automatic generated fortran support for setting and returning contexts
Major cleanup of the code for setting and returning application (previously called user) contexts - PetscCtx ctx is now the standard for passing in contexts - PetscCtxRt ctx is the standard for passing out contexts, including context destroy routines based on PetscCtxDestroyFn
Both of these are typedef to void*
Also removed most use of user and userctx for context arguments now consistently named ctx
Improved documentation on PetscCtx and PetscCtxRt and on how to use contexts (including getting them) from Fortran
show more ...
|
| #
fa797d8e
|
| 28-Jan-2026 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/enable-explicittranspose-matsolvetranspose' into 'main'
KSPMatSolveTranspose: enable -ksp_use_explicittranspose
See merge request petsc/petsc!8981
|
| #
8f247f29
|
| 27-Jan-2026 |
Pierre Jolivet <pierre@joliv.et> |
KSPMatSolveTranspose: enable -ksp_use_explicittranspose
|
| #
73b15700
|
| 17-Nov-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
56d6cfc3
|
| 17-Nov-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jose/doc-fix' into 'release'
Minor doc fixes
See merge request petsc/petsc!8854
|
| #
aebd7554
|
| 16-Nov-2025 |
Jose E. Roman <jroman@dsic.upv.es> |
Minor doc fixes
|
| #
390474f9
|
| 09-Nov-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
8ce174df
|
| 07-Nov-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jose/release/doc-fixes' into 'release'
doc: minor fixes
See merge request petsc/petsc!8830
|
| #
41aebf3e
|
| 06-Nov-2025 |
Jose E. Roman <jroman@dsic.upv.es> |
doc: minor fixes
|
| #
b6fc232f
|
| 29-Oct-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'release'
|
| #
656dbccb
|
| 29-Oct-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'hsuh/ksp_view_final_residual_vec_fix' into 'release'
KSP: -ksp_view_final_residual_vec option was not being registered
See merge request petsc/petsc!8816
|
| #
8dd96526
|
| 27-Oct-2025 |
Hansol Suh <hsuh@anl.gov> |
KSP: -ksp_view_final_residual_vec option was not being registered
|
| #
e1998897
|
| 29-Sep-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2025-09-28/fix-petscerrorcodefn-cxx' into 'main'
Fix the definition of PetscErrorCodeFn; this reverts API change in !8615
See merge request petsc/petsc!8745
|
| #
453a69bb
|
| 29-Sep-2025 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix the definition of PetscErrorCodeFn; this reverts API change in !8615
Co-authored-by: Pierre Jolivet <pierre@joliv.et> Reported-by: Lisandro Dalcin <dalcinl@gmail.com>
|
| #
3622a28c
|
| 04-Aug-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'knepley/fix-ksp-monitor-view' into 'main'
KSP: Add HDF5 monitor
See merge request petsc/petsc!8624
|
| #
52e0830f
|
| 04-Aug-2025 |
Matthew Knepley <knepley@gmail.com> |
KSP: Add HDF5 monitor
|
| #
19610130
|
| 10-Jun-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
35eef7c3
|
| 06-Jun-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/typos' into 'release'
Typos
See merge request petsc/petsc!8463
|