| #
1baa6e33
|
| 14-Jun-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Change if () { PetscCall() } three liner and friends to one liners
for i in `git ls-files | grep "\.[ch]$"` ; do sed 's?\$?ZZZ?g' $i | tr '\n' '$' | sed 's?\([ ]*\)if (\([-;,.\*+=a-z0-9A-Z_>]*\)) {\
Change if () { PetscCall() } three liner and friends to one liners
for i in `git ls-files | grep "\.[ch]$"` ; do sed 's?\$?ZZZ?g' $i | tr '\n' '$' | sed 's?\([ ]*\)if (\([-;,.\*+=a-z0-9A-Z_>]*\)) {\$[ ]*PetscCall(\([- ._+=a-z0-9A-Z>*,()]*);\)\$[ ]*}\$?\1if (\2) PetscCall(\3$?g' | tr '$' '\n' | sed 's?ZZZ?$?g' > $i.joe ; mv $i.joe $i ; done
for i in `git ls-files | grep "\.[hc]$"` ; do sed 's?\$?ZZZ?g' $i | tr '\n' '$' | sed 's?\([ }else]*\)if (\([-;,.\*+=a-z0-9A-Z_>]*\)) {\$[ ]*PetscCall(\([- ._+=a-z0-9A-Z>*,()]*);\)\$\([ ]*\)} \([- ._+=a-z0-9A-Z>*,()]*);\)\$?\1if (\2) PetscCall(\3$\4\5$?g' | tr '$' '\n' | sed 's?ZZZ?$?g' > $i.joe ; mv $i.joe $i ; done
Yes, really ugly but Barry still cannot master awk
Commit-type: housekeeping
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
|
| #
db781477
|
| 25-Apr-2022 |
Patrick Sanan <patrick.sanan@gmail.com> |
Docs: bulk add backticks to .seealso man page fields
```python import os import re import fileinput
def _process_word(word): comma = "," if word.endswith(",") else "" return "`%s`%s" % (wor
Docs: bulk add backticks to .seealso man page fields
```python import os import re import fileinput
def _process_word(word): comma = "," if word.endswith(",") else "" return "`%s`%s" % (word.rstrip(","), comma)
def _process_stripped_line(line): return " ".join(map(_process_word, line.split()))
start_pattern = re.compile(r"^( *\.seealso:? )(.*$)")
def process_file(filename_full): with fileinput.FileInput(filename_full, inplace=True) as f: in_block = False for line in f: line_stripped = line.strip() # end ".seealso blocks" on a blank line or C-style comment close line_modified = None 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: indent = " " * len(match.group(1)) in_block = True line_modified = match.group( 1) + _process_stripped_line( match.group(2).strip()) elif in_block: line_modified = indent + _process_stripped_line( line_stripped) if line_modified: print(line_modified) # prints to the file else: print(line, end="") # prints to the 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 everything """ 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) print("FILE ---", filename_full) 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 ...
|
| #
45601b4b
|
| 28-Apr-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
6c6a303d
|
| 27-Apr-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/fix-documentation' into 'release'
Docs: remove extra spaces
See merge request petsc/petsc!5179
|
| #
c969029d
|
| 27-Apr-2022 |
Pierre Jolivet <pierre@joliv.et> |
Docs: remove extra spaces
|
| #
1335eab4
|
| 15-Apr-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-04-05/petscattrformat-all-the-rest' into 'main'
Enable PETSC_ATTRIBUTE_FORMAT()
See merge request petsc/petsc!5085
|
| #
63a3b9bc
|
| 06-Apr-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
Enable PETSC_ATTRIBUTE_FORMAT()
|
| #
f882803c
|
| 26-Mar-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-02-23/variadic-chkerr' into 'main'
Variadic CHKERRQ()
See merge request petsc/petsc!4889
|
| #
9566063d
|
| 25-Mar-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
The great renaming:
- CHKERRQ() -> PetscCall() - CHKERRV() -> PetscCallVoid() - CHKERRMPI() -> PetscCallMPI() - CHKERRABORT() -> PetscCallAbort() - CHKERRCONTINUE() -> PetscCallContinue() - CHKERRXX
The great renaming:
- CHKERRQ() -> PetscCall() - CHKERRV() -> PetscCallVoid() - CHKERRMPI() -> PetscCallMPI() - CHKERRABORT() -> PetscCallAbort() - CHKERRCONTINUE() -> PetscCallContinue() - CHKERRXX() -> PetscCallThrow() - CHKERRCXX() -> PetscCallCXX() - CHKERRCUDA() -> PetscCallCUDA() - CHKERRCUBLAS() -> PetscCallCUBLAS() - CHKERRCUSPARSE() -> PetscCallCUSPARSE() - CHKERRCUSOLVER() -> PetscCallCUSOLVER() - CHKERRCUFFT() -> PetscCallCUFFT() - CHKERRCURAND() -> PetscCallCURAND() - CHKERRHIP() -> PetscCallHIP() - CHKERRHIPBLAS() -> PetscCallHIPBLAS() - CHKERRHIPSOLVER() -> PetscCallHIPSOLVER() - CHKERRQ_CEED() -> PetscCallCEED() - CHKERR_FORTRAN_VOID_FUNCTION() -> PetscCallFortranVoidFunction() - CHKERRMKL() -> PetscCallMKL() - CHKERRMMG() -> PetscCallMMG() - CHKERRMMG_NONSTANDARD() -> PetscCallMMG_NONSTANDARD() - CHKERRCGNS() -> PetscCallCGNS() - CHKERRPTSCOTCH() -> PetscCallPTSCOTCH() - CHKERRSTR() -> PetscCallSTR() - CHKERRTC() -> PetscCallTC()
show more ...
|
| #
5f80ce2a
|
| 24-Feb-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
chkerr and friends wrapped
|
| #
455c18b7
|
| 15-Feb-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'dalcinl/gcc-flags' into 'main'
GCC: Remove unneeded flags disabling some warnings
See merge request petsc/petsc!4855
|
| #
0cd49a73
|
| 15-Feb-2022 |
Lisandro Dalcin <dalcinl@gmail.com> |
Printf MPI_Comm using "%p" format and a `(void*)(MPI_Aint)` cast
|
| #
7ab9467e
|
| 02-Mar-2021 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jczhang/sf-change-api' into 'main'
Change some SF APIs mentioned in the ECP paper
See merge request petsc/petsc!3659
|
| #
ad227fea
|
| 27-Feb-2021 |
Junchao Zhang <jczhang@mcs.anl.gov> |
SF: add an MPI_Op argument to SFBcast
|
| #
bdea225a
|
| 30-Dec-2020 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2020-10-08/fix-mpi-error-codes' into 'master'
Convert MPI error type to PETSc error with string message for all MPI calls
See merge request petsc/petsc!3326
|
| #
ffc4695b
|
| 08-Oct-2020 |
Barry Smith <bsmith@mcs.anl.gov> |
Convert MPI error type to PETSc error with string message for all MPI calls
Now PETSc examples will ONLY return PETSc error codes and never MPI error codes directly so we can understand and post-pro
Convert MPI error type to PETSc error with string message for all MPI calls
Now PETSc examples will ONLY return PETSc error codes and never MPI error codes directly so we can understand and post-process their errors better.
The test harness will now automatically retry tests that fail with MPI, this may help with Intel MPI that produces seemingly random failures.
Commit-type: error-checking /spend 30m
show more ...
|
| #
51132240
|
| 28-Dec-2020 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2020-11-24/central-patch' into 'master'
Barry/2020 11 24/central patch
See merge request petsc/petsc!3440
|
| #
60c22052
|
| 25-Nov-2020 |
Barry Smith <bsmith@mcs.anl.gov> |
Provide an example src/dm/tutorials/ex25.c that takes a patch from a parallel DMDA to one process
Fix DMZoomPatch() to work in 2d and and support not requesting a halo
Remove unneeded Vec argument
Provide an example src/dm/tutorials/ex25.c that takes a patch from a parallel DMDA to one process
Fix DMZoomPatch() to work in 2d and and support not requesting a halo
Remove unneeded Vec argument from DMZoonPatch()
Minor improvements to manual pages
Commit-type: bug-fix, feature, example /spend 4h Reported-by: Victoria Hamtiaux <victoria.hamtiaux@uclouvain.be>
show more ...
|
| #
8a8cbd21
|
| 23-Oct-2020 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'sajid/bugfix-patchis' into 'master'
DMDACreatePatchIS : change to collective operation
Closes #744
See merge request petsc/petsc!3304
|
| #
3b5e53cd
|
| 23-Oct-2020 |
Sajid Ali <sajidsyed2021@u.northwestern.edu> |
DMDACreatePatchIS : change to collective operation and add test
|
| #
16924cb1
|
| 26-Aug-2020 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2020-08-16/fix-source-formatting' into 'master'
Turn on checkbadSource test to generate an error when found; fix all source code that causes errors
See merge request petsc/petsc
Merge branch 'barry/2020-08-16/fix-source-formatting' into 'master'
Turn on checkbadSource test to generate an error when found; fix all source code that causes errors
See merge request petsc/petsc!3064
show more ...
|
| #
2da392cc
|
| 17-Aug-2020 |
Barry Smith <bsmith@mcs.anl.gov> |
Turn on checkbadSource test to generate an error when found; fix all source code that causes errors
Commit-type: portability-fix, testing-fix, style-fix, feature, maintainability /spend 1.5h
|
| #
7b917211
|
| 24-Aug-2020 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'dalcinl/fix-null' into 'master'
Fix 0 -> NULL for pointers
See merge request petsc/petsc!3086
|
| #
ea78f98c
|
| 23-Aug-2020 |
Lisandro Dalcin <dalcinl@gmail.com> |
DM: Replace 0 -> NULL for pointers
|