Fix some malformed if !defined() header guards
Profiling: Improve !defined(PETSC_USE_LOG) #defines- If we cast macro arguments to void, we can avoid unused errors that have forced lots of conditionally included code like this:```c #if def
Profiling: Improve !defined(PETSC_USE_LOG) #defines- If we cast macro arguments to void, we can avoid unused errors that have forced lots of conditionally included code like this:```c #if defined(PETSC_USE_LOG) PetscLogEvent event; #endif```- Having global counters like petsc_TotalFlops externed event if !PetscDefined(USE_LOG) helps to remove a lot of needless `#ifdef`s around code that can instead be placed in `if (PetscDefined(USE_LOG)) {}` blocks.
show more ...
Remove unneeded output files
Fix PetscCallMPI(MPI_Allreduce()) with PETSc types
Remove need for seperate lib/petsc/conf/test file by merging with rules fileCommit-type: maintainability
Remove empty preprocessor variables
Merge branch 'jolivet/housekeeping' into 'main'Some more housekeepingSee merge request petsc/petsc!6130
Remove unneeded declarations of LOCDIR from all the makefilesCommit-type:documentation
Docs: small fixes and typos
Make PetscErrorCode a non-discardable enum
Modernize and clean up petscsys.h- Deprecate PETSC_NULL.- Switch from preprocessor defines to anonymous enums for constant expressions.- Surround macro arguments in ().- Remove redundant casts.
Modernize and clean up petscsys.h- Deprecate PETSC_NULL.- Switch from preprocessor defines to anonymous enums for constant expressions.- Surround macro arguments in ().- Remove redundant casts.- Clean up overly complex preprocessor defines in various PetscMem*() functions.
A few more codespell fixes
source code format changes due to .clang-format changes
makefile: fix typo - petsckdir.mk -> petscdir.mk
Remove braces from one-liners w/o PetscCall()
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
Variable initialization to prevent incorrect compiler warningsCommit-type: portability-fix, testing-fix/spend 5m
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
Add -include */petscdir.mk to makefile that lacked itfor i in `git ls-files | grep makefile | xargs grep -L petscdir.mk`; do echo $i ; str=`echo $i |sed -e 's?[-a-zA-Z0-9]*/?../?g' -e 's?makef
Add -include */petscdir.mk to makefile that lacked itfor i in `git ls-files | grep makefile | xargs grep -L petscdir.mk`; do echo $i ; str=`echo $i |sed -e 's?[-a-zA-Z0-9]*/?../?g' -e 's?makefile?petsckdir.mk?g'` ; cp $i tmp echo "-include $str" > $i cat tmp >> $idoneCommit-type: makefile, housekeeping/spend 15m
remove garbage from makefilesIncluding * unused FLAGS variables * All: lib that did not work * stray blank lines etcCommit-type: housekeeping/spend 1h
Remove extra spaces and unwanted plurals
Remove use of PetscCheckFalse() from TS directoryCommit-type: housekeeping/spend 15m
Enable PETSC_ATTRIBUTE_FORMAT()
1234