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```{rubric} Configure/Build: 13``` 14 15- Make `SYCL` a `devicePackage`, i.e., builds `--with-sycl` now have `PETSC_HAVE_DEVICE` defined 16- Add the option `--with-devicelanguage` to compile `PetscDevice` code using either a C or C++ compiler 17 18```{rubric} Sys: 19``` 20 21- Add `PetscCallHYPRE()` to check HYPRE error codes and print error messages on failure 22 23 24```{rubric} Event Logging: 25``` 26 27- Add two approaches for GPU energy monitoring: `-log_view_gpu_energy` and `-log_view_gpu_energy_meter` 28- Add API `PetscLogGpuEnergy()`, `PetscLogGpuEnergyMeter()`, `PetscLogGpuEnergyMeterBegin()` and `PetscLogGpuEnergyMeterEnd()` for GPU energy monitoring 29 30```{rubric} PetscViewer: 31``` 32 33- Change the final argument of `PetscViewerGLVisSetFields()` to `PetscCtxDestroyFn *`. This means the destroy function must dereference the argument before operating on it 34 35```{rubric} PetscDraw: 36``` 37 38```{rubric} AO: 39``` 40 41```{rubric} IS: 42``` 43 44```{rubric} VecScatter / PetscSF: 45``` 46 47```{rubric} PF: 48``` 49 50```{rubric} Vec: 51``` 52 53```{rubric} PetscSection: 54``` 55 56```{rubric} PetscPartitioner: 57``` 58 59```{rubric} Mat: 60``` 61 62- Change the `destroy()` function argument of `MatShellSetMatProductOperation()` to type `PetscCtxDestroyFn *`. This means the destroy function must dereference the argument before operating on it 63 64```{rubric} MatCoarsen: 65``` 66 67```{rubric} PC: 68``` 69 70- 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 71 72```{rubric} KSP: 73``` 74 75- Remove `KSPHPDDMPrecision` in favor of `PetscPrecision` 76 77```{rubric} SNES: 78``` 79 80- Change the `destroy()` function argument of `SNESSetConvergenceTest()` to type `PetscCtxDestroyFn *`. This means the destroy function must dereference the argument before operating on it 81 82```{rubric} SNESLineSearch: 83``` 84 85```{rubric} TS: 86``` 87 88- Change the `destroy()` function argument of `TSTrajectorySetTransform()` to type `PetscCtxDestroyFn *`. This means the destroy function must dereference the argument before operating on it 89 90```{rubric} TAO: 91``` 92 93```{rubric} PetscRegressor: 94``` 95 96```{rubric} DM/DA: 97``` 98 99- Change the final argument of `DMShellSetDestroyContext()` to `PetscCtxDestroyFn *`. This means the destroy function must dereference the argument before operating on it 100 101```{rubric} DMSwarm: 102``` 103 104```{rubric} DMPlex: 105``` 106 107- Add `DMPlexVecGetClosureAtDepth()` 108 109```{rubric} FE/FV: 110``` 111 112```{rubric} DMNetwork: 113``` 114 115```{rubric} DMStag: 116``` 117 118```{rubric} DT: 119``` 120 121```{rubric} Fortran: 122``` 123