Unify XXGetYYContext callsalways use void*
Remove all double blank lines from sourceCommit-type: petsc-style/2h
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 ...
SNES: Replace 0 -> NULL for pointers
Remove wrong usage of int datatype from PETSc code
Merge from doc-fixes branch
Fixes for doctext update
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
Options: Code reorganization and faster option lookup* Speedup option lookup by using a auxiliary hash table.* Move many routines around to make the implementation easier to follow. Eventually,
Options: Code reorganization and faster option lookup* Speedup option lookup by using a auxiliary hash table.* Move many routines around to make the implementation easier to follow. Eventually, we may split options.c in two, all of the query routines PetscOptionsGetXXX() do not need (and should not have) access to the PetscOptions data structure.* Restore proper handling of monitors in set/clear option events.* Add PetscOptionsHasHelp(), eventually we may add a "category" argument to do special handling of let say `-help <package>`* Change PetscOptionsReject() to handle option prefix, this makes the call easier to use in XXXSetFromOptions() implementations.
SNES: Fix 'extern' declarations
Fixes for annoying warnings from GNU (-Wmaybe-uninitialized)
Change PetscStrncat() to PetscStrlcat() to match BSD API where l represents total lengthUpdate many uses of PetscStrcpy() and PetscStrcat() to the safer PetscStrncpy() and PetscStrlcat()Commit-ty
Change PetscStrncat() to PetscStrlcat() to match BSD API where l represents total lengthUpdate many uses of PetscStrcpy() and PetscStrcat() to the safer PetscStrncpy() and PetscStrlcat()Commit-type: style-fix, featureThanks-to: Jed Brown
SNESDefaultMatrixFreeCreate2: add MatSetUp
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>
clang: more -Wcomma fixes [split up comma statements]
Deprecate PetscViewerSetFormat() since it better to use PetscViewerPush/PopFormat() and usingPetscViewerSetFormat() can lead to confusing situations for users when later viewers do not recognize the
Deprecate PetscViewerSetFormat() since it better to use PetscViewerPush/PopFormat() and usingPetscViewerSetFormat() can lead to confusing situations for users when later viewers do not recognize the setformat and thus do not produce any information.Reported-by: Jed Brown <jed@jedbrown.org>
Complete update to new PetscOptions interface
MatMFFD doesn't need to have its own null space management
updated PETSc directory layout to match standard packaging strategiesinclude/petsc finclude,private,mpiunilib/petsc confbin/petsc*
manual merge of conflict
doc: fix getpdflabels to count manual chapters correctly.Also fix URLs from man pages to manual.pdf
the compute Jacobian functions for SNES and TS now do not take a MatStructure flag
completed cleanup of removal of matrix pointers to compute jacobian routinesupdate changes filefixed tao examples to no longer use Mat* arguments for Jacobian/Hessian etc computations
completed some percentage of changes from %G format in prints
Sys: drop explicit type arguments from PetscNew() and PetscNewLog()git grep -l 'PetscNew\(Log\)\?(' -- $1 | xargs perl -pi -e 's@PetscNew\([^,;()]+ *, *@PetscNew(@;s@PetscNewLog\(([^,;()]+) *,[^,
Sys: drop explicit type arguments from PetscNew() and PetscNewLog()git grep -l 'PetscNew\(Log\)\?(' -- $1 | xargs perl -pi -e 's@PetscNew\([^,;()]+ *, *@PetscNew(@;s@PetscNewLog\(([^,;()]+) *,[^,;()]+, *@PetscNewLog($1,@'
123456789