petsc-3.7.1 2016-05-15
Report Typos and Errors

MatCompositeMerge

Given a composite matrix, replaces it with a "regular" matrix by summing all the matrices inside the composite matrix.

Synopsis

#include "petscmat.h" 
PetscErrorCode  MatCompositeMerge(Mat mat)
Collective on MPI_Comm Many br

Input Parameters

mat -the composite matrix Many br

Options Database

-mat_composite_merge (you must call MatAssemblyBegin()/MatAssemblyEnd() to have this checked) - Many br Many br

Notes

The MatType of the resulting matrix will be the same as the MatType of the FIRST Many brmatrix in the composite matrix. Many br

See Also

MatDestroy(), MatMult(), MatCompositeAddMat(), MatCreateComposite(), MATCOMPOSITE

Level:advanced
Location:
src/mat/impls/composite/mcomposite.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/mat/examples/tutorials/ex9.c.html