checkbadSource: enforce proper style in makefiles
Merge remote-tracking branch 'origin/release'
Remove use of preconditioning or preconditioner matrix when it should be phrased as matrix used to construct preconditioner
Add `MatFDColoringFn` typedef
Improve some manual pages in KSP/SNES
CI: update checkclangformat to use clang-format-19.1.0
Remove trailing whitespace
checkbadSource: rules for PetscFunctionBegin and derivatives
Remove MANSEC from makefiles it is not needed in, tutorials and tests
Fix use of offdiagonal to off-diagonal
Remove first and last empty lines
Fix the places that should be using PETSC_STATIC_ARRAY_LENGTH
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 ...
Remove need for seperate lib/petsc/conf/test file by merging with rules fileCommit-type: maintainability
Remove unneeded declarations of LOCDIR from all the makefilesCommit-type:documentation
Fix Typos
Make PetscErrorCode a non-discardable enum
source code format changes due to .clang-format changes
Fix/update/improve manual pages in snes directoryMinor changes to source codeCommit-type: housekeeping, documentation/spend 8h
Remove braces from one-liners
clang-format: convert PETSc sources to comply with clang-format
Add PetscFunctionBeginUser to all PETSc C/C++ examplesNow the stack frames will contain the main program and the correct line numbers in themgit ls-files | egrep "(tutorials|tests)" | xargs sed -
Add PetscFunctionBeginUser to all PETSc C/C++ examplesNow the stack frames will contain the main program and the correct line numbers in themgit ls-files | egrep "(tutorials|tests)" | xargs sed -i "s?\(PetscCall(PetscInitialize(&argc\)?PetscFunctionBeginUser;\n \1?g"Commit-type: error-checking, testing-fix/spend 15m
Get values of makefile SOURCE etc from the file system instead of makefilesUse SUBMANSEC from include files for manual sections instead of the makefileUnfortunately this has to be one large commi
Get values of makefile SOURCE etc from the file system instead of makefilesUse SUBMANSEC from include files for manual sections instead of the makefileUnfortunately this has to be one large commit since the changes all have to be done at onceCommit-type: docs/spend 10m
remove garbage from makefilesIncluding * unused FLAGS variables * All: lib that did not work * stray blank lines etcCommit-type: housekeeping/spend 1h
12