Fix the inconsistent usage of #if [!]defined XXX compared to defined(XXX)Thanks-to: Pierre JolivetAn LLM Claude detected the incosnsitency it was not used to remove the inconsistency
Replace mpirun with mpiexec, as only the latter is in the standard
Add automatic generated fortran support for setting and returning contextsMajor cleanup of the code for setting and returning application (previously called user) contexts - PetscCtx ctx is now t
Add automatic generated fortran support for setting and returning contextsMajor cleanup of the code for setting and returning application (previously called user) contexts - PetscCtx ctx is now the standard for passing in contexts - PetscCtxRt ctx is the standard for passing out contexts, including context destroy routines based on PetscCtxDestroyFnBoth of these are typedef to void*Also removed most use of user and userctx for context arguments now consistently named ctxImproved documentation on PetscCtx and PetscCtxRt and on how to use contexts (including getting them) from Fortran
show more ...
Merge branch 'release'
petsc4py: Add documentation of Python TAO interface
- Replace MatMissingDiagonal() and MatMarkDiagonals_SeqXXX() with MatGetDiagonalMarkers_SeqXXX() - Mat_SeqXXX->diag is not automatically created during MatAssemblyEnd() saving memory and time
- Replace MatMissingDiagonal() and MatMarkDiagonals_SeqXXX() with MatGetDiagonalMarkers_SeqXXX() - Mat_SeqXXX->diag is not automatically created during MatAssemblyEnd() saving memory and time - Accessing Mat_SeqXXX->diag now requires the use of MatGetDiagonalMarkers_SeqXXX() except when the current values are known to be correct; for example during numerical factorizations and solves - Mat_SeqXXX->diag is now never shared among matrices; hence the free_diag flag is gone. That was always a risky proposition since any of the owning matrices could chang the values thus making them incorrect for other owners.
PCHPDDM: check --with-debugging that -pc_hpddm_has_neumann is correctThanks-to: Eric Chamberland @eric.chamberland, Félix Kwok <felix.kwok@mat.ulaval.ca>
Run fprettify
PCHPDDM: switch to native SLEPc options- Deprecate -eps_threshold in favor of -eps_threshold_absolute- Deprecate -eps_relative_threshold in favor of -eps_threshold_relative- Deprecate -svd_relati
PCHPDDM: switch to native SLEPc options- Deprecate -eps_threshold in favor of -eps_threshold_absolute- Deprecate -eps_relative_threshold in favor of -eps_threshold_relative- Deprecate -svd_relative_threshold in favor of -svd_threshold_relative- More flexibility to users, e.g., one can now supply -svd_threshold_relative but not -svd_nsv
Fixes suggested by Fortitude to Fortran code (minor)
Merge remote-tracking branch 'origin/release'
PCHPDDM: small fixes in petsc4py demo
Remove use of preconditioning or preconditioner matrix when it should be phrased as matrix used to construct preconditioner
Add support for --download-dolphinx and its needed packagesAlso add saving of pythonpath and PYTHONPATH in pkgconfig and petscvariables for users to access
Add initial version PetscRegressor, part of the planned machine learning (ML) toolkitCo-authored-by: Mr. Hong Zhang <hongzhang@anl.gov>Co-authored-by: Hansol Suh <hsuh@anl.gov>Co-authored-by: Bar
Add initial version PetscRegressor, part of the planned machine learning (ML) toolkitCo-authored-by: Mr. Hong Zhang <hongzhang@anl.gov>Co-authored-by: Hansol Suh <hsuh@anl.gov>Co-authored-by: Barry Smith <bsmith@petsc.dev>Co-authored-by: Toby Isaac <toby.isaac@gmail.com>Co-authored-by: Satish Balay <balay@mcs.anl.gov>Mr. Hong Zhang developed the petsc4py interface and examples.Hansol Suh provided extensive help with updating the code to the latest PETSc coding guidelines and APIs, some documentation development, getting documentation to build correctly, getting new tests into the test harness, and numerous big fixes plus minor changes.Barry Smith provided extensive feedback and code to get the Fortran interfaces and documentation build working.Toby Isaac provided a fix to prevent breakage with complex-arithmetic builds.Satish Balay provided important help with fixing builds.Thanks-to: Pierre Jolivet <pierre@joliv.et>Thanks-to: Jed Brown <jed@jedbrown.org>Thanks-to: Jose Roman <jroman@dsic.upv.es>Thanks-to: Stefano Zampini <stefano.zampini@gmail.com>Pierre, Jed, Jose, and Stefano provided extremely helpful feedback and suggestions during the merge review process.
PCHPDDM: move Python examples into petsc4py source treeSee also: https://gitlab.com/petsc/petsc/-/issues/1644
Fortran 90: fully embrace After 34 years!- deprecate use of 'F90' in Fortran function names- use Fortran pointers when appropriate- the new Fortran API is not backward compatible with previous ve
Fortran 90: fully embrace After 34 years!- deprecate use of 'F90' in Fortran function names- use Fortran pointers when appropriate- the new Fortran API is not backward compatible with previous versions!- also clean up inconsistent PETSc code detected by new Fortran generation tools- drop use of bfort- automatically generate all the Fortran PETSc objects, enums etc from the include files- generate most of the Fortran interface definitions and functions from the source code- simplify the number and organization of Fortran modulesCo-authored-by: Jose E. Roman <jroman@dsic.upv.es>
petsc4py: modernize legacy ode demos
Plex+Viewer: Added Python and PyVista viewers- Enable viewer filename interface for Python viewer- Add -viewer_python_filename to set the output filename- Add -dm_plex_transform_active_values to e
Plex+Viewer: Added Python and PyVista viewers- Enable viewer filename interface for Python viewer- Add -viewer_python_filename to set the output filename- Add -dm_plex_transform_active_values to explicitly set values in the label- Add -dm_plex_option_phases to control sequencing of setup from the command line
Add python APIs
Add an error check for DMSetFromOptions() being called after DMSetUp().Reported-by: Jack Smith
petsc4py: finalize docstring and lintingdefault options values should have the correct typefix testsconform oarray to PETSc conventionwrap Py_InitializeEx and PyImport_ImportModule with stack ca
petsc4py: finalize docstring and lintingdefault options values should have the correct typefix testsconform oarray to PETSc conventionwrap Py_InitializeEx and PyImport_ImportModule with stack callsupdate makefile for docs and linting rulesadd petsc4py tests to linux-pkgs-dbgmodify documentation
123