SNES: expose Divergence tolerance API to petsc4pyalign C API to the PETSc convention when using PETSC_DEFAULT
This requires some changes to user FORTRAN codePass PETSC_NULL_XXX_ARRAY when passing a NULL as an argument that is expecting an arrayPass PETSC_NULL_ENUM when argument returns an enum instead of
This requires some changes to user FORTRAN codePass PETSC_NULL_XXX_ARRAY when passing a NULL as an argument that is expecting an arrayPass PETSC_NULL_ENUM when argument returns an enum instead of PETSC_NULL_INTEGERPass arrays (and not scalar values) when the argument is expecting an array; this means replace, for example, the argument v with [v]Use PetscObjectIsNull(obj) to check if the object is NULL, instead of obj == PETSC_NULL_XXXThe compiler will now automatically prevent you from using the wrong argument type for the first three bullets aboveThis will also require an update sowing with the new sowing branch this MR is using.
show more ...
All constructors should do PetscAssertPointer on output objectReported-by: Blaise BourdinConstructors should not initialize the output to NULL upon entry, serves no purposeFix some formatting i
All constructors should do PetscAssertPointer on output objectReported-by: Blaise BourdinConstructors should not initialize the output to NULL upon entry, serves no purposeFix some formatting in constructors
SNES: clarify update usagefix TR and missing call in SNESPYTHON
Merge remote-tracking branch 'origin/release'
Merge branch 'stefanozampini/fix-dirk-dae-restart' into 'release'Guarantee that SNES function is called before SNES jacobian in multilevel solversSee merge request petsc/petsc!7563
Fix a few locations where SNESFunctionFN and SNESObjectiveFn were not used
Merge branch 'release'
Add Fortran stub for SNESSetObjective()Add Fortram test of the stub for SNESSetObjective()
Update sowing bfort for automatic generation of XXXDestroy() codeFix some Fortran stub code to work with generation of XXXDestroy()Add some runtime tests for XXXCreate() callsAlso update sowing
Update sowing bfort for automatic generation of XXXDestroy() codeFix some Fortran stub code to work with generation of XXXDestroy()Add some runtime tests for XXXCreate() callsAlso update sowing and fortranimpl.h to use PETSC_NULLPTR instead of NULL
KSPComputeOperators_SNES: raise error if SNESVecSol is missin
KSPComputeOperators_SNES: adhere to the SNES contract in multilevel solversThe assumption everywhere in PETSc is that SNESComputeFunctionis always called before SNESComputeJacobianThis is particu
KSPComputeOperators_SNES: adhere to the SNES contract in multilevel solversThe assumption everywhere in PETSc is that SNESComputeFunctionis always called before SNESComputeJacobianThis is particularly important for TS, where all callbacks have special treatmentfor multilevel solvers.
Update to sowing version that supports PetscViewer and PetscObjectRemove manual Fortran stubs for PetscViewer and PetscObject arguments since now handled by sowingAlso handles the passing of null
Update to sowing version that supports PetscViewer and PetscObjectRemove manual Fortran stubs for PetscViewer and PetscObject arguments since now handled by sowingAlso handles the passing of null objects correctly
Update source code removing all unneeded /*@C and associated manual stubs and interfaces
Align KSP and SNES converged reason output with iteration count outputThis makes it clearer which level of solve the converged reason is associated withCommit-type: usabilityFix amount of indenta
Align KSP and SNES converged reason output with iteration count outputThis makes it clearer which level of solve the converged reason is associated withCommit-type: usabilityFix amount of indentation used when printing out converged reasons
Merge branch 'barry/2024-03-13/fix-snes-mf-operator-with-tssetijacobian-and-no-snessetup' into 'main'Fix use of SNESSetUpMatrices() with -snes_mf_operator but no user call to...See merge request
Merge branch 'barry/2024-03-13/fix-snes-mf-operator-with-tssetijacobian-and-no-snessetup' into 'main'Fix use of SNESSetUpMatrices() with -snes_mf_operator but no user call to...See merge request petsc/petsc!7367
Fix use of SNESSetUpMatrices() with -snes_mf_operator but no user call to SNESSetUp() with TSSetIJaccobian(ts,NULL,NULL);reported by James Wright
Docs: fix missing or extra dash in right-hand side
Remove multiple parentheses and extra semicolongit grep -l -E "\(\([a-zA-Z0-9_]+\)\(\*[a-zA-Z0-9_]+\)[, )]" | xargs sed -r -i'' 's#\(\(([a-zA-Z0-9_]+)\)\(\*([a-zA-Z0-9_]+)\)([, )])#\(\(\1\)\*\2\3#g
Remove multiple parentheses and extra semicolongit grep -l -E "\(\([a-zA-Z0-9_]+\)\(\*[a-zA-Z0-9_]+\)[, )]" | xargs sed -r -i'' 's#\(\(([a-zA-Z0-9_]+)\)\(\*([a-zA-Z0-9_]+)\)([, )])#\(\(\1\)\*\2\3#g'git grep -l -E "Petsc(.)*\(\(\*[a-zA-Z0-9_]*\)," | xargs sed -r -i'' 's#Petsc([a-zA-Z0-9_]*)\(\(\*([a-zA-Z0-9_]*)\), #Petsc\1(*\2, #g'git grep -l -E "([\!\&\~\*\(]|\)\)|\([^,\*\(]+\**\))\(([a-zA-Z0-9_]+((\.|->)[a-zA-Z0-9_]+|\[[a-zA-Z0-9_ \%\+\*\-]+\])+)\)" | xargs sed -r -i'' 's#([\!\&\~\*\(]|\)\)|\([^,\*\(]+\**\))\(([a-zA-Z0-9_]+((\.|->)[a-zA-Z0-9_]+|\[[a-zA-Z0-9_ \%\+\*\-]+\])+)\)#\1\2#g'
Remove trailing whitespace
checkbadSource: rules for PetscFunctionBegin and derivatives
Fix words appearing twice in a row for no good reason
Make DMSNES[Set,Get]Objective docs mirror SNES[Set,Get]Objective docs
Merge branch 'barry/2024-01-19/typedef-snes-functions' into 'main'add typedef for functions passed to SNESSetFunction() etc to match approach in TSSee merge request petsc/petsc!7206
Change the use of the _Fn suffix to indicate a typedef of a function to just FnAs determined on a vote on GitLab
12345678910>>...74