| #
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
|
| #
732aec7a
|
| 22-Sep-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/remove-cast' into 'main'
Use NULL or nullptr instead of casted 0
See merge request petsc/petsc!7857
|
| #
c8025a54
|
| 21-Sep-2024 |
Pierre Jolivet <pierre@joliv.et> |
Use NULL or nullptr instead of casted 0
|
| #
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 ...
|
| #
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
|
| #
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
|
| #
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
|
| #
5cab5458
|
| 26-Jul-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-07-23/add-petscbeginuser' into 'main'
Add PetscFunctionBeginUser to all PETSc C/C++ examples
See merge request petsc/petsc!5470
|
| #
327415f7
|
| 23-Jul-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Add PetscFunctionBeginUser to all PETSc C/C++ examples
Now the stack frames will contain the main program and the correct line numbers in them
git ls-files | egrep "(tutorials|tests)" | xargs sed -
Add PetscFunctionBeginUser to all PETSc C/C++ examples
Now the stack frames will contain the main program and the correct line numbers in them
git ls-files | egrep "(tutorials|tests)" | xargs sed -i "s?\(PetscCall(PetscInitialize(&argc\)?PetscFunctionBeginUser;\n \1?g"
Commit-type: error-checking, testing-fix /spend 15m
show more ...
|
| #
f882803c
|
| 26-Mar-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-02-23/variadic-chkerr' into 'main'
Variadic CHKERRQ()
See merge request petsc/petsc!4889
|
| #
9566063d
|
| 25-Mar-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
The great renaming:
- CHKERRQ() -> PetscCall() - CHKERRV() -> PetscCallVoid() - CHKERRMPI() -> PetscCallMPI() - CHKERRABORT() -> PetscCallAbort() - CHKERRCONTINUE() -> PetscCallContinue() - CHKERRXX
The great renaming:
- CHKERRQ() -> PetscCall() - CHKERRV() -> PetscCallVoid() - CHKERRMPI() -> PetscCallMPI() - CHKERRABORT() -> PetscCallAbort() - CHKERRCONTINUE() -> PetscCallContinue() - CHKERRXX() -> PetscCallThrow() - CHKERRCXX() -> PetscCallCXX() - CHKERRCUDA() -> PetscCallCUDA() - CHKERRCUBLAS() -> PetscCallCUBLAS() - CHKERRCUSPARSE() -> PetscCallCUSPARSE() - CHKERRCUSOLVER() -> PetscCallCUSOLVER() - CHKERRCUFFT() -> PetscCallCUFFT() - CHKERRCURAND() -> PetscCallCURAND() - CHKERRHIP() -> PetscCallHIP() - CHKERRHIPBLAS() -> PetscCallHIPBLAS() - CHKERRHIPSOLVER() -> PetscCallHIPSOLVER() - CHKERRQ_CEED() -> PetscCallCEED() - CHKERR_FORTRAN_VOID_FUNCTION() -> PetscCallFortranVoidFunction() - CHKERRMKL() -> PetscCallMKL() - CHKERRMMG() -> PetscCallMMG() - CHKERRMMG_NONSTANDARD() -> PetscCallMMG_NONSTANDARD() - CHKERRCGNS() -> PetscCallCGNS() - CHKERRPTSCOTCH() -> PetscCallPTSCOTCH() - CHKERRSTR() -> PetscCallSTR() - CHKERRTC() -> PetscCallTC()
show more ...
|
| #
b122ec5a
|
| 24-Mar-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
PetscInitialize() and PetscFinalize() wrapped:
- ierr = PetscInitialize();if (ierr) return ierr; + CHKERRQ(PetscInitialize());
- ierr = PetscFinalize(); - return ierr; + CHKERRQ(PetscFinalize()); +
PetscInitialize() and PetscFinalize() wrapped:
- ierr = PetscInitialize();if (ierr) return ierr; + CHKERRQ(PetscInitialize());
- ierr = PetscFinalize(); - return ierr; + CHKERRQ(PetscFinalize()); + return 0;
show more ...
|
| #
28b400f6
|
| 03-Mar-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
pluck ~1000 low hanging PetscCheckFalse() -> PetscCheck() fruit
|
| #
5f80ce2a
|
| 24-Feb-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
chkerr and friends wrapped
|
| #
1241a243
|
| 13-Feb-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-01-05/c99' into 'main'
Feature: C99 and C++11
See merge request petsc/petsc!4700
|
| #
2c71b3e2
|
| 11-Feb-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
rename PetscAssert() -> PetscCheck() and PetscAssertDebug() -> PetscAssert()
|
| #
9ace16cd
|
| 28-Jan-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
add PetscAssert() and PetscAssertFalse()
|
| #
940e4fdf
|
| 12-Jan-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2021-12-09/attribute-format-mat' into 'main'
Feature: Attribute Format - Mat
See merge request petsc/petsc!4634
|