1# Changes: 2.2.0 2 3```{rubric} General: 4``` 5 6- Changed petscengine.h to petscmatlab.h 7- Changed PetscOptionsEList() to return the index of the string 8 selected by the user (error if user enters impossible string) 9 10```{rubric} Vec: 11``` 12 13- VecLoad() has a new argument giving the Vector type to be created 14 15```{rubric} Mat: 16``` 17 18- If you use MAT_SYMMETRIC as option for MatSetOption() you will 19 likely need to also use the option MAT_SYMMETRY_ETERNAL otherwise 20 at the next MatAssembly the matrix will likly lose the symmetry 21 flag. 22- Added MatISGetLocalMat() to allow preallocating the local matrix. 23 24```{rubric} PC: 25``` 26 27```{rubric} KSP: 28``` 29 30- changed unmodifiedGramSchmidt name to classicalGramSchmidt 31 everywhere. 32- Eliminated KSPGMRESIROrthogonalize() now have 33 KSPGMRESSetCGSRefinement() to decide when to use iterative 34 refinement 35- The SLES object has been removed from PETSc. All of this options 36 are available via the KSP object. For example, -sles_view_binary 37 ->ksp_view_binary, SLESCreate()->KSPCreate() The calling sequences 38 SLESSetUp(sles,b,x) should be replaced with KSPSetRhs(ksp,b) 39 KSPSetSolution(ksp,x) KSPSetUp(ksp). Similarly SLESSolve(sles,b,x) 40 should be replaced with KSPSetRhs(ksp,b) KSPSetSolution(ksp,x) 41 KSPSolve(ksp) 42- removed its argument from KSPSolve. Obtain the number of 43 iterations via KSPGetIterationNumber() 44 45```{rubric} SNES: 46``` 47 48- SNESSolve() no longer returns number of iterations, use 49 SNESGetIterationNumber() to get the number of iterations required 50 51```{rubric} TS: 52``` 53 54```{rubric} DMMG: 55``` 56 57- Added support for -dmmg_galerkin and DMMGSetUseGalerkin() for 58 nonlinear problems (not sequential only) 59 60```{rubric} SYS: 61``` 62 63- added new PETSC_VIEWER_MATLAB for saving variables to MATLAB .mat 64 files 65- eliminated PetscViewerXXXXType and PetscViewerXXXSetType() 66 replaced with PetscViewerFileType and PetscViewerSetFileType() 67- PETSC_BINARY_RDONLY,PETSC_BINARY_WRONLY,PETSC_BINARY_CREATE 68 becomes PETSC_FILE_RDONLY,PETSC_FILE_WRONLY,PETSC_FILE_CREATE 69 70```{rubric} Fortran: 71``` 72 73```{rubric} ExternalPackages: 74``` 75