History log of /petsc/src/snes/linesearch/interface/linesearch.c (Results 1 – 25 of 479)
Revision Date Author Comments
# 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 ...


# bd89dbf2 07-Jan-2026 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2025-12-24/improve-snes-domain-error-handling' into 'main'

Improve the propagation of function domain error handling in SNES, especially...

See merge request petsc/petsc!8914


# 76c63389 24-Dec-2025 Barry Smith <bsmith@mcs.anl.gov>

Improve the propagation of function domain error handling in SNES, especially in the line search routines.

Due to the object layering of SNESLineSearch under SNES there is some code duplication incl

Improve the propagation of function domain error handling in SNES, especially in the line search routines.

Due to the object layering of SNESLineSearch under SNES there is some code duplication include both SNESLineSearchReason and SNESConvergedReason and SNESCheckFunctionNorm() and SNESLineSearchCheckFunctionNorm() and Jacobian friends

Reported-by: david.knezevic@akselos.com

show more ...


# 8577b683 05-Oct-2025 Satish Balay <balay@mcs.anl.gov>

Merge remote-tracking branch 'origin/release'


# fe1fb33a 01-Oct-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jolivet/typos' into 'release'

Fix typos

See merge request petsc/petsc!8753


# 8c5add6a 01-Oct-2025 Pierre Jolivet <pierre@joliv.et>

Fix typos


# 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>


# bcda9346 27-Aug-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'MarDiehl/fix-typo' into 'main'

missing "s" for isascii and issundials

See merge request petsc/petsc!8559


# 9f196a02 17-Jul-2025 Martin Diehl <mail@martin-diehl.net>

missing "s" for isascii and issundials


# 80e63f7e 27-Aug-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'knepley-main-patch-e088' into 'main'

SNES: Fix crash in line search

See merge request petsc/petsc!8657


# e0f7661e 27-Aug-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'sneslinesearch-improvements' into 'main'

SNESLinesearch: Minor improvements

See merge request petsc/petsc!8630


# a99ef635 27-Aug-2025 Jonas Heinzmann <jheinzmann@ethz.ch>

SNESLinesearch: Minor improvements

- add missing configuration options in the documentation of the line searches (some of the available options were not listed), and consistently list their respecti

SNESLinesearch: Minor improvements

- add missing configuration options in the documentation of the line searches (some of the available options were not listed), and consistently list their respective default values

- add proper convergence criteria for the secant method in the L2 line search based on ltol and atol (otherwise, the secant method is mostly running for the maximum number of iterations)

- fix a small bug in the CP line search, where steptol * lambda was used to check for convergence based on the change of lambda instead of the ltol parameter

- rename sneslinesearch->maxstep to sneslinesearch->maxlambda in the options database to be consistent with its purpose in the algorithms

- rename SNESLineSearchL2 to SNESLineSearchSecant to better represent its underlying approach

show more ...


# c197fec0 26-Aug-2025 Matthew Knepley <knepley@gmail.com>

Update file linesearch.c


# 09b68a49 04-Apr-2025 Satish Balay <balay@mcs.anl.gov>

Merge remote-tracking branch 'origin/release'


# 1a61deb2 31-Mar-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2025-03-29/docs-fortran/release' into 'release'

Fix manual pages related to Fortran

See merge request petsc/petsc!8257


# feaf08ea 31-Mar-2025 Barry Smith <bsmith@mcs.anl.gov>

Fix manual pages related to Fortran

Remove a couple of dead Fortran bindings


# 89a8e22d 16-Mar-2025 Satish Balay <balay@mcs.anl.gov>

Merge remote-tracking branch 'origin/release'


# 21b1d8f2 14-Mar-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2025-03-11/fix-minor-snes-docs/release' into 'release'

Improve some SNES documentation especially with regard to nonlinear preconditioning

See merge request petsc/petsc!8189


# 62842358 14-Mar-2025 Barry Smith <bsmith@mcs.anl.gov>

Improve some SNES documentation especially with regard to nonlinear preconditioning


# c59835d0 17-Feb-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jonas-heinzmann/fix-sneslinesearch-vi-directionalderivative' into 'main'

SNESLineSearch: fix computation of directional derivative in the case of the VI solvers

See merge request pets

Merge branch 'jonas-heinzmann/fix-sneslinesearch-vi-directionalderivative' into 'main'

SNESLineSearch: fix computation of directional derivative in the case of the VI solvers

See merge request petsc/petsc!8137

show more ...


# d5def619 17-Feb-2025 Jonas Heinzmann <jheinzmann@ethz.ch>

SNESLineSearch: fix computation of directional derivative in the case of the VI solvers

The two line search algorithms bisection and critical point work with the directional derivative, assuming tha

SNESLineSearch: fix computation of directional derivative in the case of the VI solvers

The two line search algorithms bisection and critical point work with the directional derivative, assuming that F(x) = grad G(x).
However, when working with the variational inequality solvers, the constraints were not correctly considered when computing the directional derivative.
This commit introduces a new linesearch->ops->vidirderiv function which correctly considers the constraints (similar to linesearch->ops->viproject and linesearch->ops->vinorm).

show more ...


# 76d69608 19-Jan-2025 Satish Balay <balay@mcs.anl.gov>

Merge remote-tracking branch 'origin/release'


# 1d017dde 19-Jan-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2024-11-26/improve-man-pages/release' into 'release'

Improve some manual pages in KSP/SNES

See merge request petsc/petsc!8071


12345678910>>...20