xref: /petsc/doc/changes/dev.md (revision 3220ff8572602716d60bdda8b51773ebceb3c8ea)
195f7d040SSatish Balay# Changes: Development
295f7d040SSatish Balay
395f7d040SSatish Balay% STYLE GUIDELINES:
495f7d040SSatish Balay% * Capitalize sentences
595f7d040SSatish Balay% * Use imperative, e.g., Add, Improve, Change, etc.
695f7d040SSatish Balay% * Don't use a period (.) at the end of entries
795f7d040SSatish Balay% * If multiple sentences are needed, use a period or semicolon to divide sentences, but not at the end of the final sentence
895f7d040SSatish Balay
995f7d040SSatish Balay```{rubric} General:
1095f7d040SSatish Balay```
1195f7d040SSatish Balay
12a51b1039SEric Chamberland- Change behavior of `-options_left` when set to `true`: it no longer triggers a call to `PetscOptionsView()`
13873ad108SBarry Smith- Change $PETSC_DIR/lib/petsc/bin/petscfreesharedmemory to $PETSC_DIR/lib/petsc/bin/petscfreesharedmemory.sh
14a51b1039SEric Chamberland
1595f7d040SSatish Balay```{rubric} Configure/Build:
1695f7d040SSatish Balay```
1795f7d040SSatish Balay
1893d84e17SPierre Jolivet- Make `SYCL` a `devicePackage`, i.e., builds `--with-sycl` now have `PETSC_HAVE_DEVICE` defined
19c95305b8SPierre Jolivet- Add the option `--with-devicelanguage` to compile `PetscDevice` code using either a C or C++ compiler
208fc55d51SJunchao Zhang- Add `Caliper`, an instrumentation and performance profiling library that can be used to profile `Hypre`.
21963d5894Spaul.kuehner- Add typing stubs for the Python extension module `petsc4py.PETSc`.
221d2adac4SSatish Balay- Remove `--with-mumps-serial` option, rely on `--with-mpi=0`
2393d84e17SPierre Jolivet
2495f7d040SSatish Balay```{rubric} Sys:
2595f7d040SSatish Balay```
2695f7d040SSatish Balay
27a333fa2bSZach Atkins- Add `PetscCallHYPRE()` to check HYPRE error codes and print error messages on failure
289844c891SJames Wright- Add `PetscBTCountSet()` to count set bits in `PetscBT`
29955c50dbSJunchao Zhang- Add the option `-hypre_umpire_device_pool_size <n>` to set the Umpire device memory pool size (in MiB), which is used by HYPRE and 4 Gib by default
30a333fa2bSZach Atkins
31a333fa2bSZach Atkins
3295f7d040SSatish Balay```{rubric} Event Logging:
3395f7d040SSatish Balay```
3495f7d040SSatish Balay
355268dc8aSHong Zhang- Add two approaches for GPU energy monitoring:  `-log_view_gpu_energy` and `-log_view_gpu_energy_meter`
365268dc8aSHong Zhang- Add API `PetscLogGpuEnergy()`, `PetscLogGpuEnergyMeter()`, `PetscLogGpuEnergyMeterBegin()` and `PetscLogGpuEnergyMeterEnd()` for GPU energy monitoring
375268dc8aSHong Zhang
3895f7d040SSatish Balay```{rubric} PetscViewer:
3995f7d040SSatish Balay```
4095f7d040SSatish Balay
41e6aa7a3bSBarry Smith- Change the final argument of `PetscViewerGLVisSetFields()` to `PetscCtxDestroyFn *`. This means the destroy function must dereference the argument before operating on it
42e6aa7a3bSBarry Smith
4395f7d040SSatish Balay```{rubric} PetscDraw:
4495f7d040SSatish Balay```
4595f7d040SSatish Balay
4695f7d040SSatish Balay```{rubric} AO:
4795f7d040SSatish Balay```
4895f7d040SSatish Balay
4995f7d040SSatish Balay```{rubric} IS:
5095f7d040SSatish Balay```
5195f7d040SSatish Balay
5295f7d040SSatish Balay```{rubric} VecScatter / PetscSF:
5395f7d040SSatish Balay```
5495f7d040SSatish Balay
5595f7d040SSatish Balay```{rubric} PF:
5695f7d040SSatish Balay```
5795f7d040SSatish Balay
5895f7d040SSatish Balay```{rubric} Vec:
5995f7d040SSatish Balay```
6095f7d040SSatish Balay
6195f7d040SSatish Balay```{rubric} PetscSection:
6295f7d040SSatish Balay```
6395f7d040SSatish Balay
646964b6c7SJames Wright- Add `PetscSectionMigrateData()`, akin to `DMPlexDistributeData()`
656964b6c7SJames Wright
6695f7d040SSatish Balay```{rubric} PetscPartitioner:
6795f7d040SSatish Balay```
6895f7d040SSatish Balay
6995f7d040SSatish Balay```{rubric} Mat:
7095f7d040SSatish Balay```
7195f7d040SSatish Balay
72cc1eb50dSBarry Smith- Change the `destroy()` function argument of `MatShellSetMatProductOperation()` to type `PetscCtxDestroyFn *`. This means the destroy function must dereference the argument before operating on it
73421480d9SBarry Smith- Remove `MatMissingDiagonal()`. Developers should use `MatGetDiagonalMarkers_SeqXXX()` when the functionality is needed
74b0c98d1dSPierre Jolivet- Change `MatSetOption(A, MAT_HERMITIAN, PETSC_TRUE)` for `MatSBAIJ` to no longer automatically set the option `MAT_SYMMETRIC` to `PETSC_FALSE`. It is now the duty of the user to call `MatSetOption(A, MAT_SYMMETRIC, PETSC_FALSE)` if a `MatSBAIJ` is Hermitian but not symmetric
751e2d28a0SPierre Jolivet- Deprecate `-matmatmult_Bbn` in favor of `-matproduct_batch_size`
76cc1eb50dSBarry Smith
7795f7d040SSatish Balay```{rubric} MatCoarsen:
7895f7d040SSatish Balay```
7995f7d040SSatish Balay
8095f7d040SSatish Balay```{rubric} PC:
8195f7d040SSatish Balay```
8295f7d040SSatish Balay
83cf053153SJunchao Zhang- Add multi-precision support for MUMPS. One could use `-pc_precision <single, double>` to set the precision to be used by MUMPS, which can be different from `PetscScalar`'s precision
84ac521185SJunchao Zhang- Add support for MUMPS out-of-core facility with the option `-mat_mumps_ooc_tmpdir <dir>` and new functions `MatMumpsSetOocTmpDir()`, `MatMumpsGetOocTmpDir()`
85cf053153SJunchao Zhang
8695f7d040SSatish Balay```{rubric} KSP:
8795f7d040SSatish Balay```
8895f7d040SSatish Balay
89*bf0c7fc2SBarry Smith- Change `KSPSetDMActive()` to take a `KSPDMActive` argument
901f08b62aSPierre Jolivet- Remove `KSPHPDDMPrecision` in favor of `PetscPrecision`
916364ff28SBarry Smith- Deprecate `KSPPIPEGCRSetModifyPC()`, `KSPGCRSetModifyPC()`, and `KSPFGMRESSetModifyPC()` in favor of `KSPFlexibleSetModifyPC()`
926364ff28SBarry Smith- Deprecate `KSPFGMRESModifyPCNoChange()` and `KSPFGMRESModifyPCKSP()` in favor of `KSPFlexibleModifyPCNoChange()` and `KSPFlexibleModifyPCKSP()`
931f08b62aSPierre Jolivet
9495f7d040SSatish Balay```{rubric} SNES:
9595f7d040SSatish Balay```
9695f7d040SSatish Balay
9712651944SBarry Smith- Change the `destroy()` function argument of `SNESSetConvergenceTest()` to type `PetscCtxDestroyFn *`. This means the destroy function must dereference the argument before operating on it
9876c63389SBarry Smith- Add `SNESSetObjectiveDomainError()`
9976c63389SBarry Smith- Change `SNES_DIVERGED_FNORM_NAN` to `SNES_DIVERGED_FUNCTION_NANORINF`
10076c63389SBarry Smith- Add `SNES_DIVERGED_OBJECTIVE_NANORINF`
10176c63389SBarry Smith- Add `SNES_DIVERGED_OBJECTIVE_DOMAIN`
10276c63389SBarry Smith- Add developer functions `SNESCheckFunctionDomainError()`, `SNESLineSearchCheckFunctionDomainError()`, `SNESCheckObjectiveDomainError()`, `SNESLineSearchCheckObjectiveDomainError()`, `SNESCheckJacobianDomainError()`, and `SNESLineSearchCheckJacobianDomainError()`
10312651944SBarry Smith
10495f7d040SSatish Balay```{rubric} SNESLineSearch:
10595f7d040SSatish Balay```
10695f7d040SSatish Balay
10795f7d040SSatish Balay```{rubric} TS:
10895f7d040SSatish Balay```
10995f7d040SSatish Balay
1100fe2f5c2SJames Wright- Add `TSPseudoComputeFunction()` to get nonlinear residual while avoiding recalculation if possible
111bef8cd95SJames Wright- Remove unused `TSPseudoVerifyTimeStepDefault()`
1123e02b344SJames Wright- Remove `TSPseudoComputeTimeStep()` and `TSPseudoVerifyTimeStep()`
113188af4bfSBarry Smith- Change the `destroy()` function argument of `TSTrajectorySetTransform()` to type `PetscCtxDestroyFn *`. This means the destroy function must dereference the argument before operating on it
114188af4bfSBarry Smith- Correct option `-ts_max_reject` to `-ts_max_step_rejections`
115188af4bfSBarry Smith- Correct option `-ts_dt` to `-ts_time_step`
11698cba041SBarry Smith
11795f7d040SSatish Balay```{rubric} TAO:
11895f7d040SSatish Balay```
11995f7d040SSatish Balay
12095f7d040SSatish Balay```{rubric} PetscRegressor:
12195f7d040SSatish Balay```
12295f7d040SSatish Balay
12395f7d040SSatish Balay```{rubric} DM/DA:
12495f7d040SSatish Balay```
12595f7d040SSatish Balay
126e6aa7a3bSBarry Smith- Change the final argument of `DMShellSetDestroyContext()` to `PetscCtxDestroyFn *`. This means the destroy function must dereference the argument before operating on it
127f59a9984SJames Wright- Add `DMLabelGetValueISGlobal()` to get globally consistent `IS` of values in a `DMLabel`
128e6aa7a3bSBarry Smith
12995f7d040SSatish Balay```{rubric} DMSwarm:
13095f7d040SSatish Balay```
13195f7d040SSatish Balay
13295f7d040SSatish Balay```{rubric} DMPlex:
13395f7d040SSatish Balay```
13495f7d040SSatish Balay
13544a422c4SJames Wright- Add `DMPlexVecGetClosureAtDepth()`
13671f1c950SStefano Zampini- Add an extra communicator argument to `DMPlexFilter()` to allow extracting local meshes
137828beda2SMark Adams- Add `DMPlexGetLETKFLocalizationMatrix` to compute localization weight matrix for LETKF
138ec93882dSJames Wright- Change `verticesAdjSaved` parameter in `DMPlexCreateFromCell*Parallel*()` functions to be allocated by function rather than by user
13944a422c4SJames Wright
14095f7d040SSatish Balay```{rubric} FE/FV:
14195f7d040SSatish Balay```
14295f7d040SSatish Balay
14395f7d040SSatish Balay```{rubric} DMNetwork:
14495f7d040SSatish Balay```
14595f7d040SSatish Balay
14695f7d040SSatish Balay```{rubric} DMStag:
14795f7d040SSatish Balay```
14895f7d040SSatish Balay
14995f7d040SSatish Balay```{rubric} DT:
15095f7d040SSatish Balay```
15195f7d040SSatish Balay
15295f7d040SSatish Balay```{rubric} Fortran:
15395f7d040SSatish Balay```
154b06eb4cdSBarry Smith
155b06eb4cdSBarry Smith- Replace `./configure` option `--with-mpi-f90module-visibility` with `--with-mpi-ftn-module=<mpi or mpi_f08>`
156b06eb4cdSBarry Smith- Add `PETSC_INT_KIND` and `PETSC_MPIINT_KIND`
157b06eb4cdSBarry Smith- Fortran code should now use `MPIU_Comm` instead of `MPI_Comm`, and similarly for other MPI types, see section "Fortran and MPI" in the users guide
1582a8381b2SBarry Smith- Fortran interface definitions are now automatically generated for all functions that take context variable arguments, represented in the C source code with a type of `PetscCtx`, allowing the use of any Fortran derived type (or PETSc object) as the context
1592a8381b2SBarry Smith- For all PETSc functions `XXXGetYYY()` that return a context variable as an argument, represented in the C source code with an argument type of `PetscCtxRt`, a macro is generated used with `Interface_XXXGetYYY(AppCtx)` which tells the Fortran compiler that a pointer to that derived type `type(AppCtx)` is returned from the Fortran version of `XXXGetYYY()`. See src/snes/tutorials/ex5f90.F90`
160b06eb4cdSBarry Smith
161