| #
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 **
|
| #
609caa7c
|
| 19-Jul-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/rm-explicit-empty-output_file' into 'main'
Remove 535 empty .out and consolidate the use of output/empty.out
See merge request petsc/petsc!8538
|
| #
3886731f
|
| 09-Jul-2025 |
Pierre Jolivet <pierre@joliv.et> |
Remove explicitly listed empty files and switch to output/empty.out
|
| #
a370cb8a
|
| 21-Oct-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'knepley/feature-hamiltonian-ex2-opt' into 'main'
Fix Hamiltonian ex2 for Landau Damping
See merge request petsc/petsc!7937
|
| #
d52c2f21
|
| 02-Oct-2024 |
Matthew G. Knepley <knepley@gmail.com> |
DMSwarm: Allow multiple fields to define the DM field and multiple cellDM, allow different coordinate fields, and compute moments - Changed interface for DMSwarmVectorDefineField() and DMSwarmVectorG
DMSwarm: Allow multiple fields to define the DM field and multiple cellDM, allow different coordinate fields, and compute moments - Changed interface for DMSwarmVectorDefineField() and DMSwarmVectorGetField() to allow multiple fields - Add DMSwarmReplace_Internal() - Add coordinate name to Swarm - Add DMSwarmGetCoordinateField() and DMSwarmSetCoordinateField() - Add DMSwarmComputeMoments() - In DMLocatePoints_Plex(), ignore extra coordinates in input vector - Add CellDMInfo struct - Add DMSwarmPushCellDM() and DMSwarmPopCellDM()
show more ...
|
| #
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 ...
|
| #
970231d2
|
| 07-Mar-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/clang-format-18' into 'main'
clang-format version 18
See merge request petsc/petsc!6902
|
| #
4d86920d
|
| 10-Feb-2024 |
Pierre Jolivet <pierre@joliv.et> |
checkbadSource: rules for PetscFunctionBegin and derivatives
|
| #
e91cb65e
|
| 03-Mar-2024 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'knepley/fix-swarm-view' into 'main'
Fix swarm view or Mark
See merge request petsc/petsc!7331
|
| #
d57da699
|
| 01-Mar-2024 |
Matthew G. Knepley <knepley@gmail.com> |
SNES ex15: Set particles from options
|
| #
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 ...
|
| #
7a3a620f
|
| 24-Feb-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/housekeeping' into 'main'
Double spaces, wrong backticks, or unneeded braces
See merge request petsc/petsc!6110
|
| #
aa624791
|
| 24-Feb-2023 |
Pierre Jolivet <pierre@joliv.et> |
Double spaces, wrong backticks, or unneeded braces
|
| #
71efe6b0
|
| 22-Feb-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'danofinn/swarm-example-landau-damping' into 'main'
Swarm: Add swarm ex9 Landau damping + tests (ex6, ex8, snes/ex15)
See merge request petsc/petsc!6026
|
| #
f890e79b
|
| 18-Feb-2023 |
Matthew G. Knepley <knepley@gmail.com> |
SNES ex15: Mixed Poisson example
|