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)
{
MatSetFromOptions(A);
MatSetUpPreallocation(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