Hi, If I use MatCopy to get a new matrix, can i use MatSetValues to change some entries of that matrix and do the assemble after that? Or if I just need to change some diagonal entries, can I use MatDiagonalSet to change the entries without assembling? Thanks. Bests, Hui