changing MatSetUp()

Lisandro Dalcin dalcinl at
Tue Oct 23 15:07:29 CDT 2007

After greping, it seems that MatSetUp() is not used in all 'petsc-dev'
repo. If there is no objections (Barry?), I will change it (by
reverting inner calls order) to do the following:

PetscErrorCode MatSetUp(Mat A)

As I mailed some time ago, there is no point of calling
MatSetUpPreallocation() if the matrix type was not set.

Lisandro Dalcín
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594

More information about the petsc-dev mailing list