| #
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 ...
|
| #
be37439e
|
| 21-Oct-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'stefanozampini/useless-cast' into 'main'
Remove useless cast
See merge request petsc/petsc!7894
|
| #
835f2295
|
| 05-Oct-2024 |
Stefano Zampini <stefano.zampini@gmail.com> |
Brain dead fixes for useless casts
|
| #
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 ...
|
| #
cef0416b
|
| 15-May-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2024-04-26/fix-sowing-viewers' into 'main'
Remove manual Fortran stubs for PetscViewer and PetscObject arguments since now handled by sowing
See merge request petsc/petsc!7511
|
| #
ffeef943
|
| 28-Apr-2024 |
Barry Smith <bsmith@mcs.anl.gov> |
Update to sowing version that supports PetscViewer and PetscObject
Remove manual Fortran stubs for PetscViewer and PetscObject arguments since now handled by sowing
Also handles the passing of null
Update to sowing version that supports PetscViewer and PetscObject
Remove manual Fortran stubs for PetscViewer and PetscObject arguments since now handled by sowing
Also handles the passing of null objects correctly
show more ...
|
| #
b4e1aadf
|
| 05-Apr-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'knepley/fix-view-doc' into 'main'
Doc: Fix doc for viewing from options
See merge request petsc/petsc!7440
|
| #
89efdf64
|
| 05-Apr-2024 |
Matthew G. Knepley <knepley@gmail.com> |
Doc: Fix doc for viewing from options
|
| #
4ef3c568
|
| 23-Dec-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
0b42b9b1
|
| 23-Dec-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-12-18/docs-fix-type-compare-nay/release' into 'release'
Fix docs for PetscObjectBaseTypeCompareAny() and PetscObjectTypeCompareAny()
See merge request petsc/petsc!7131
|
| #
dde44402
|
| 19-Dec-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix docs for PetscObjectBaseTypeCompareAny() and PetscObjectTypeCompareAny()
|
| #
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 ...
|
| #
2e6367d0
|
| 23-Oct-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
0bb6da08
|
| 22-Oct-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-10-20/fix-petsc-case/release' into 'release'
Minor manual page fixes
See merge request petsc/petsc!6950
|
| #
8ea61f2e
|
| 22-Oct-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
Minor manual page fixes
|
| #
e8e8640d
|
| 26-Sep-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/rm-first-empty-line' into 'main'
Remove first and last empty lines
See merge request petsc/petsc!6892
|
| #
92bec4ee
|
| 26-Sep-2023 |
Pierre Jolivet <pierre@joliv.et> |
Remove first and last empty lines
|
| #
9c5460f9
|
| 17-Aug-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2023-08-09/linter-detect-static-function-candidates' into 'main'
Linter detect possible static functions
See merge request petsc/petsc!6796
|
| #
66976f2f
|
| 14-Aug-2023 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
Add static to internal functions
|
| #
b5b1a1b8
|
| 13-Aug-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-08-10/cannot-destroy-persistant-objects' into 'main'
(1) Fix error return codes for PetscHeaderCreate/Destroy() Cannot use || on them (2) do not allow destroying PETSC_VIEWE
Merge branch 'barry/2023-08-10/cannot-destroy-persistant-objects' into 'main'
(1) Fix error return codes for PetscHeaderCreate/Destroy() Cannot use || on them (2) do not allow destroying PETSC_VIEWER_STDOUT_SELF etc
See merge request petsc/petsc!6804
show more ...
|
| #
34fa283e
|
| 10-Aug-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
Some objects such as PETSC_VIEWER_STDOUT_WORLD cannot be destroyed by users.
Reported-by: maitri ksh <maitri.ksh@gmail.com>
|
| #
c6013d66
|
| 09-Aug-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2023-06-06/register-finalize-reverse-order' into 'main'
Fix PetscDeviceContext Memory Leak (And Make PetscXXXRegisterFinalize() Order Hierarchical)
See merge request petsc/pets
Merge branch 'jacobf/2023-06-06/register-finalize-reverse-order' into 'main'
Fix PetscDeviceContext Memory Leak (And Make PetscXXXRegisterFinalize() Order Hierarchical)
See merge request petsc/petsc!6559
show more ...
|