Updated the use of sizeof() when possible instead of using hardwired sizes for functions whose string argumentsneed sizes. In particular done for PetscOptionsGetString(), PetscOptionsString(), and a
Updated the use of sizeof() when possible instead of using hardwired sizes for functions whose string argumentsneed sizes. In particular done for PetscOptionsGetString(), PetscOptionsString(), and a few other utilitiesCommit-type: style-fixDevelopment Tools: Vim, Emacs, Eclipse
show more ...
Remove usage of PETSC_HAVE_FORTRAN_STDCALL, PETSC_BLASLAPACK_STDCALL, HAVE_FORTRAN_MIXED_STR_ARG flags - as Compaq f90 compiler is no longer supported
Sys: Replace 0 -> NULL for pointers
Replace use of 1 with appropriate error code; use PetscObjecComm() instead of PETSC_COMM_SELF for errors when appropriateCommit-type: error-checking, testing-fix, style-fix, examples
fix petsc4py for --package-prefix-hashAnd Packages installed after PETSc (like petsc4py) should not go in package-prefix-hash
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
PYTHON_LIB: remove hakey code for OSX and replace with more general code
PetscPythonFindLibrary: swap cmd1 and cmd3 - so that the most common usage use tried first[the updated cmd1 works with most python2 and python3 installs]
Fix Python initialization* Cannot pass NULL for argv in Python 3, IMHO there is a null deref bug in Python/pathconfig.c at _PyPathConfig_ComputeArgv0().* Initialize empty sys.argv for both Pytho
Fix Python initialization* Cannot pass NULL for argv in Python 3, IMHO there is a null deref bug in Python/pathconfig.c at _PyPathConfig_ComputeArgv0().* Initialize empty sys.argv for both Python 2 and Python 3. If this ever proves to be a problem, in the Python 3 case we should call PetscGetArgs(&argc,&argv) and then C90 mbstowcs() to convert each entry of argv from char* to wchar_t*.
Merge branch 'barry/ksp/tests-to-new-harness'
cleanup code to determine location of Python dynamic libraryCommit-type: style-fix
Apparently no single way to obtain Python dynamic library name
missing closing ' in python commandCommit-type: bug-fix
Use distutils to locate Python dynamic library instead of ad hoc construction of path that is often wrong.Commit-type: bug-fix, portability-fixReported-by: nightly tests
Remove handling of error code from PetscPClose() since some systems do not reliably return it.Commit-type: portability-fix
If cannot locate symbols in Python library for petsc4py then print attempted Python library in error messageCommit-type: featureThanks-to: Pablo Brubeck <brubeck@protonmail.com>
Minor cleanup, remove some outdated code, remove unneeded constructs, improve manual pages slightly, add missing test caseTime: 2.5 hours
Remove the use and definition of __FUNCT__ throughout the codeSince all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETScTime: 1.5 hoursThanks-t
Remove the use and definition of __FUNCT__ throughout the codeSince all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETScTime: 1.5 hoursThanks-to: Andreas Mang <andreas@ices.utexas.edu>
Complete update to new PetscOptions interface
fix violations of PETSc style guide: Usage of SETERRQ and NULL
updated PETSc directory layout to match standard packaging strategiesinclude/petsc finclude,private,mpiunilib/petsc confbin/petsc*
manual merge of conflict
Change all PETSC_EXTERN_C to PETSC_EXTERNHg-commit: 8d2ebbb193fb583bccc64015e35640c4e08c3426
updated from EXTERN_C_BEGIN/END through sys directoryHg-commit: ee6b7ef2f48ce66402e7e807302de19506ce15df
Make petscimpl.h privateHg-commit: 910e8b03a54a915953944da6f75eb81c807d7428
12345