fix violations of PETSc style guide: Usage of SETERRQ and NULL
fixed missing CHKERRQ() detected by clang's --analyze
updated PETSc directory layout to match standard packaging strategiesinclude/petsc finclude,private,mpiunilib/petsc confbin/petsc*
manual merge of conflict
convert some PetscMalloc() to PetscMalloc1()remove unneeded () in first argument to PetscMalloc/Calloc1()fixes for MATLAB examples
insure that all casts to (double) are enclosed in ()
completed some percentage of changes from %G format in prints
Sys: add PetscMalloc1 macro, array allocation without redundant typesThe type is inferred from the pointer return type. This patch isautomated via the following script:git grep -l 'PetscMalloc(
Sys: add PetscMalloc1 macro, array allocation without redundant typesThe type is inferred from the pointer return type. This patch isautomated via the following script:git grep -l 'PetscMalloc(.*sizeof' src | xargs perl -pi -e 's@PetscMalloc\(([^,;]*[^,; ]) *\* *sizeof\([^,;()]+\),@PetscMalloc1($1,@'This commit contains an additional bug-fix in csrperm.c, fixing pointerarity. The code was introduced in 2006, but the allocation could nothave been correct at any time. This probably means thatMatDuplicate_SeqAIJPERM has never been tested. a54129beb540034ba105796c682d589e7e1111f2 Richard Tran Mills <rmills@ornl.gov> Added MATSEQCSRPERM support for MatDuplicate() and conversion to/from MATSEQAIJ. Note that these changes are not quite debugged.
show more ...
logging memory now credits to all ancestors
Change all PETSC_EXTERN_C to PETSC_EXTERNHg-commit: 8d2ebbb193fb583bccc64015e35640c4e08c3426
completed removing unneeded EXTERN_C_BEGIN/END from Mat directories and converting to PETSC_EXTERN_C for constructorstested with and without dynamic with and without C++Hg-commit: 7d27d7f4d9ea3bfe
completed removing unneeded EXTERN_C_BEGIN/END from Mat directories and converting to PETSC_EXTERN_C for constructorstested with and without dynamic with and without C++Hg-commit: 7d27d7f4d9ea3bfe6616fafdfb32d046b5db53a1
added PetscObjectComm() and used it to replace (((PetscObject)obj)->comm)Hg-commit: 3da37c458124ad48ae939f4e9823e4430ee0b8be
removed PETSC_NULL from C and Fortran (except declaration in C for backward compatibility). Kept PETSC_NULL_xxx for FortranFixed a few bugs where PETSC_NULL had been used incorrectly.Hg-commit: 05
removed PETSC_NULL from C and Fortran (except declaration in C for backward compatibility). Kept PETSC_NULL_xxx for FortranFixed a few bugs where PETSC_NULL had been used incorrectly.Hg-commit: 054705a517d7f4388a8a084415d7478cbe95dff4
Uncrustified src/mat/*.Hg-commit: 5c6f04286a6cfcd98361b2479b884c0041d95b73
Partially uncrustified /src/mat/*Hg-commit: f66b7241e67ccd55e47747ce1f2433e82e4f86b9
Reformatted: "Do not put a blank line immediately before PetscFunctionReturn;"Hg-commit: c8a41c455986e732d0ea0513d7162a54daffaece
Reformatted: "There should be a blank line before PetscFunctionBegin;"Hg-commit: 05bda4416aaceb2dbd9d85b5720629adc88eef98
Partially unified indentation to two spaces rather than 3, 5, etc.Hg-commit: 72aceb82fa10cae79a777f91c00d187d4e02f4f6
Updated style to obey 'Do not put a blank line immediately after PetscFunctionBegin;'Hg-commit: 5408b9ce2402ad624305b7a7a323ab3ae5e0c3f1
Reformatting: 'No space after a '(' or before a ')''Hg-commit: 797341a7bfba18bb97e6da668b36bad2e5977356
Carefully replaced more '){' by ') {', added checker scriptHg-commit: a0037010be00b56a68354d942365c8f8df63198a
Style improvements: braces around 'else', partial '){' -> ') {'Hg-commit: adc31fe870178bcba56a29e10981c8f8716a006a
Carefully removed \t from src/mat/. All sources are now free from tabs (exceptions: LaTeX docs, ftn-auto/ folders)Hg-commit: 41ce18e98b1c9ae2af455e6fa76b9abd371521ee
fixed rest of mising CHKERRQ() fixed a few unused but set variablesHg-commit: 4acc0881334451e4d784ba0aa3b37fae2f983d1f
removed trailing spaces from all filesHg-commit: 1cfa55059afe46c5145e0e830cd797b97216abfb
123456