| #
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
|
| #
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 ...
|
| #
6bfab512
|
| 28-Apr-2025 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2025-04-20/docs-linear-regressor-in-ksp' into 'main'
Mention linear regressor in KSP docs and KSP usage from linear regressor
See merge request petsc/petsc!8334
|
| #
789736e1
|
| 20-Apr-2025 |
Barry Smith <bsmith@mcs.anl.gov> |
Mention linear regressor in KSP docs and KSP usage from linear regressor
|
| #
cbb74892
|
| 02-Dec-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
c87f018d
|
| 01-Dec-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2023-11-24/fix-ksp-manpages/release' into 'release'
Fix manual pages in KSP
See merge request petsc/petsc!7055
|
| #
562efe2e
|
| 01-Dec-2023 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix manual pages in KSP
|
| #
e8e8640d
|
| 26-Sep-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/rm-first-empty-line' into 'main'
Remove first and last empty lines
See merge request petsc/petsc!6892
|
| #
92bec4ee
|
| 26-Sep-2023 |
Pierre Jolivet <pierre@joliv.et> |
Remove first and last empty lines
|
| #
31d78bcd
|
| 02-Feb-2023 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-12-10/petscerrorcode-nodiscard' into 'main'
Feature: Non-discardable PetscErrorCode
See merge request petsc/petsc!5923
|
| #
3ba16761
|
| 10-Dec-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
Make PetscErrorCode a non-discardable enum
|
| #
061e922f
|
| 22-Sep-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-09-21/2-bike-2-shed' into 'main'
Feature: Bicycle Storage Facility 2
See merge request petsc/petsc!5661
|
| #
d71ae5a4
|
| 21-Sep-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
source code format changes due to .clang-format changes
|
| #
b7124133
|
| 20-Sep-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-09-17/slimmer-petscobject' into 'main'
Feature: Slimmer PetscObject
See merge request petsc/petsc!5649
|
| #
4dfa11a4
|
| 17-Sep-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
Remove parent, parentid, flops, time, mem, and memchildren. Deprecate PetscLogObjectParent(), PetscLogObjectMemory(), and PetscNewLog()
|
| #
ecc2da3c
|
| 19-Sep-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-09-04/fix-pc-man-pages' into 'main'
Clean up manual pages in src/ksp/pc
See merge request petsc/petsc!5593
|
| #
f1580f4e
|
| 04-Sep-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Clean up manual pages in src/ksp/pc
Commit-type: documentation /spend 10h
|
| #
58d68138
|
| 23-Aug-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-08-21/clang-format-source' into 'main'
format repository with clang-format
See merge request petsc/petsc!5541
|
| #
9371c9d4
|
| 22-Aug-2022 |
Satish Balay <balay@mcs.anl.gov> |
clang-format: convert PETSc sources to comply with clang-format
|
| #
dc34d9f7
|
| 17-Jun-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'stefanozampini/fix-function-composition' into 'main'
fix function composition
See merge request petsc/petsc!5274
|
| #
2e956fe4
|
| 24-May-2022 |
Stefano Zampini <stefano.zampini@gmail.com> |
PetscObjectFunctionCompose: clean up composed functions at Destroy time
|
| #
70719257
|
| 10-May-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'psanan/docs-seealso-formatting' into 'main'
Docs: Fix man page .seealso entries missing spaces after commas
Closes #1176
See merge request petsc/petsc!5202
|
| #
c2e3fba1
|
| 03-May-2022 |
Patrick Sanan <patrick.sanan@gmail.com> |
Docs: Fix man page .seealso entries missing spaces after commas
```python
import os import re import fileinput
START_PATTERN = re.compile(r"^( *\.seealso:? )(.*$)") FIX_PATTERN = re.compile(r",([^
Docs: Fix man page .seealso entries missing spaces after commas
```python
import os import re import fileinput
START_PATTERN = re.compile(r"^( *\.seealso:? )(.*$)") FIX_PATTERN = re.compile(r",([^ $\n])")
def _fix_comma(matchobj): return "`, `%s" % matchobj.group(1)
def process_file(filename_full): """ Find/fix commas w/o trailing spaces or newlines in .seealso blocks """ with fileinput.FileInput(filename_full, inplace=True) as the_file: in_block = False for line in the_file: line_stripped = line.strip() # end ".seealso blocks" on a blank line or C-style comment close if not line_stripped: in_block = False elif line_stripped.endswith("*/"): in_block = False else: match = re.match(START_PATTERN, line) # not stripped line if match: in_block = True if in_block: if re.search(FIX_PATTERN, line): line_fixed = re.sub(FIX_PATTERN, _fix_comma, line) print(line_fixed, end="") # prints to file else: print(line, end="") # prints to file else: print(line, end="") # prints to file
BASE_DIRS = ["src", "include"] EXT = [".c", ".cxx", ".cpp", ".cu", ".h", ".hpp", ".hxx"] EXCLUDE_DIRS = ["tests", "tutorials", "ftn-auto", "ftn-custom", "benchmarks"]
def main(): """ Process files in local tree(s) """ for base in BASE_DIRS: for root, dirs, files in os.walk(base): for filename in files: if os.path.splitext(filename)[1] in EXT: filename_full = os.path.join(root, filename) process_file(filename_full) for exclude_dir in EXCLUDE_DIRS: if exclude_dir in dirs: dirs.remove(exclude_dir)
if __name__ == "__main__": main() ```
show more ...
|
| #
89669be4
|
| 02-May-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'psanan/docs-sphinx-man-pages' into 'main'
Integrate Man Pages into Sphinx Docs
Closes #1132 and #1015
See merge request petsc/petsc!4989
|
| #
76b1de3d
|
| 01-May-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/housekeeping' into 'main'
General housekeeping
See merge request petsc/petsc!5192
|