PetscLayout: forbid calling setup twice with different sizes* PetscLayout objects should be considered immutable, especially because they can be shared.* Make use of PetscLayoutCreateFromSizes().
PetscLayout: forbid calling setup twice with different sizes* PetscLayout objects should be considered immutable, especially because they can be shared.* Make use of PetscLayoutCreateFromSizes().* setupcalled is now the single indicator that PetscLayout is ready.* Insure the rest of variables (e.g. map->rstart) are calculated even if n, N and range are set.
show more ...
Add PetscIntCast() to check for integer overflow Used in MatSeqXAIJSetPreallocation() to determine if the number of nonzeros in the matrix (and hence the ai[] column indices and lengths of a
Add PetscIntCast() to check for integer overflow Used in MatSeqXAIJSetPreallocation() to determine if the number of nonzeros in the matrix (and hence the ai[] column indices and lengths of aj[] columns indices and a[] numerical values) fit in PetscInt. Commit-type: error-checking Reported-by: Karl Lin <karl.linkui@gmail.com>
Merged in jczhang/mat-remove-unnecessary-global-IS (pull request #1816)Remove unnecessary global IS when setting up MvctxApproved-by: BarryFSmith <bsmith@mcs.anl.gov>Approved-by: Jed Brown <jed@
Merged in jczhang/mat-remove-unnecessary-global-IS (pull request #1816)Remove unnecessary global IS when setting up MvctxApproved-by: BarryFSmith <bsmith@mcs.anl.gov>Approved-by: Jed Brown <jed@59a2.org>
Non-numeric optimizations focused on AIJ, MatFDColoring, and DMCreateMatrix_DA_*AIJ, looking to improve performance in GPU environments1) PetscCalloc*() now uses system calloc()2) Merged some Pets
Non-numeric optimizations focused on AIJ, MatFDColoring, and DMCreateMatrix_DA_*AIJ, looking to improve performance in GPU environments1) PetscCalloc*() now uses system calloc()2) Merged some PetscMalloc*()3) Eliminated unneeded PetscCalloc*()4) Removed some memory allocations and copies in MatFDColoringSetUp(), added local variables for better compiler optimization5) Added MatSetValues_SeqAIJ_SortedFull(), added MatSetOption(MAT_SORTED_FULL)6) Optimized DMCreateMatrix_DA_*AIJ for nonperiodic case to automatically have sorted columns (faster MatSetValues() times)7) Eliminated call to PetscMemzero() in PetscFree()Commit-type: style-fix, feature
Remove unnecessary global IS when setting up MvctxISCreateGeneral(((PetscObject)mat)->comm..) will incur MPI_Allreduce on the communicator.
Add PetscArraycmp(), PetscArraycpy(), PetscArrayzero(), PetscArraymove(), update code to use new formsReplace a couple multi-mallocs with a single mallocReplace backwards loops in MatSetValues_*()
Add PetscArraycmp(), PetscArraycpy(), PetscArrayzero(), PetscArraymove(), update code to use new formsReplace a couple multi-mallocs with a single mallocReplace backwards loops in MatSetValues_*() with PetscArraymove()Commit-type: style-fix, feature
Merge remote-tracking branch 'origin/maint'
Fixed misspelling of "paradigm" throughout manual pages.
Update the use of Collective on in the manual pages to reflect the new styleCommit-type: style-fix, documentationThanks-to: Patrick Sanan <patrick.sanan@gmail.com>
Man pages: remove .keywords: fieldsThis 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: fieldsThis 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 lookfor 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
Revert the function name where it is referenced
Fix more bugs when y is locked in VecScatter(x,y)
Fix more bugs when we lock vectors in VecScatter
rm PetscMemcpy(mat->ops,matin->ops,sizeof(struct _MatOps)) and mat->ops->destroy = MatDestroy_xxx, as suggested by Barry
rm special MatDuplicate_XXX()
Merge branch 'jed/python3-futurize' [PR #1122]Merge announces support for Python 3.4+ in changes/dev.html.* jed/python3-futurize: (44 commits) gmakegentest: avoid prefix matching in regex dm
Merge branch 'jed/python3-futurize' [PR #1122]Merge announces support for Python 3.4+ in changes/dev.html.* jed/python3-futurize: (44 commits) gmakegentest: avoid prefix matching in regex dm tests ex23.c: fix test args: -one -two -three gmakegentest: more fixes gmakegentest: fix processing of arguments containing number followed by "-" gmakegentest: always loop over nsize; Python-3 fixes python3: add in a python-3.4 test python: fix build on osx/opensolaris - where 'RANLIB=ranlib -c' i.e with a space.. python3: fix --download-ptscotch error configure: glob() gets executed early - whereas we need to get file list later [after 'make all' or equivalent] so revert back to using shell to get file-list python3: map() requires a list modifier for this usage. python: replace ModuleNotFoundError a python3.6+ feature with ImportError config: call setup to ensure that debugLevel is set nightlies: switch linux-pkg-dbg-ftn-interfaces to python3 config: enable Python-3 config: urllib/urlparse updates for Python-3 compatibility config fblaslapack: use isIBM instead of manual test python: replace commands with subprocess Fix LOCDIR paths generateetags.py: switch from commands to subprocess; unicode fix python: don't import commands when it isn't used ...
Fix LOCDIR paths
Changed VecScatterCreate() to take a communicator and return scatter as other first class PETSc objects do.Changed old VecScatterCreate() to VecScatterCreateWithData()Completed basic refactorizati
Changed VecScatterCreate() to take a communicator and return scatter as other first class PETSc objects do.Changed old VecScatterCreate() to VecScatterCreateWithData()Completed basic refactorization of VecScatter code, ready for new implementations to be added.(There is still some code duplication between the VecScatter MPI1 and MPI3 code but it can be fixed at anytime without requiring changes to the VecScatter API.Part 5 of a refactorization of VecScatter to be treated as a first class PETSc objectCommit-type: style-fix
MatSetFromOptions_XXX: fix help outputCalling PetscOptionsBegin inside the specific implementationsturns off the output of the available options. Close the options with PetscOptionsTail() as elsew
MatSetFromOptions_XXX: fix help outputCalling PetscOptionsBegin inside the specific implementationsturns off the output of the available options. Close the options with PetscOptionsTail() as elsewhere in PETSc
Fixed typos in MatSeqSELLSetPreallocation manual page.Reported-by: Richard Tran Mills <rmills@rmills.org>
Merge branch 'maint'
Removed use of MatConvert_Basic() in MatConvert_SeqAIJ_SeqSELL(), which causes incorrect behavior.Commit-type: bug-fixReported-by: Richard Tran Mills <rmills@rmills.org>
PetscInfo: Add missing errorchecking
MatDisassemble_{*}AIJ: fix propagation of insertion error flagWe cannot set a -1 flag, as this will generate an error at the first values insertion
12345678910