Add automatic generated fortran support for setting and returning contextsMajor 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 contextsMajor 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 PetscCtxDestroyFnBoth of these are typedef to void*Also removed most use of user and userctx for context arguments now consistently named ctxImproved documentation on PetscCtx and PetscCtxRt and on how to use contexts (including getting them) from Fortran
show more ...
Merge remote-tracking branch 'origin/release'
Fix a race condition in PCMPISolve() when using Unix shared memory.The 0th rank accesses the solution of the other rocesses before the other processes have finished updating the final solution loca
Fix a race condition in PCMPISolve() when using Unix shared memory.The 0th rank accesses the solution of the other rocesses before the other processes have finished updating the final solution locally. This cannot happen with the MPI communication based version because the communication is done with an MPI_Allgatherv() that blocks on the processes getting to that point before copying over the data.Reported-by: Marsha Berger
Use PetscBool instead of PetscInt for setupcalledPetscInt was used in some structs, but the underlying logic requires only Booleans. Also removed an unused variable and unified capitalization.
Fortran 90: fully embrace After 34 years!- deprecate use of 'F90' in Fortran function names- use Fortran pointers when appropriate- the new Fortran API is not backward compatible with previous ve
Fortran 90: fully embrace After 34 years!- deprecate use of 'F90' in Fortran function names- use Fortran pointers when appropriate- the new Fortran API is not backward compatible with previous versions!- also clean up inconsistent PETSc code detected by new Fortran generation tools- drop use of bfort- automatically generate all the Fortran PETSc objects, enums etc from the include files- generate most of the Fortran interface definitions and functions from the source code- simplify the number and organization of Fortran modulesCo-authored-by: Jose E. Roman <jroman@dsic.upv.es>
Fix bug in PetscShmgetDeallocateArray needs to call PetscCheck(!shmdt(next->addr), since that is not called in the unmap on rank 0Reported-by: Marsha BergerReported-by: Randy Leveque
Fix PCMPI for non-shared memory communication to work with 64-bit-indices.Reported-by: Shawn L
Brain dead fixes for useless casts
Unifies all context destructors to have a form of PetscCtxDestroyFn == PetscErrorCode (*)(void **)Changes the previous subset of destructor APIs that used PetscErrorCode (*)(void *) (mostly those t
Unifies all context destructors to have a form of PetscCtxDestroyFn == PetscErrorCode (*)(void **)Changes the previous subset of destructor APIs that used PetscErrorCode (*)(void *) (mostly those thatused PetscContainer- Now allows any context to be a PetscObject- Will provide a cleaner mapping to bindings in other languages- Simplifies the maintenance of PETSc source code; improves clarityNot backward compatible, compiler warnings will tell users what functions need to be updated
Fix typos
CI: update checkclangformat to use clang-format-19.1.0
Add to CI compilers flags '-Wconversion', '-Wno-sign-conversion', '-Wno-float-conversion', '-Wno-implicit-float-conversion']Also fix the code to repository to compile cleanly with these flags in th
Add to CI compilers flags '-Wconversion', '-Wno-sign-conversion', '-Wno-float-conversion', '-Wno-implicit-float-conversion']Also fix the code to repository to compile cleanly with these flags in the CI
Fix -Wunused-variablesrc/ksp/pc/impls/mpi/pcmpi.c:598:18: warning: unused variable 'dummy1' [-Wunused-variable]src/ksp/pc/impls/mpi/pcmpi.c:598:31: warning: unused variable 'dummy2' [-Wunused-vari
Fix -Wunused-variablesrc/ksp/pc/impls/mpi/pcmpi.c:598:18: warning: unused variable 'dummy1' [-Wunused-variable]src/ksp/pc/impls/mpi/pcmpi.c:598:31: warning: unused variable 'dummy2' [-Wunused-variable]
Add shared memory support for PCMPI using both shmget() and MPI_Win_allocate_shared()
Remove outdated comment from pcmpi.cCommit-type: housekeeping
Add logging for distribution times needed for PCMPI
The use case of PetscOptionsGetViewer() has evolved to no longer be the get/restore modelHence the code needs to be refactoredIntroduce PetscCallNull() and PetscCallMPINull() to simplify PETSC_VI
The use case of PetscOptionsGetViewer() has evolved to no longer be the get/restore modelHence the code needs to be refactoredIntroduce PetscCallNull() and PetscCallMPINull() to simplify PETSC_VIEWER_XXXX_() routinesReported-by: James WrightThanks-to: Jeremy L Thompson
Minor housekeeping
Docs: fix missing or extra dash in right-hand side
Ensure that objects created in PCMPI log stage are destroyed in said stage for clarity of output with --log_view
Fix PCMPI log stage when PCMPI not used.Reported-by: Pierre Jolivet
LIBBASE is no longer used in make so remove it
123