[petsc-users] Assembling a symmetric block into a matrix

Eduardo erocha.ssa at gmail.com
Wed Jan 9 11:18:25 CST 2013


Hi all,

Is there any way to assemble a block that is symmetric to a matrix
(also symmetric)? I mean, as far as I know, the MatSetValues assumes a
full block, i.e the parameter v in:

  PetscErrorCode  MatSetValues(Mat mat,PetscInt m,const PetscInt
idxm[],PetscInt n,const PetscInt idxn[],const PetscScalar
v[],InsertMode addv)

is a full block (local matrix) that is assembled into the global matrix mat.

Thanks in advance,
Eduardo


More information about the petsc-users mailing list