xref: /petsc/doc/changes/dev.md (revision ed4474eb4a370bd0b975935bc736ff701abad52a)
1# Changes: Development
2
3% STYLE GUIDELINES:
4% * Capitalize sentences
5% * Use imperative, e.g., Add, Improve, Change, etc.
6% * Don't use a period (.) at the end of entries
7% * If multiple sentences are needed, use a period or semicolon to divide sentences, but not at the end of the final sentence
8
9```{rubric} General:
10```
11
12- Add `PETSCPYTHONPATH` to the generated `$PETSC_DIR/$PETSC_ARCH/lib/petsc/conf/petscvariables` file so it is available to users through the makefile system
13- Add `PETSCPYTHONPATH` to the generated `$PETSC_DIR/$PETSC_ARCH/lib/pkgconfig/PETSc.pc` file so it is available to users with
14  `PKG_CONFIG_PATH=$PETSC_DIR/$PETSC_ARCH/lib/pkgconfig pkg-config --variable=PETSCPYTHONPATH PETSc.pc`
15
16```{rubric} Configure/Build:
17```
18
19- Change `make sphinxhtml` in the `doc` directory to be `make docs`
20- Change `make docs` to put all its artifacts in `${PETSC_ARCH}-doc` instead of `doc`
21- Add support for `--download-xxx`, `--with-xxx`, and `-with-xxx-dir` for Python packages that install with pip. See packages.py
22- Change `make alletags` to `make etags`
23
24```{rubric} Sys:
25```
26
27- Add `PETSC_E`
28
29- Deprecate `PetscSSEIsEnabled()`
30- Add `PetscBTCopy()`
31
32```{rubric} Event Logging:
33```
34
35```{rubric} PetscViewer:
36```
37
38- Add `PetscViewerHDF5SetCompress()` and `PetscViewerHDF5GetCompress()`
39
40```{rubric} PetscDraw:
41```
42
43- Add `PetscDrawLGGetData()`
44
45```{rubric} AO:
46```
47
48```{rubric} IS:
49```
50
51```{rubric} VecScatter / PetscSF:
52```
53
54```{rubric} PF:
55```
56
57```{rubric} Vec:
58```
59
60```{rubric} PetscSection:
61```
62
63```{rubric} PetscPartitioner:
64```
65
66```{rubric} Mat:
67```
68
69- Add `MatConstantDiagonalGetConstant()`
70- Add `MatNullSpaceRemoveFn` type definition
71- Add `MatMFFDFn`, `MatMFFDiFn`, `MatMFFDiBaseFn`, and `MatMFFDCheckhFn` type definitions
72- Add `MatFDColoringFn` type definition
73
74```{rubric} MatCoarsen:
75```
76
77```{rubric} PC:
78```
79
80- Add `PCMatApplyTranspose()` and `PCShellSetMatApplyTranspose()`
81- Remove `PC_ApplyMultiple`
82- Add `PCShellPSolveFn`
83- Add `PCModifySubMatricesFn`
84
85```{rubric} KSP:
86```
87
88- Add `MatLMVMGetLastUpdate()`
89- Add `MatLMVMMultAlgorithm`, `MatLMVMSetMultAlgorithm()`, and `MatLMVMGetMultAlgorithm()`
90- Add `MatLMVMSymBroydenGetPhi()` and `MatLMVMSymBroydenSetPhi()`
91- Add `MatLMVMSymBadBroydenGetPsi()` and `MatLMVMSymBadBroydenSetPsi()`
92- Deprecate `KSP_CONVERGED_RTOL_NORMAL` in favor of `KSP_CONVERGED_RTOL_NORMAL_EQUATIONS` and `KSP_CONVERGED_ATOL_NORMAL` in favor of `KSP_CONVERGED_ATOL_NORMAL_EQUATIONS`
93- Add `KSPFlexibleSetModifyPC()` to provide a common API for setting the modification function for all flexible `KSP` methods
94- Add `KSPFlexibleModifyPCFn` function prototype
95- Change the function signature of the `destroy()` argument to `KSPSetConvergenceTest()` to `PetscCtxDestroyFn*`. If you provide custom destroy
96  functions to `KSPSetConvergenceTest()` you must change them to expect a `void **` argument and immediately dereference the input
97- Add `KSPPSolveFn`
98
99```{rubric} SNES:
100```
101
102- Change `SNESTestJacobian()` to report the norms
103- Add `SNESNormSchedule` support to `SNESKSPONLY`
104
105```{rubric} SNESLineSearch:
106```
107
108```{rubric} TS:
109```
110
111- Add `TSSetRunSteps()` and `-ts_run_steps` for better control of restarted jobs
112- Add `-ts_monitor_solution_skip_initial` to skip first call to the solution monitor
113- Add `-ts_monitor_wall_clock_time` to display the elapsed wall-clock time for every step
114
115```{rubric} TAO:
116```
117
118- Add `TaoBRGNSetRegularizationType()`, `TaoBRGNGetRegularizationType()`
119
120```{rubric} PetscRegressor:
121```
122
123- Add new component to support regression and classification machine learning tasks: [](ch_regressor)
124- Add `PetscRegressor` type `PETSCREGRESSORLINEAR` for solving linear regression problems with optional regularization
125
126```{rubric} DM/DA:
127```
128
129- Add `DMHasBound()`, `DM_BC_LOWER_BOUND` and `DM_BC_LOWER_BOUND`
130- Add `DMSetCellCoordinateField()`
131- Add ``localized`` argument to `DMSetCoordinateDisc()` and `DMCreateAffineCoordinates_Internal()`
132- Add `DMCreateGradientMatrix()`
133
134```{rubric} DMSwarm:
135```
136
137- Add `DMSwarmProjectFields()` and `DMSwarmProjectGradientFields()`
138
139```{rubric} DMPlex:
140```
141
142- Add `DMPlexGetTransform()`, `DMPlexSetTransform()`, `DMPlexGetSaveTransform()`, and `DMPlexSetSaveTransform()`
143- Add `DMPlexGetCoordinateMap()` and `DMPlexSetCoordinateMap()`
144- Add `DMPlexTransformCohesiveExtrudeGetUnsplit()`
145- Add `DMFieldCreateDefaultFaceQuadrature()`
146- Rename `DMPlexComputeResidual_Internal()` to `DMPlexComputeResidualForKey()`
147- Rename `DMPlexComputeJacobian_Internal()` to `DMPlexComputeJacobianByKey()`
148- Rename `DMPlexComputeJacobian_Action_Internal()` to `DMPlexComputeJacobianActionByKey()`
149- Rename `DMPlexComputeResidual_Hybrid_Internal()` to `DMPlexComputeResidualHybridByKey()`
150- Rename `DMPlexComputeJacobian_Hybrid_Internal()` to `DMPlexComputeJacobianHybridByKey()`
151- Add `DMPlexInsertBounds()`
152- Change argument order for `DMPlexComputeBdResidualSingle()` and `DMPlexComputeBdJacobianSingle()` to match domain functions
153- Add `DMPlexComputeBdResidualSingleByKey()` and `DMPlexComputeBdJacobianSingleByLabel()`
154- Add ``localized`` argument to `DMPlexCreateCoordinateSpace()`
155- Remove ``coordFunc`` argument from `DMPlexCreateCoordinateSpace()`
156
157```{rubric} FE/FV:
158```
159
160- Add `PetscFEExpandFaceQuadrature()`
161- Add `PetscFECreateBrokenElement()`
162- Change `PetscFEIntegrateJacobian()` signature to allow rectangular operators
163
164```{rubric} DMNetwork:
165```
166
167```{rubric} DMStag:
168```
169
170```{rubric} DT:
171```
172
173- Deprecate `PetscSimplePointFunc` in favor of `PetscSimplePointFn *`
174- Deprecate `PetscPointFunc` in favor of `PetscPointFn *`
175- Deprecate `PetscPointJac` in favor of `PetscPointJacFn *`
176- Deprecate `PetscBdPointFunc` in favor of `PetscBdPointFn *`
177- Deprecate `PetscBdPointJac` in favor of `PetscBdPointJacFn *`
178- Deprecate `PetscRiemannFunc` in favor of `PetscRiemannFn *`
179- Deprecate `PetscProbFunc` in favor of `PetscProbFn *`
180- Add `PetscDTCreateQuadratureByCell()`
181
182```{rubric} Fortran:
183```
184
185- Add `PetscObjectNullify()`
186