Remove parent, parentid, flops, time, mem, and memchildren. Deprecate PetscLogObjectParent(), PetscLogObjectMemory(), and PetscNewLog()
Update very old incomplete links to users manual from manual pages to work with SphinxCommit-type: documentation/spend 10m
Fix manual pages in src/mat directory, very minor source code changeCommit-type: documentation/spend 22h
Remove incorrect use of PetscFunctionReturn(nonzero integer value). Add this rule to the developers guideCommit-type: house-keeping/spend 1hReported-by: Pierre Jolivet
Remove braces from one-liners w/o PetscCall()
Remove braces from one-liners
clang-format: convert PETSc sources to comply with clang-format
Cleanup and unify naming of PetscCall routinesCommit-type: housekeeping/spend 10m
remove garbage from makefilesIncluding * unused FLAGS variables * All: lib that did not work * stray blank lines etcCommit-type: housekeeping/spend 1h
Docs: bulk add backticks to .seealso man page fields```pythonimport osimport reimport fileinputdef _process_word(word): comma = "," if word.endswith(",") else "" return "`%s`%s" % (wor
Docs: bulk add backticks to .seealso man page fields```pythonimport osimport reimport fileinputdef _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 fileBASE_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 ...
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()
chkerr and friends wrapped
rename PetscAssert() -> PetscCheck() and PetscAssertDebug() -> PetscAssert()
add PetscAssert() and PetscAssertFalse()
Remove all double blank lines from sourceCommit-type: petsc-style/2h
Provide Fortran MatCreateBAIJMKL() and MatCreateBAIJMKL()Commit-type: portability/spend 15mReported-by: Frank Bramkamp <bramkamp@nsc.liu.se>
Turn on checkbadSource test to generate an error when found; fix all source code that causes errorsCommit-type: portability-fix, testing-fix, style-fix, feature, maintainability/spend 1.5h
Single petscdir.mk
build: add more support for not needing to set PETSC_DIR yet build with PETSc, also support for GNU make to directly use "make test" instead of "make -f gmakefile.test"Still needs -include ../petsc
build: add more support for not needing to set PETSC_DIR yet build with PETSc, also support for GNU make to directly use "make test" instead of "make -f gmakefile.test"Still needs -include ../petscdir.mk in many of the makefilesStill needs the link for ../petscdir.mk in many directoriesGNUMakefile: call legacy makefile recursively instead of including itGNUMakefile: promote default "all" target; "libs" builds libpetsc*GNUMakefile: If gnumake < 4.2 prefer makefile wrapper interface over direct gmakefile interface to avoid the following warningsgmakefile.test:92: arch-ci-linux-cxx-cmplx-pkgs-64idx/tests/testfiles: No such file or directorygmakefile:67: arch-ci-linux-cxx-cmplx-pkgs-64idx/lib/petsc/conf/files: No such file or directoryCommit-type: testing-fix, feature, usabilityThanks-to: Jed Brown jed@jedbrown.org
Merge branch 'gropp/doc-fixes-1' [PR #1838]
No more batch submission script; this is all due to a very smart idea of Lisandro Dalcin*) removed or fixed all remaining --know-xx options that required a batch submission script*) removed all de
No more batch submission script; this is all due to a very smart idea of Lisandro Dalcin*) removed or fixed all remaining --know-xx options that required a batch submission script*) removed all details of --known-size-- that are no longer needed*) cleaned up BAIJMKL source code, made it work with the rest of PETSc and removed is dependence on a batch submission script, added test case for BAIJMKL*) update the installation guide on batsch submissions and OpenMP*) print MKL version, print OpenMP usage with mkl_sparse optionsCommit-type: bug-fix, portability-fix, style-fix, feature, documentation, exampleThanks-to: Lisandro Dalcin <dalcinl@gmail.com>$ ./configure --with-batch=============================================================================== Configuring PETSc to compile on your system============================================================================================================================================================== ***** WARNING: Cannot determine if MPI_INT64_T works on your system in batch-mode! Assuming it does work. Run with --known-mpi-int64_t=0 if you know it does not work (very unlikely). Run with --known-mpi-int64_t=1 to remove this warning message. warning message ***** =============================================================================== =============================================================================== ***** WARNING: Cannot determine if MPI_C_DOUBLE_COMPLEX works on your system in batch-mode! Assuming it does work. Run with --known-mpi-c-double-complex=0 if you know it does not work (very unlikely). Run with --known-mpi-c-double-complex=1 to remove this warning message. warning message ***** =============================================================================== =============================================================================== ***** WARNING: Cannot verify that MPI is a shared library - in batch-mode! If MPI is a static library but linked into multiple shared libraries that the application uses, sometimes compiles work - but one might get run-time errors. If you know that the MPI library is shared - run with --known-mpi-shared-libraries=1 option to remove this warning message ***** =============================================================================== =============================================================================== ***** WARNING: Cannot determine if BLAS/LAPACK uses 32 bit or 64 bit integers in batch-mode! Assuming 32 bit integers. Run with --known-64-bit-blas-indices if you know they are 64 bit. Run with --known-64-bit-blas-indices=0 to remove this warning message. warning message ***** ===============================================================================
Merge from doc-fixes branch
Fixes for doctext update
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
Fixed misspelling of "paradigm" throughout manual pages.
123