KSPSetOperators() no longer has the MatStructure argument. The Mat objects now track that information themselves. Use KPS/PCSetReusePreconditioner() to prevent the recomputation of the preconditioner
KSPSetOperators() no longer has the MatStructure argument. The Mat objects now track that information themselves. Use KPS/PCSetReusePreconditioner() to prevent the recomputation of the preconditioner if the operator changed in the way that SAME_PRECONDITIONER did with KSPSetOperators()SNES/TS still need to be cleaned up to better utilize the new interfaces
show more ...
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
introduced nonlinear solver HTML tablechanged gs and pc in SNES to ngs and npc for consistency and clarity
added citations for TS and SNES papers
Merge branch 'barry/fix-singleton-viewer'
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,@'
Sys: add PetscCalloc[1-7]Replace lots of places where PetscMemzero is called immediately afterallocation.
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.
fixed PetscViewerASCIIPrintf() for a single viewer so that the singletons ASCII output is actually preserved
Merge branch 'master' into barry/sawsConflicts: src/ksp/pc/impls/gamg/gamg.c src/sys/classes/viewer/impls/ams/ams.c src/sys/objects/pinit.c
Merge branch 'jed/converged-default-and-skip'This process started with SNESDefaultConverged -> SNESConvergedDefaultin v3.4, but the other parts have been added piecemeal. Deprecationsupport in C
Merge branch 'jed/converged-default-and-skip'This process started with SNESDefaultConverged -> SNESConvergedDefaultin v3.4, but the other parts have been added piecemeal. Deprecationsupport in C interface.* jed/converged-default-and-skip: SNES and KSP: add deprecation for *DefaultConverged and *SkipConverged KSP: rename KSPDefaultConverged* to KSPConvergedDefault* KSP: rename KSPSkipConverged -> KSPConvergedSkip SNES: document SNESSkipConverged -> SNESConvergedSkip snes->ttol to be used only in convergence tests. Renamed SNESKSPEW_Pre/PostSolve --> KSPPre/PostSolve_SNESEW. Renamed SNESSkipConverged --> SNESConvergedSkip.Conflicts: include/petscsnes.h src/docs/website/documentation/changes/dev.html
Merge branch 'barry/dmvecmattypes' into barry/sawsNeeded to work with version of PETSc that did not have constant calls to VecSetFromOptions() etcConflicts: src/ksp/ksp/interface/ams/kspams.c s
Merge branch 'barry/dmvecmattypes' into barry/sawsNeeded to work with version of PETSc that did not have constant calls to VecSetFromOptions() etcConflicts: src/ksp/ksp/interface/ams/kspams.c src/snes/impls/composite/snescomposite.c src/snes/impls/gs/snesgs.c src/snes/impls/nasm/nasm.c src/snes/impls/ngmres/snesngmres.c
snes->ttol to be used only in convergence tests.
Removed extraneous SNESSetInitialFunctionNorm().The norm is cached on vec_func after copy, so this is unnecessary.
converted uAMS usage to SAWs usage; starts server but cannot see any published directories
NEWTONLS works with preconditioned and unpreconditioned functions.ASPIN (or other left-preconditioned Newton methods) can be run witheither the usual function or the preconditioned function monito
NEWTONLS works with preconditioned and unpreconditioned functions.ASPIN (or other left-preconditioned Newton methods) can be run witheither the usual function or the preconditioned function monitoringconvergence.
Changed SNESNormType to SNESNormSchedule to better describe what it does.
Merge branch 'prbrune/snes-nasmview'Conflicts: src/snes/impls/nasm/nasm.c
Merge branch 'prbrune/snes-aspinfeatures'Conflicts: src/snes/impls/nasm/nasm.c
complex fix for SNESView_NASM()
SNESView_NASM() fix for displaying subsolvers
SNESGetLineSearch / SNESSetLineSearch: rename for consistencyThis function was introduced as SNESGetPetscLineSearch, which matches noestablished convention, then changed to SNESGetSNESLineSearch a
SNESGetLineSearch / SNESSetLineSearch: rename for consistencyThis function was introduced as SNESGetPetscLineSearch, which matches noestablished convention, then changed to SNESGetSNESLineSearch accordingto the object name SNESLineSearch. This is inconsistent with names suchas MatGetInfo, MatGetColoring, MatGetNullSpace, MatGetLocalToGlobalMapping,SNESGetConvergedReason, and TSGetAdapt.This is a change from petsc-3.3.
I missed a couple similar cases to the previous one in nasm.c
Fixed segfault in NASM when you've messed up the solver
PetscObjectQueryFunction: use macro to hide PetscVoidFunction* castRationale is the same as the parent. This makes all ofPetscFunctionListAdd(), PetscFunctionListFind(),PetscObjectComposeFunction
PetscObjectQueryFunction: use macro to hide PetscVoidFunction* castRationale is the same as the parent. This makes all ofPetscFunctionListAdd(), PetscFunctionListFind(),PetscObjectComposeFunction(), and PetscObjectQueryFunction() consistentregarding function pointer return types.
12345678