| #
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 ...
|
| #
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
|
| #
186cd71f
|
| 24-Jul-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2023-07-19/lint-apply-ts' into 'main'
Manual linter fixes: ts
See merge request petsc/petsc!6736
|
| #
42747ad1
|
| 21-Jul-2023 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
... and apply it
|
| #
cfd92c66
|
| 22-Jul-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'tisaac/feature-type-generic-petsc-valid-pointer' into 'main'
Implement a type generic PetscValidPointer
See merge request petsc/petsc!6693
|
| #
4f572ea9
|
| 18-Jul-2023 |
Toby Isaac <toby.isaac@gmail.com> |
Rename PetscValidPointer -> PetscAssertPointer
|
| #
7a2f837d
|
| 06-Jul-2023 |
Toby Isaac <toby.isaac@gmail.com> |
Deploy new PetscValidPointer, remove PetscValidXXXPointer
|
| #
02477ebb
|
| 15-Jul-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2023-06-30/enable-doc-lint' into 'main'
Enable docs linting
See merge request petsc/petsc!6667
|
| #
10450e9e
|
| 12-Jul-2023 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
Manual linter fixes: sys
|
| #
aec76313
|
| 12-Jul-2023 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
Lint apply: sys
|
| #
597312bb
|
| 02-May-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
d98e18b1
|
| 01-May-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-04-27/fix-other-sys-man-pages/release' into 'release'
Fix manual pages in viewers subdirectory of sys
See merge request petsc/petsc!6388
|
| #
c410d8cc
|
| 01-May-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix manual pages in viewers subdirectory of sys
|
| #
d01c6957
|
| 28-Mar-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-03-25/fix-more-manualpages' into 'main'
More manual page fixes
See merge request petsc/petsc!6233
|
| #
2fe279fd
|
| 28-Mar-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
More manual page fixes
|
| #
7ce98433
|
| 07-Mar-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-03-05/fix-viewer-man-pages' into 'main'
Fix up viewer manual pages
See merge request petsc/petsc!6148
|
| #
3f423023
|
| 07-Mar-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix up viewer manual pages
Commit-type: documentation
|
| #
ae51ba10
|
| 14-Feb-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-02-08/fix-ksp-monitor-eigenvalues-draw' into 'main'
Fix bug in KSP monitoring eigenvalues with draw
See merge request petsc/petsc!6038
|
| #
01311c95
|
| 08-Feb-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
Minor fixes to viewer manual pages
Commit-type: documentation
|
| #
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
|