Fix style of 6497c311e7b976d467be1503c1effce92a60525c
Merge branch 'barry/2025-12-24/improve-snes-domain-error-handling' into 'main'Improve the propagation of function domain error handling in SNES, especially...See merge request petsc/petsc!8914
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
show more ...
Replace -with-mpi-f90module-visibility with -with-mpi-f90module=mpi_f08Add PETSC_INT_KIND and PETSC_MPIINT_KINDReported-by: M.Weiland@epcc.ed.ac.uk
Remove unneeded blank lines
Housekeeping
Add the logging of gpu energy- Remove unneeded PETSC_HAVE_DEVICE macro- -log_view_gpu_energy requires CUDA version >= 12.2- Use PetscDefined instead of macro
Remove more unneeded parentheses
checkbadSource: enforce proper style in makefiles
Deprecate MPIU_BOOL which used to be for PETSc' enum Bool but now is just MPI_C_BOOL so no longer needs its own name
Remove unnecessary braces around one-linersgit grep -lE "[ ]*(if|for|while) \(.*\) {[^;]*;[^;]*}$" -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | xargs sed -i '' -E 's#([ ]*)(if|for|while) \((.*)\
Remove unnecessary braces around one-linersgit grep -lE "[ ]*(if|for|while) \(.*\) {[^;]*;[^;]*}$" -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | xargs sed -i '' -E 's#([ ]*)(if|for|while) \((.*)\) {([^;]*);([^;]*)}$#\1\2 \(\3\)\4;\5#'
One-liners from petsc/petsc!5344 and petsc/petsc!5557Slightly reworked regular expressiongit ls-files -z -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | while IFS= read -r -d '' file; do cat
One-liners from petsc/petsc!5344 and petsc/petsc!5557Slightly reworked regular expressiongit ls-files -z -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | while IFS= read -r -d '' file; do cat $file | tr '\n' '\r' | sed -E 's/\r([ ]*)(for|if|while|else) ([^\r]*)\{\r[ ]*Petsc([a-zA-Z]*)\(([^\r]*)\);\r[ ]*\}\r/\r\1\2 \3Petsc\4(\5);\r/g' | tr '\r' '\n' > ${file}.joe; mv ${file}.joe ${file}done
Merge remote-tracking branch 'origin/release'
Sys: fix datetype and op used in MPIU_Allreduce wrt time
Log: fix a bug with unsync'ed variables resulting in unmatched MPI_AllreduceThe variable is a timer such that the bug was non-deterministic.The test code ex2f.F90 is adapted by Christiaan Klaij <
Log: fix a bug with unsync'ed variables resulting in unmatched MPI_AllreduceThe variable is a timer such that the bug was non-deterministic.The test code ex2f.F90 is adapted by Christiaan Klaij <C.Klaij@marin.nl>Reported-by: Christiaan Klaij <C.Klaij@marin.nl>Reported-by: Zongze Yang <yangzongze@gmail.com>
Sys: replace processors with processes as process is the correct term in MPIMPI uses "MPI process" and "rank of MPI process".Not meant to replace all "processors" in petsc code, but some importan
Sys: replace processors with processes as process is the correct term in MPIMPI uses "MPI process" and "rank of MPI process".Not meant to replace all "processors" in petsc code, but some important ones in -log_view output
Logging - Fix order of nested resumed events to match original nesting
Merge branch 'zach/log_roctx' into 'main'Add `-log_roctx` to automatically instrument PETSc events for rocprofSee merge request petsc/petsc!8372
Add `-log_roctx` to automatically instrument PETSc events for rocprof
Sys: more fixes for PetscLogView()Reported-by: Volker Jacht @jac_grs
Sys: check in PetscLogView() only when in PetscFinalize()Fixes #1761Reported-by: Volker Jacht @jac_grs
Fix -log_view to display 1e-6 correctly
Logging: Account for multiple log viewers in final checks (with new test)PetscLogHandlerView_Default_Info() wants to be sure that the only objects still in existenceat the end are the viewers for
Logging: Account for multiple log viewers in final checks (with new test)PetscLogHandlerView_Default_Info() wants to be sure that the only objects still in existenceat the end are the viewers for the log handlers: this commit creates globals to keep track ofhow many of these have been created and destroyed.sys_tests-ex30_11 and sys_tests-ex30_12 test this functionalityReported-by: Jed Brown <jed@jedbrown.org>Co-authored-by: Jed Brown <jed@jedbrown.org>Helped-by: Pierre Jolivet <pierre@joliv.et>
Fix wrong case for PETSc
12345678910>>...20