MatOps cleanup
Update to clang-format-20
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>
show more ...
MatSetOption: ignore unused options instead of erroring out
Merge remote-tracking branch 'origin/release'
Improve some manual pages in KSP/SNES
Fix minor typos in the docs for create/preallocation routinesCo-authored-by: Barry Smith <bsmith@petsc.dev>
Add MatCopyHashToXAIJ() to copy hash table entries into an XAIJ matrix type
Brain dead fixes for useless casts
PetscCeilInt: inline method
Merge branch 'jczhang/2024-09-05/feature-mat-get-vpb' into 'main'PC: add new mat ops MATOP_GET_{BLOCK, VBLOCK}_DIAGONALSee merge request petsc/petsc!7811
Fix MPIU_* routines to always return MPI error codes and thus be usable with PetscCallMPI()Introduce MPIU_Count to be used when MPI_Count is not available
PC: add new mat ops MATOP_GET_{BLOCK, VBLOCK}_DIAGONALso that a shell matrix can return its own (variable) point blocks in a matrix for use in PC (V)PBJacobi
Some documentation and visibility fixes
Mat: fix SELL HIP warnings on pragma unroll with rocm-5.4.0/path/to/sellhip.hip.cpp:309:3: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transfor
Mat: fix SELL HIP warnings on pragma unroll with rocm-5.4.0/path/to/sellhip.hip.cpp:309:3: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Wpass-failed=transform-warning] for (int offset = WARP_SIZE / 2; offset >= sliceheight; offset /= 2) { t += __shfl_down(t, offset); }
Docs: fix nonexisting functions and variables
Mat: fix -Wmissing-field-initializers
This requires some changes to user FORTRAN codePass PETSC_NULL_XXX_ARRAY when passing a NULL as an argument that is expecting an arrayPass PETSC_NULL_ENUM when argument returns an enum instead of
This requires some changes to user FORTRAN codePass PETSC_NULL_XXX_ARRAY when passing a NULL as an argument that is expecting an arrayPass PETSC_NULL_ENUM when argument returns an enum instead of PETSC_NULL_INTEGERPass arrays (and not scalar values) when the argument is expecting an array; this means replace, for example, the argument v with [v]Use PetscObjectIsNull(obj) to check if the object is NULL, instead of obj == PETSC_NULL_XXXThe compiler will now automatically prevent you from using the wrong argument type for the first three bullets aboveThis will also require an update sowing with the new sowing branch this MR is using.
Remove now redundant increase in mat nonzero state
Fix serious bugs in MatSetValuesBlocked for SeqBAIJ and MPIBAIJ when a reallocation is needed.Reported-by: Adrian Croucher <a.croucher@auckland.ac.nz>
12345678910