| #
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
|
| #
6c37f76f
|
| 27-Jul-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'tisaac/feature-log-handler' into 'main'
Deglobalize logging into PetscLogHandler and PetscLogState
See merge request petsc/petsc!6709
|
| #
ad2e3d55
|
| 14-Jul-2023 |
Toby Isaac <toby.isaac@gmail.com> |
Profiling: Use PetscOptionsGetViewers() in -log_view
|
| #
09222b14
|
| 14-Jul-2023 |
Toby Isaac <toby.isaac@gmail.com> |
PetscViewer: Add PetscOptionsGetViewers() for multiple viewers
- Add src/sys/classes/viewer/tests/ex7.c to test this function
|
| #
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
|
| #
fc8a290c
|
| 03-Jun-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'stefanozampini/gamg' into 'main'
some housekeeping before the PETSc user meeting
See merge request petsc/petsc!6534
|
| #
6adde796
|
| 01-Jun-2023 |
Stefano Zampini <stefano.zampini@gmail.com> |
Fix some improper use of COMM_SELF in error reporting
|
| #
01fc6e75
|
| 22-May-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
50c89487
|
| 22-May-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-05-10/fix-man-pages-trivial/release' into 'release'
Fix trivial typos etc in some manual pages
See merge request petsc/petsc!6450
|
| #
37fdd005
|
| 10-May-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix trivial typos etc in some manual pages
Also remove manual page for SNESNGSFunction since it does not exist
|
| #
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
|
| #
e9f36840
|
| 18-Mar-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-03-08/fix-man-pages-detected-by-lint' into 'main'
Fix many manual pages
See merge request petsc/petsc!6162
|
| #
20f4b53c
|
| 09-Mar-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix manual pages based on reports from Jacob's lint tool
Commit-type: documentation
|
| #
5a7a9864
|
| 14-Mar-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jeremy/less-strcpy-strcat' into 'main'
Use Petsc[Strncpy,Strlcat,Memcpy] over Petsc[Strcpy,Strcat]
Closes #1332
See merge request petsc/petsc!6115
|