| #
327415f7
|
| 23-Jul-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Add PetscFunctionBeginUser to all PETSc C/C++ examples
Now the stack frames will contain the main program and the correct line numbers in them
git ls-files | egrep "(tutorials|tests)" | xargs sed -
Add PetscFunctionBeginUser to all PETSc C/C++ examples
Now the stack frames will contain the main program and the correct line numbers in them
git ls-files | egrep "(tutorials|tests)" | xargs sed -i "s?\(PetscCall(PetscInitialize(&argc\)?PetscFunctionBeginUser;\n \1?g"
Commit-type: error-checking, testing-fix /spend 15m
show more ...
|
| #
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 ...
|
| #
6a3335a3
|
| 11-May-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jolivet/fix-excl-rank' into 'main'
Replace !rank with rank == 0
See merge request petsc/petsc!5223
|
| #
c5853193
|
| 05-May-2022 |
Pierre Jolivet <pierre@joliv.et> |
Replace !rank with rank == 0
See also https://gitlab.com/petsc/petsc/-/merge_requests/4146
|
| #
9327856a
|
| 21-Apr-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2022-04-17/rm-petsccheckfalse-ts' into 'main'
Remove use of PetscCheckFalse() from TS directory
See merge request petsc/petsc!5135
|
| #
cad9d221
|
| 17-Apr-2022 |
Barry Smith <bsmith@mcs.anl.gov> |
Remove use of PetscCheckFalse() from TS directory
Commit-type: housekeeping /spend 15m
|
| #
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 ...
|
| #
b122ec5a
|
| 24-Mar-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
PetscInitialize() and PetscFinalize() wrapped:
- ierr = PetscInitialize();if (ierr) return ierr; + CHKERRQ(PetscInitialize());
- ierr = PetscFinalize(); - return ierr; + CHKERRQ(PetscFinalize()); +
PetscInitialize() and PetscFinalize() wrapped:
- ierr = PetscInitialize();if (ierr) return ierr; + CHKERRQ(PetscInitialize());
- ierr = PetscFinalize(); - return ierr; + CHKERRQ(PetscFinalize()); + return 0;
show more ...
|
| #
5f80ce2a
|
| 24-Feb-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
chkerr and friends wrapped
|
| #
1241a243
|
| 13-Feb-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'jacobf/2022-01-05/c99' into 'main'
Feature: C99 and C++11
See merge request petsc/petsc!4700
|
| #
2c71b3e2
|
| 11-Feb-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
rename PetscAssert() -> PetscCheck() and PetscAssertDebug() -> PetscAssert()
|
| #
9ace16cd
|
| 28-Jan-2022 |
Jacob Faibussowitsch <jacob.fai@gmail.com> |
add PetscAssert() and PetscAssertFalse()
|
| #
b8ee96d5
|
| 12-Jan-2022 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'gbetrie/fix-dmnetworkaddcomponent' into 'main'
Gbetrie/fix dmnetworkaddcomponent
See merge request petsc/petsc!4658
|
| #
eac198af
|
| 15-Dec-2021 |
Getnet <d.getnet@gmail.com> |
Adding/modify tests on zero size components to several examples; DMNetworkAddComponent(): the owning rank and all ghost ranks must call it to add a component and nvar in the same order Update doc for
Adding/modify tests on zero size components to several examples; DMNetworkAddComponent(): the owning rank and all ghost ranks must call it to add a component and nvar in the same order Update doc for DMNetworkAddComponent merge DMNetworkLayoutSetUp_Coupling() into DMNetworkLayoutSetUp() to remove duplication
show more ...
|
| #
33fd0a15
|
| 16-Nov-2021 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'knepley/feature-plex-csr-overlap' into 'main'
Plex: Add a nother alternative for CSR grph creation
See merge request petsc/petsc!4527
|
| #
5a107427
|
| 16-Nov-2021 |
Matthew G. Knepley <knepley@gmail.com> |
Plex: Add a nother alternative for CSR grph creation
|
| #
6762c164
|
| 15-Sep-2021 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'psanan-release-patch-82973' into 'main'
Developer docs, style: remove rule about using "if (!rank)" and replace all "!rank" usage with "rank == 0"
See merge request petsc/petsc!4146
|
| #
dd400576
|
| 26-Jul-2021 |
Patrick Sanan <patrick.sanan@gmail.com> |
Style: replace "!rank" with "rank == 0"
In SF tutorial ex1 (src/vec/is/sf/tutorials/ex1.c), add parentheses around "rank == 0". This is relevant because ! binds more tightly than +, but == binds les
Style: replace "!rank" with "rank == 0"
In SF tutorial ex1 (src/vec/is/sf/tutorials/ex1.c), add parentheses around "rank == 0". This is relevant because ! binds more tightly than +, but == binds less tightly, so the result of the computation would otherwise change.
show more ...
|
| #
6abb1ff3
|
| 10-Sep-2021 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'barry/2021-07-03/demonstrate-network-parallel-build' into 'main'
dmnetwork: bug fix for parallel input single subnetwork; API change, optimize and cleanup
See merge request petsc/pets
Merge branch 'barry/2021-07-03/demonstrate-network-parallel-build' into 'main'
dmnetwork: bug fix for parallel input single subnetwork; API change, optimize and cleanup
See merge request petsc/petsc!4176
show more ...
|
| #
f11a936e
|
| 03-Jul-2021 |
Barry Smith <bsmith@mcs.anl.gov> |
This example seems to demonstrate that one cannot construct a DMNetwork with one subnetwork in parallel correctly.
Commit-type: bug-report \spend 40m
DMNetworkAddSubnetwork() does not need input nv
This example seems to demonstrate that one cannot construct a DMNetwork with one subnetwork in parallel correctly.
Commit-type: bug-report \spend 40m
DMNetworkAddSubnetwork() does not need input nv; optimize DMNetworkLayoutSetUp_Coupling() and DMNetworkLayoutSetUp() bugfix for DMNetworkDistribute(): subnet[].nvtx was over counted cleanup network.c; add '-malloc_dump 0' to ex10.c: otherwise opensolaris-misc pipeline test fails use the fix suggested by Satish. This fixes the opensolaris-misc pipeline test error of ex10.c, and harmless to other cases rm #if 0. Previously kept for future work
show more ...
|
| #
6b359ade
|
| 02-Jun-2021 |
Satish Balay <balay@mcs.anl.gov> |
Merge branch 'hzhang/add-dmnetworkcreateis' into 'main'
Add DMNetworkCreateIS()
See merge request petsc/petsc!3999
|