| #
9d47de49
|
| 18-Feb-2026 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2026-02-14/fix-defined-missing-braces' into 'main'
Fix the inconsistent usage of #if defined XXX compared to defined(XXX)
See merge request petsc/petsc!9040
|
| #
beceaeb6
|
| 15-Feb-2026 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix the inconsistent usage of #if [!]defined XXX compared to defined(XXX)
Thanks-to: Pierre Jolivet
An LLM Claude detected the incosnsitency it was not used to remove the inconsistency
|
| #
bd89dbf2
|
| 07-Jan-2026 |
Satish Balay <balay@mcs.anl.gov> |
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
|
| #
76c63389
|
| 24-Dec-2025 |
Barry Smith <bsmith@mcs.anl.gov> |
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 friends
Reported-by: david.knezevic@akselos.com
show more ...
|
| #
834855d6
|
| 27-Aug-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/clang-format-21' into 'main'
clang-format-21
See merge request petsc/petsc!8202
|
| #
ac530a7e
|
| 03-Jun-2025 |
Pierre Jolivet <pierre@joliv.et> |
Remove unnecessary braces around one-liners
git grep -lE "[ ]*(if|for|while) \(.*\) {[^;]*;[^;]*}$" -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | xargs sed -i '' -E 's#([ ]*)(if|for|while) \((.*)\
Remove unnecessary braces around one-liners
git grep -lE "[ ]*(if|for|while) \(.*\) {[^;]*;[^;]*}$" -- '*.c' '*.cxx' '*.cu' '*.h' '*.hpp' '*.cpp' | xargs sed -i '' -E 's#([ ]*)(if|for|while) \((.*)\) {([^;]*);([^;]*)}$#\1\2 \(\3\)\4;\5#'
show more ...
|
| #
3a7d0413
|
| 12-May-2025 |
Pierre Jolivet <pierre@joliv.et> |
One-liners from petsc/petsc!5344 and petsc/petsc!5557
Slightly reworked regular expression
git 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!5557
Slightly reworked regular expression
git 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
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
|
| #
4ad8454b
|
| 09-Feb-2024 |
Pierre Jolivet <pierre@joliv.et> |
Remove some unneeded parentheses
|
| #
f4f49eea
|
| 11-Feb-2024 |
Pierre Jolivet <pierre@joliv.et> |
Remove multiple parentheses and extra semicolon
git grep -l -E "\(\([a-zA-Z0-9_]+\)\(\*[a-zA-Z0-9_]+\)[, )]" | xargs sed -r -i'' 's#\(\(([a-zA-Z0-9_]+)\)\(\*([a-zA-Z0-9_]+)\)([, )])#\(\(\1\)\*\2\3#g
Remove multiple parentheses and extra semicolon
git grep -l -E "\(\([a-zA-Z0-9_]+\)\(\*[a-zA-Z0-9_]+\)[, )]" | xargs sed -r -i'' 's#\(\(([a-zA-Z0-9_]+)\)\(\*([a-zA-Z0-9_]+)\)([, )])#\(\(\1\)\*\2\3#g' git grep -l -E "Petsc(.)*\(\(\*[a-zA-Z0-9_]*\)," | xargs sed -r -i'' 's#Petsc([a-zA-Z0-9_]*)\(\(\*([a-zA-Z0-9_]*)\), #Petsc\1(*\2, #g' git grep -l -E "([\!\&\~\*\(]|\)\)|\([^,\*\(]+\**\))\(([a-zA-Z0-9_]+((\.|->)[a-zA-Z0-9_]+|\[[a-zA-Z0-9_ \%\+\*\-]+\])+)\)" | xargs sed -r -i'' 's#([\!\&\~\*\(]|\)\)|\([^,\*\(]+\**\))\(([a-zA-Z0-9_]+((\.|->)[a-zA-Z0-9_]+|\[[a-zA-Z0-9_ \%\+\*\-]+\])+)\)#\1\2#g'
show more ...
|
| #
3c9c10a1
|
| 01-Aug-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/fix-typo' into 'main'
Fix typos
See merge request petsc/petsc!6771
|
| #
145b44c9
|
| 31-Jul-2023 |
Pierre Jolivet <pierre@joliv.et> |
Fix typos
|
| #
fee6f971
|
| 03-Apr-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
2cd4e341
|
| 03-Apr-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'balay/ci-macos-upgrade' into 'release'
CI: upgrade software stack on MacOS workers
See merge request petsc/petsc!6273
|
| #
ae1eecf8
|
| 01-Apr-2023 |
Hong Zhang <hongzhang@anl.gov> |
Replace sprintf with snprintf to eliminate compiler warnings
/Users/petsc/builds/qaG_QyAe/1/petsc/petsc/src/mat/tests/cJSON.c:121:3: error: 'sprintf' is deprecated: This function is provided for com
Replace sprintf with snprintf to eliminate compiler warnings
/Users/petsc/builds/qaG_QyAe/1/petsc/petsc/src/mat/tests/cJSON.c:121:3: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations] sprintf(version, "%i.%i.%i", CJSON_VERSION_MAJOR, CJSON_VERSION_MINOR, CJSON_VERSION_PATCH); ^
Also fix compiler warning:
/scratch/svcpetsc/glci-builds-stage2/AbTGp5-t/0/petsc/petsc/src/mat/tests/cJSON.c: In function ‘print_string_ptr’: /scratch/svcpetsc/glci-builds-stage2/AbTGp5-t/0/petsc/petsc/src/mat/tests/cJSON.c:817:47: error: ‘%04x’ directive output truncated writing 4 bytes into a region of size 3 [-Werror=format-truncation=] 817 | snprintf((char *)output_pointer, 4, "u%04x", *input_pointer); | ^~~~ /scratch/svcpetsc/glci-builds-stage2/AbTGp5-t/0/petsc/petsc/src/mat/tests/cJSON.c:817:45: note: directive argument in the range [0, 255] 817 | snprintf((char *)output_pointer, 4, "u%04x", *input_pointer); | ^~~~~~~ In file included from /usr/include/stdio.h:867, from /scratch/svcpetsc/glci-builds-stage2/AbTGp5-t/0/petsc/petsc/src/mat/tests/cJSON.c:41: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 6 bytes into a destination of size 4 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
show more ...
|
| #
5c240f23
|
| 26-Oct-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'hongzh/benchmarks' into 'main'
Initial step toward continuous benchmarking
See merge request petsc/petsc!5641
|
| #
89928cc5
|
| 29-May-2022 |
Hong Zhang <hongzhang@anl.gov> |
Add benchmark script, driver for SpMV
- Support multiple mat formats - Included Kokkos - Use SSGET to download SuiteSparse matrix automatically
|