History log of /petsc/src/snes/tutorials/ex17.c (Results 1 – 25 of 65)
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 ...


# 2286efdd 25-Sep-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2025-07-30/fix-matshellsetoperationarg' into 'main'

Complete usage of PetscVoidFn and PetscErrorCodeFn and introduce PetscFortranCallbackFn

See merge request petsc/petsc!8615


# 57d50842 31-Jul-2025 Barry Smith <bsmith@mcs.anl.gov>

Change use of void (*)(void) and void (**)(void) in the PETSc API to PetscVoidFn * and PetscVoidFn ** or PetscErrorCodeFn * or PetscErrorCodeFn **


# 2364c0ea 24-Jul-2025 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jolivet/forbidden-empty-output-files' into 'main'

checkbadSource: forbid empty output_file not named output/empty.out

See merge request petsc/petsc!8588


# e0008cae 24-Jul-2025 Pierre Jolivet <pierre@joliv.et>

checkbadSource: forbid empty output_file not named output/empty.out


# fda22ce0 08-Jul-2024 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2024-07-01/fix-petscoptionsgetviewer' into 'main'

The use case of PetscOptionsGetViewer() has evolved to no longer be the get/restore model

See merge request petsc/petsc!7667


# 648c30bc 08-Jul-2024 Barry Smith <bsmith@mcs.anl.gov>

The use case of PetscOptionsGetViewer() has evolved to no longer be the get/restore model

Hence the code needs to be refactored

Introduce PetscCallNull() and PetscCallMPINull() to simplify PETSC_VI

The use case of PetscOptionsGetViewer() has evolved to no longer be the get/restore model

Hence the code needs to be refactored

Introduce PetscCallNull() and PetscCallMPINull() to simplify PETSC_VIEWER_XXXX_() routines

Reported-by: James Wright
Thanks-to: Jeremy L Thompson

show more ...


# 61d8dfa2 09-Jan-2024 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jolivet/fix-checkbadSource' into 'main'

Improve checkbadSource

See merge request petsc/petsc!7168


# 53df731d 08-Jan-2024 Pierre Jolivet <pierre@joliv.et>

Fix "Extra spaces in test harness rules" in checkbadSource


# c8629ca8 17-Dec-2023 Satish Balay <balay@mcs.anl.gov>

Merge branch 'stefanozampini/minsurf-local' into 'main'

Improve support for nonlinear domain decomposition solvers

See merge request petsc/petsc!7084


# 6493148f 28-Nov-2023 Stefano Zampini <stefano.zampini@gmail.com>

DMPLEXSNES: support objective functions


# e6053022 02-Dec-2023 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2023-11-21/fix-thread-safety-petscoptionsgetviewer' into 'main'

Fix PetscOptionsGetViewer() so it works in a thread-safe way

See merge request petsc/petsc!7047


# cd791dc2 21-Nov-2023 Barry Smith <bsmith@mcs.anl.gov>

Fix PetscOptionsGetViewer() so it works in a thread-safe way

When PetscOptionsGetViewer() returns, for example, PETSC_VIEWER_STDOUT_SELF the same object is shared
by all threads that call PetscOptio

Fix PetscOptionsGetViewer() so it works in a thread-safe way

When PetscOptionsGetViewer() returns, for example, PETSC_VIEWER_STDOUT_SELF the same object is shared
by all threads that call PetscOptionsGetViewer(). In the previous code PetscObjectReference() and
dereference (via PetscViewerDestroy() where called on the viewer by multiple threads after the viewer
was accessed thus corrupting the object.

This branch introduces a PetscOptionsRestoreViewer() that allows not doing the referencing and dereferencing
on persistant viewers, thus removing the specific race condition above.

Other possible solutions include

Use a lock on each PetscObjectReference/Dereference() just in case they are shared. Could be time consuming so one
could mark each object as either threadshared or independent and only do the locks on threadshared objects. This lowers
the cost but would require more extensive changes to PETSc infrastructure. And I do not know if this shared/not shared model
is what we need in the long run, though it might be.

show more ...


# 2da5875f 03-Jun-2023 Satish Balay <balay@mcs.anl.gov>

Merge remote-tracking branch 'origin/release'


# 40db8417 03-Jun-2023 Satish Balay <balay@mcs.anl.gov>

Merge branch 'knepley/fix-examples' into 'release'

Fix examples for PETSc Meeting

See merge request petsc/petsc!6542


# f9ea58a4 02-Jun-2023 Matthew G. Knepley <knepley@gmail.com>

SNES ex17: Fixes
- Use input parameters
- Fix cell type for FE
- Add GMG test


# 31d78bcd 02-Feb-2023 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jacobf/2022-12-10/petscerrorcode-nodiscard' into 'main'

Feature: Non-discardable PetscErrorCode

See merge request petsc/petsc!5923


# 3ba16761 10-Dec-2022 Jacob Faibussowitsch <jacob.fai@gmail.com>

Make PetscErrorCode a non-discardable enum


# 061e922f 22-Sep-2022 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jacobf/2022-09-21/2-bike-2-shed' into 'main'

Feature: Bicycle Storage Facility 2

See merge request petsc/petsc!5661


# d71ae5a4 21-Sep-2022 Jacob Faibussowitsch <jacob.fai@gmail.com>

source code format changes due to .clang-format changes


# f0af967e 29-Aug-2022 Satish Balay <balay@mcs.anl.gov>

Merge branch 'jolivet/fix-style-one-liners' into 'main'

Remove braces from one-liners w/o PetscCall()

See merge request petsc/petsc!5561


# ad540459 29-Aug-2022 Pierre Jolivet <pierre@joliv.et>

Remove braces from one-liners w/o PetscCall()


# 58d68138 23-Aug-2022 Satish Balay <balay@mcs.anl.gov>

Merge branch 'barry/2022-08-21/clang-format-source' into 'main'

format repository with clang-format

See merge request petsc/petsc!5541


# 9371c9d4 22-Aug-2022 Satish Balay <balay@mcs.anl.gov>

clang-format: convert PETSc sources to comply with clang-format


123