| #
8fd105b6
|
| 17-Aug-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-06-28/add-petsccallmethod' into 'main'
Introduce PetscTryTypeMethod and PetscUseTypeMethod to replace ad hoc use of (*obj->ops->method) in source
See merge request petsc/
Merge branch 'barry/2022-06-28/add-petsccallmethod' into 'main'
Introduce PetscTryTypeMethod and PetscUseTypeMethod to replace ad hoc use of (*obj->ops->method) in source
See merge request petsc/petsc!5376
show more ...
|
| #
dbbe0bcd
|
| 23-Jul-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Convert setfromoptions methods over to PetscTryTypeMethod() approach
Flipped the order of the arguments for the function pointers (*setfromoptions)(PetscOptionItem*,obj); and friends to make them co
Convert setfromoptions methods over to PetscTryTypeMethod() approach
Flipped the order of the arguments for the function pointers (*setfromoptions)(PetscOptionItem*,obj); and friends to make them consistent with PetscTryTypeMethod() and all the other methods
Commit-type: refactorization /spend 4h
show more ...
|
| #
71052fdf
|
| 23-Jul-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Remove the no longer needed PetscCheck(a->ops->y...
Commit-type: error-checking, housekeeping /spend 10m
Development Tools: Vim, Emacs, Eclipse
|
| #
4ed5a6f3
|
| 09-Aug-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jeremy/context-destroy-fns' into 'main'
Add user context destroy functions
See merge request petsc/petsc!5252
|
| #
800f99ff
|
| 25-May-2022 |
Jeremy L Thompson <jeremy@jeremylt.org> |
context - wrap context in PetscContainer, add user context destroy routines for MatShell, DMSNES/DMTS function and jacobian
|
| #
bda77271
|
| 20-Jul-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-06-24/linenumbers-petscstack' into 'main'
Fixes/improvements for PETSc stack handling
See merge request petsc/petsc!5368
|
| #
25e27a38
|
| 25-Jun-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix several callbacks to properly use the PetscCallBack() mechanism
Commit-type: error-checking, housekeeping /spend 10m Reported-by: Jose E. Roman
|
| #
792fecdf
|
| 25-Jun-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Cleanup and unify naming of PetscCall routines
Commit-type: housekeeping /spend 10m
|
| #
ef1023bd
|
| 25-Jun-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Fix handling of PetscStack for callback functions and external package calls (and update slepc in sync)
Information was often wrong; incorrect filenames and line numbers removed
Also unified naming
Fix handling of PetscStack for callback functions and external package calls (and update slepc in sync)
Information was often wrong; incorrect filenames and line numbers removed
Also unified naming for callback function stack frames
Commit-type: error-checking, debugability /spend 2h
show more ...
|
| #
2a8f802c
|
| 29-Jun-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-06-27/docs-snesvi-domainerror' into 'main'
Improve manual pages and manual for SNES problems with domain errors or box constraints
See merge request petsc/petsc!5373
|
| #
f0b84518
|
| 29-Jun-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Improve manual pages and manual for SNES problems with domain errors or box constraints
Commit-type: docs /spend 10m Reported-by: Jacob Simon Merson <mersoj2@rpi.edu>
|
| #
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 ...
|
| #
60a53c4c
|
| 14-Jun-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'stefanozampini/fix-tao-destroy' into 'main'
TaoSetType: Do not destroy gradient and stepdirection vectors
See merge request petsc/petsc!5339
|
| #
a958fbfc
|
| 13-Jun-2022 |
Stefano Zampini <stefano.zampini@gmail.com> |
TaoSetType: Do not destroy gradient and stepdirection vectors
Defer KSPDestroy to those methods that actually creates a KSP Leave linesearch destroy, since it may be solver dependent
|
| #
d7093b2e
|
| 10-Jun-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'stefanozampini/tao-ew' into 'main'
TAO: add Support for Eisenstat and Walker
See merge request petsc/petsc!5311
|
| #
0f0abf79
|
| 08-Jun-2022 |
Stefano Zampini <stefano.zampini@gmail.com> |
TAO: add support for Eisenstat and Walker trick for KSP
|
| #
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
|
| #
4efe38b9
|
| 09-May-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'stefanozampini/fix-h2opus' into 'main'
PCH2OPUS fixes
See merge request petsc/petsc!5204
|
| #
2698c518
|
| 04-Apr-2022 |
Lisandro Dalcin <dalcinl@gmail.com> |
Allow PCH2OPUS with SNES MFFD
|
| #
ea57491c
|
| 03-May-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge remote-tracking branch 'origin/release'
|
| #
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 ...
|
| #
46023221
|
| 02-May-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jed/snes-convergence-test-doc' into 'release'
SNES doc: fixes and cross-references for -snes_convergence_test skip
See merge request petsc/petsc!5197
|
| #
f362779d
|
| 02-May-2022 |
Jed Brown <jed@jedbrown.org> |
SNES doc: fixes and cross-references for -snes_convergence_test skip
-snes_no_convergence_test was removed in PETSc-3.0, but a documentation relic was still hanging around confusing people.
Commit-
SNES doc: fixes and cross-references for -snes_convergence_test skip
-snes_no_convergence_test was removed in PETSc-3.0, but a documentation relic was still hanging around confusing people.
Commit-type: documentation
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
|