| #
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
|
| #
145e6476
|
| 23-Jun-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-06-13/make-one-line-if-call' into 'main'
Change if () { PetscCall() } three liner to one liner
See merge request petsc/petsc!5344
|
| #
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 ...
|
| #
a0c18434
|
| 12-Jun-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-06-09/add-clear-names-no-ksp-linesearch' into 'main'
Add KSPNONE as alias for KSPPREONLY and SNESLINESEARCHNONE for SNESLINESEARCHBASIC
See merge request petsc/petsc!5326
|
| #
0b00b554
|
| 09-Jun-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Add SNESLINESEARCHNONE as alias for SNESLINESEARCHBASIC
Commit-type: usability /spend 5m
|
| #
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 ...
|
| #
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
|
| #
fa54792a
|
| 29-May-2019 |
Patrick Sanan <patrick.sanan@gmail.com> |
Merged in psanan/man-pages-remove-keywords (pull request #1717)
Man pages: Remove .keywords fields
Approved-by: BarryFSmith <bsmith@mcs.anl.gov>
|
| #
bfcb38ea
|
| 27-May-2019 |
Patrick Sanan <patrick.sanan@gmail.com> |
Man pages: remove .keywords: fields
This field is recognized by doctext from Sowing (http://wgropp.cs.illinois.edu/projects/software/sowing/doctext/node20.htm#Node20), but it doesn't seem to be unif
Man pages: remove .keywords: fields
This field is recognized by doctext from Sowing (http://wgropp.cs.illinois.edu/projects/software/sowing/doctext/node20.htm#Node20), but it doesn't seem to be uniformly used or maintained.
Thus, remove all .keywords: fields, and a following blank line, if present.
This is accomplished with GNU sed (gsed on OS X), with the following commands. *Warning* that this type of command can corrupt a .git directory, so be cautious in reusing or modifying these commands. They first look for and delete matching lines with a following line consisting of only whitespace, and then delete any remaining matching lines.
find src/ -type f -exec gsed -i '/keywords:/ {N; /\n\s*$/d}' {} + find src/ -type f -exec gsed -i '/keywords:/d' {} + find include/ -type f -exec gsed -i '/keywords:/ {N; /\n\s*$/d}' {} + find include/ -type f -exec gsed -i '/keywords:/d' {} +
Hints on the sed command obtained from: https://unix.stackexchange.com/questions/100754/how-to-delete-a-specific-line-and-the-following-blank-line-using-gnu-sed
show more ...
|
| #
e366c154
|
| 15-Nov-2017 |
Jed Brown <jed@jedbrown.org> |
Merge commit 'd47bf9aaf1e5266cc3f0ff499f934c85788965a9' into jed/fix-matcreatempibaij/maint
Obtain changed (v3.5) handling of MatMPIBAIJSetPreallocationCSR to match documentation.
|
| #
ec14d8c8
|
| 27-May-2017 |
Matthew G. Knepley <knepley@gmail.com> |
Merge branch 'master' into knepley/feature-plex-sphere-mesh
* master: (2633 commits) Bib: Added ref SNES ex56: Update test output add a citation to petsc.bib Plex: Initialize variables ini
Merge branch 'master' into knepley/feature-plex-sphere-mesh
* master: (2633 commits) Bib: Added ref SNES ex56: Update test output add a citation to petsc.bib Plex: Initialize variables initialize ap as complained by the nightly tests Plex ex3: Update to new point function API initialize some variables as complained by nightly tests SNES ex12: Mix misnaming Nf --> Nc update tests add tests add MatView_SeqXAIJ_ASCII_structonly(); enable A->structure_only in MatSetValuesBlocked_SeqBAIJ typo fill-in some references Bib: Fixed ref Plex: Added PLY to file support Plex: Adding PLY support PetscDS: Turn off Fortran bindings for Constants Plex tests: Updated to new point function API SNES ex56: Moved tests to new format DM: Allow field projection functions to take an array of scalars - This will allow us to pass in user data to kernels without void *, more efficiency than aux fields ...
Conflicts: config/builder.py include/petscdmplex.h src/dm/impls/plex/examples/tests/ex1.c src/dm/impls/plex/plexcreate.c src/dm/impls/plex/plexgmsh.c src/snes/examples/tutorials/ex63.c
show more ...
|
| #
c90b701e
|
| 14-Mar-2017 |
Matthew G. Knepley <knepley@gmail.com> |
Merge branch 'master' into knepley/feature-plex-pragmatic-parallel
* master: (1379 commits) Minor fixes for tchem examples due to changes in PETSc infrastructure update webpage about API changes
Merge branch 'master' into knepley/feature-plex-pragmatic-parallel
* master: (1379 commits) Minor fixes for tchem examples due to changes in PETSc infrastructure update webpage about API changes add help menu for MatCreateSubMatricesMPI() rename struct Mat_SubMat -> Mat_SubSppt add a little information to the manual about using tchem rename MatCreateSubMatrixComposite -> MatCreateSubMatrixVirtual; Mat_SubMatrix -> Mat_SubVirtual need to protect the \ passed on the makefile on my Mac Bib: Updated ref update src/mat/examples/tests/output/ex23_#.out rename MatGetSubMat -> MatCreateSubMat Mark MatCreateMPIAIJWithSplitArrays() and MatMPIAIJSetPreallocationCSR() with MAT_NO_OFF_PROC_ENTRIES superlu: libray is installed in PREFIX/lib64 - fix this to use PREFIX/lib backport fixes cc105cc3 2b35c90a - required for 3bf428d - that was backported from master - 80c96bb 'echo -n' fails on opensolaris/osx - so avoid using it. fix diffs in nightlybuilds due to options in ~/.petscrc add Kelley03 to src/docs/tex/petsc.bib build: determine moudles, mpi.h used during buildtime and print in 'info' fix analyzer warnings fix build failure on opensolaris - where -lm from flibs is removed due to -lm in cxxlibs. But then - only flib gets used for some configure tests [blaslapack, parms] config: prefer __restrict over C99 restrict keyword ...
show more ...
|
| #
171f813e
|
| 15-Feb-2017 |
Toby Isaac <tisaac@uchicago.edu> |
Merge remote-tracking branch 'origin/knepley/feature-fe-dual-apply' into tisaac/feature-fe-dual-apply
* origin/knepley/feature-fe-dual-apply: (75 commits) Plex: Screwed up last fix Plex: Fix ove
Merge remote-tracking branch 'origin/knepley/feature-fe-dual-apply' into tisaac/feature-fe-dual-apply
* origin/knepley/feature-fe-dual-apply: (75 commits) Plex: Screwed up last fix Plex: Fix overeager protection of function PetscFE: Fixed declaration Travis-CI: Attempt to solve issues with gfortran Travis-CI: Use newer macOS image clarify damping and other issues related to SNESLINESEARCHBASIC change example in new harness to use simple partitioner so gets consistent output on all systems remove unused function from test file cleanup formatting in example, plus myrank not rank all requires need to go on the same line in test definition otherwise they are skipped missing - makes the manual page formatting wrong The developer manual clearly states that MPI_Comm_size() returns size it doesn't return numProcs or other nonsense. Pretty soon you'll start using mype instead of rank? fix typo and cut and paste error in docs bugfix for !HYPRE fix warning for ';;' may switch to scalable only when B->cmap->N > 100000 MatLRC: store in the context the parallel matrices rather than the sequential ones Bib: Add ref set default algorithm based on B->cmap->N for MatMatMult_MPIAIJ_MPIAIJ() Error in VecScatterView_MPI() had the meaning of from and to backwards ...
show more ...
|
| #
c5eaf5f0
|
| 14-Feb-2017 |
Matthew G. Knepley <knepley@gmail.com> |
Merge branch 'knepley/feature-plex-tests-new' into knepley/feature-fe-dual-apply
* knepley/feature-plex-tests-new: (73 commits) Plex: Fix overeager protection of function Travis-CI: Attempt to s
Merge branch 'knepley/feature-plex-tests-new' into knepley/feature-fe-dual-apply
* knepley/feature-plex-tests-new: (73 commits) Plex: Fix overeager protection of function Travis-CI: Attempt to solve issues with gfortran Travis-CI: Use newer macOS image clarify damping and other issues related to SNESLINESEARCHBASIC change example in new harness to use simple partitioner so gets consistent output on all systems remove unused function from test file cleanup formatting in example, plus myrank not rank all requires need to go on the same line in test definition otherwise they are skipped missing - makes the manual page formatting wrong The developer manual clearly states that MPI_Comm_size() returns size it doesn't return numProcs or other nonsense. Pretty soon you'll start using mype instead of rank? fix typo and cut and paste error in docs bugfix for !HYPRE fix warning for ';;' may switch to scalable only when B->cmap->N > 100000 MatLRC: store in the context the parallel matrices rather than the sequential ones Bib: Add ref set default algorithm based on B->cmap->N for MatMatMult_MPIAIJ_MPIAIJ() Error in VecScatterView_MPI() had the meaning of from and to backwards fix build warning as reported by the nightly tests Update alquimia.py to use Glenn's branch that updates alquimia for pflotran xsdk ...
show more ...
|
| #
cffa9059
|
| 14-Feb-2017 |
Matthew G. Knepley <knepley@gmail.com> |
Merge branch 'master' into knepley/feature-plex-tests-new
* master: (94 commits) Plex: Fix overeager protection of function Travis-CI: Attempt to solve issues with gfortran Travis-CI: Use newe
Merge branch 'master' into knepley/feature-plex-tests-new
* master: (94 commits) Plex: Fix overeager protection of function Travis-CI: Attempt to solve issues with gfortran Travis-CI: Use newer macOS image clarify damping and other issues related to SNESLINESEARCHBASIC change example in new harness to use simple partitioner so gets consistent output on all systems remove unused function from test file cleanup formatting in example, plus myrank not rank missing - makes the manual page formatting wrong The developer manual clearly states that MPI_Comm_size() returns size it doesn't return numProcs or other nonsense. Pretty soon you'll start using mype instead of rank? fix typo and cut and paste error in docs bugfix for !HYPRE fix warning for ';;' may switch to scalable only when B->cmap->N > 100000 MatLRC: store in the context the parallel matrices rather than the sequential ones Bib: Add ref set default algorithm based on B->cmap->N for MatMatMult_MPIAIJ_MPIAIJ() Error in VecScatterView_MPI() had the meaning of from and to backwards fix build warning as reported by the nightly tests Update alquimia.py to use Glenn's branch that updates alquimia for pflotran xsdk fix divide by zero exposed by 8534686b5096cd4c91a8f3895408b386c0628431 - and produced by petsc4py testsuite ...
Conflicts: src/dm/impls/plex/examples/tests/ex13.c src/dm/impls/plex/plexgmsh.c src/snes/examples/tests/ex2.c src/snes/examples/tests/output/ex2_3.out src/snes/examples/tests/output/ex2_4.out src/snes/examples/tests/output/ex2_5.out
show more ...
|
| #
1fe24845
|
| 12-Feb-2017 |
Barry Smith <bsmith@mcs.anl.gov> |
clarify damping and other issues related to SNESLINESEARCHBASIC
Reported-by: Mark Adams <mfadams@lbl.gov>
|
| #
7c720adb
|
| 11-Feb-2017 |
Barry Smith <bsmith@mcs.anl.gov> |
missing - makes the manual page formatting wrong
Funded-by: Project: Time: Reported-by: Thanks-to:
|
| #
9137bce6
|
| 24-Dec-2016 |
Barry Smith <bsmith@mcs.anl.gov> |
Merge branch 'barry/remove-funct'
|
| #
fbfcfee5
|
| 19-Dec-2016 |
Barry Smith <bsmith@mcs.anl.gov> |
Remove the use and definition of __FUNCT__ throughout the code
Since all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETSc Time: 1.5 hours Thanks-t
Remove the use and definition of __FUNCT__ throughout the code
Since all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETSc Time: 1.5 hours Thanks-to: Andreas Mang <andreas@ices.utexas.edu>
show more ...
|
| #
3d996552
|
| 19-Jul-2016 |
Stefano Zampini <stefano.zampini@gmail.com> |
Merge branch 'master' into stefano_zampini/feature-pcbddc-saddlepoint
Conflicts: src/docs/website/documentation/changes/dev.html src/ksp/ksp/examples/tutorials/ex59.c src/ksp/pc/impls/bddc/bddc.c
Merge branch 'master' into stefano_zampini/feature-pcbddc-saddlepoint
Conflicts: src/docs/website/documentation/changes/dev.html src/ksp/ksp/examples/tutorials/ex59.c src/ksp/pc/impls/bddc/bddc.c src/ksp/pc/impls/bddc/bddcfetidp.c src/ksp/pc/impls/bddc/bddcprivate.c src/ksp/pc/impls/bddc/bddcschurs.c src/mat/impls/is/matis.c src/mat/impls/is/matis.h
show more ...
|
| #
146a7208
|
| 15-Jun-2016 |
Barry Smith <bsmith@mcs.anl.gov> |
Merge branch 'maint'
|