add PetscSFGetGraphLayout(),enable fortran interface for PetscSFSetGraphLayout(),reformat zsfutilsf.c
Rework PetscDeviceContext backends and supporting code:- Add PETSC_DEVICE_HOST- Add PetscDeviceAllocate()- Add PetscDeviceMalloc()- Add PetscDeviceDeallocate()- Add PetscDeviceFree()- Add Petsc
Rework PetscDeviceContext backends and supporting code:- Add PETSC_DEVICE_HOST- Add PetscDeviceAllocate()- Add PetscDeviceMalloc()- Add PetscDeviceDeallocate()- Add PetscDeviceFree()- Add PetscDeviceMemcopy()- Add PetscDeviceArraycopy()- Split petscdevice.h into petscdevice_cuda.h and petscdevice_hip.h- Add petscdevice_cupm.h- Extend cupm::Interface and cupm::BlasInterface classes- Add more C++ utility wrappers
show more ...
sf: fix PetscSFCompose()
Remove braces from one-liners w/o PetscCall()
Remove braces from one-liners
clang-format: convert PETSc sources to comply with clang-format
Convert setfromoptions methods over to PetscTryTypeMethod() approachFlipped the order of the arguments for the function pointers (*setfromoptions)(PetscOptionItem*,obj); and friends to make them co
Convert setfromoptions methods over to PetscTryTypeMethod() approachFlipped the order of the arguments for the function pointers (*setfromoptions)(PetscOptionItem*,obj); and friends to make them consistent with PetscTryTypeMethod() and all the other methodsCommit-type: refactorization/spend 4h
Merge branch 'barry/2022-07-23/add-petscbeginuser' into 'main'Add PetscFunctionBeginUser to all PETSc C/C++ examplesSee merge request petsc/petsc!5470
Remove outdated use of if() SETERRQCommit-type: style/spend 20mReported-by: clang-format
Add PetscFunctionBeginUser to all PETSc C/C++ examplesNow the stack frames will contain the main program and the correct line numbers in themgit ls-files | egrep "(tutorials|tests)" | xargs sed -
Add PetscFunctionBeginUser to all PETSc C/C++ examplesNow the stack frames will contain the main program and the correct line numbers in themgit ls-files | egrep "(tutorials|tests)" | xargs sed -i "s?\(PetscCall(PetscInitialize(&argc\)?PetscFunctionBeginUser;\n \1?g"Commit-type: error-checking, testing-fix/spend 15m
VecLockWriteSet_Private() has to be public (has manual page!) so fix to be publicCommit-type: housekeeping/spend 10m
Merge branch 'marboeuf/petsclayout-petscsf-fortranbindings' into 'main'Fix and add fortran bindings for some PetscLayout, PetscSF routinesSee merge request petsc/petsc!5386
PetscSF: fix and add Fortran bindingFix Fortran binding of PetscSFDistributeSection: sf, rootSection, leafSection are now pointer.Note that the user should pass PETSC_NULL_INTEGER for the remoteOf
PetscSF: fix and add Fortran bindingFix Fortran binding of PetscSFDistributeSection: sf, rootSection, leafSection are now pointer.Note that the user should pass PETSC_NULL_INTEGER for the remoteOffsets so it is impossible toget these remoteOffsets from Fortran.Add Fortran 90 binding of PetscSFDistributeSectionF90: now CHKFORTRANNULLINTEGER is used on remoteOffsetsso one can get these remoteOffsets when one calls the routine from Fortran. We use Fortran 90 1d Array.Add Fortran 90 binding for PetscSFCreateSectionSFF90: mimicking the work done in PetscSFDistributeSectionF90for handling the remoteOffsets. Note that the remoteOffsets are not allowed to be PETSC_NULL_INTEGER on all procs.Add Fortran 90 binding for PetscSFCreateRemoteOffsetsF90: mimicking the work done in PetscSFDistributeSectionF90for handling the remoteOffsets. From Fortran, one can now compute the remoteOffsets for calling PetscSFCreateSectionSFF90without having to call PetscSFDistributeSectionF90.Reported-by: Satish Balay <balay@mcs.anl.gov>Thanks-To: Satish Balay <balay@mcs.anl.gov>, Junchao Zhang <jczhang@mcs.anl.gov>, Barry Smith <bsmith@mcs.anl.gov>,Matthew Knepley <knepley@buffalo.edu>, Lisandro Dalcin <dalcinl@gmail.com>
Merge branch 'knepley/fix-plex-g2n' into 'main'Fix Plex g2n mapSee merge request petsc/petsc!4547
Wrap PetscCheck and PetscAssert in do { } while (0)These macros look like functions, so they should behave likefunctions. Fix up the resulting invalid syntax due to the previousbehaviour of these
Wrap PetscCheck and PetscAssert in do { } while (0)These macros look like functions, so they should behave likefunctions. Fix up the resulting invalid syntax due to the previousbehaviour of these macros being "if (...)statement_without_semicolon". Fixes #1199.
Change if () { PetscCall() } three liner and friends to one linersfor 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 linersfor 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 ; doneYes, really ugly but Barry still cannot master awkCommit-type: housekeeping
SF: mv ex20 to ex1k to make it sycl/kokkos capable
Add modern error checking to rest of Fortran examples/spend 2.5h
SF: Ignore ghost points in PetscSFCreateSectionSF()
Merge remote-tracking branch 'origin/release'
A few codespell fixes
Merge branch 'barry/2022-05-03/cleanup-makefiles' into 'main'remove unneeded stuff from makefilesSee merge request petsc/petsc!5211
Merge branch 'jolivet/fix-excl-rank' into 'main'Replace !rank with rank == 0See merge request petsc/petsc!5223
Merge branch 'psanan/docs-seealso-formatting' into 'main'Docs: Fix man page .seealso entries missing spaces after commasCloses #1176See merge request petsc/petsc!5202
Get values of makefile SOURCE etc from the file system instead of makefilesUse SUBMANSEC from include files for manual sections instead of the makefileUnfortunately this has to be one large commi
Get values of makefile SOURCE etc from the file system instead of makefilesUse SUBMANSEC from include files for manual sections instead of the makefileUnfortunately this has to be one large commit since the changes all have to be done at onceCommit-type: docs/spend 10m
12345678910>>...30