Switch some defined(PETSC_ to PetscDefined(
Merge remote-tracking branch 'origin/release'
Fix the inconsistent usage of #if [!]defined XXX compared to defined(XXX)Thanks-to: Pierre JolivetAn LLM Claude detected the incosnsitency it was not used to remove the inconsistency
Replace mpirun with mpiexec, as only the latter is in the standard
CUDA: replace cuda-memcheck with compute-sanitizercuda-memcheck was deprecated in favor of compute-sanitizer starting with cuda-11.5, and was removed from cuda-12.0
Deprecate -matmatmult_Bbn in favor of -matproduct_batch_sizeSee also -ksp_matsolve_batch_size
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 ...
CI: avoid duplicate file names with cuda/kokkos sources, add a test to checkbadSourcecuda+coverage uses 'nvcc --keep-dir=DIR' option - this createsconflicts with 'make -j' where intermediate gener
CI: avoid duplicate file names with cuda/kokkos sources, add a test to checkbadSourcecuda+coverage uses 'nvcc --keep-dir=DIR' option - this createsconflicts with 'make -j' where intermediate generated files in DIRduring compilation of one source-file might affect the compile ofanother source file - with the same name.CI: linux-cuda-pkgs can now run all tests - so remove the 'vec*' restriction
Improve the propagation of function domain error handling in SNES, especially in the line search routines.Due to the object layering of SNESLineSearch under SNES there is some code duplication incl
Improve the propagation of function domain error handling in SNES, especially in the line search routines.Due to the object layering of SNESLineSearch under SNES there is some code duplication include both SNESLineSearchReason and SNESConvergedReason and SNESCheckFunctionNorm() and SNESLineSearchCheckFunctionNorm() and Jacobian friendsReported-by: david.knezevic@akselos.com
Test: add a missing MatPtAPMultEqual check
MatView(): do not print block size twice
MatDiagonalScale(): consolidate test of input Vecs
Rework MAT_SYMMETRIC and MAT_HERMITIAN options
MatAssemblyEnd(): fix missing space in -info
Mat: set appropriate NO_OFF_PROC_ENTRIES to bypass MPI_Allreduce()
Merge branch 'barry/2025-10-18/optimize-aij-ops' into 'main'Refactor handling of diagonal marking in *AIJ and SELL matricesSee merge request petsc/petsc!8797
- Replace MatMissingDiagonal() and MatMarkDiagonals_SeqXXX() with MatGetDiagonalMarkers_SeqXXX() - Mat_SeqXXX->diag is not automatically created during MatAssemblyEnd() saving memory and time
- Replace MatMissingDiagonal() and MatMarkDiagonals_SeqXXX() with MatGetDiagonalMarkers_SeqXXX() - Mat_SeqXXX->diag is not automatically created during MatAssemblyEnd() saving memory and time - Accessing Mat_SeqXXX->diag now requires the use of MatGetDiagonalMarkers_SeqXXX() except when the current values are known to be correct; for example during numerical factorizations and solves - Mat_SeqXXX->diag is now never shared among matrices; hence the free_diag flag is gone. That was always a risky proposition since any of the owning matrices could chang the values thus making them incorrect for other owners.
Minor fixes
Merge branch 'jolivet/feature-matproduct_atb-seqbaij' into 'main'MatSeqBAIJ: add MatProduct_AtB implementation (B of type MatSeqDense)See merge request petsc/petsc!8848
MatSeqBAIJ: add MatProduct_AtB implementation (B of type MatSeqDense)
MatTranspose: fix MatProduct with non-trivial scalingReported-by: Jose E. Roman <jroman@dsic.upv.es>
Merge branch 'barry/2025-10-24/fix-dmshellsetdestroyctx' into 'main'Finish converting the function prototypes of destroy for contexts to use PetscCtxDestroyFnSee merge request petsc/petsc!8810
Fix outdated output of MatView() for nest matrix with ASCIINow matches VecNest version and does not have outdated reprinting of Mat Object and type
12345678910>>...24