[petsc-users] Scale the diagonal entries of a Mat

Hui Zhang mike.hui.zhang at hotmail.com
Sat Feb 23 06:29:00 CST 2013


I want to implement diagonal penalty method for enforcing the Dirichlet boundary conditions.  That is, the diagonal entries corresponding to Dirichlet boundary are going to be scaled by a large number.

What is the easiest way to do this?  Thanks!


More information about the petsc-users mailing list