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