changing MatSetUp()

Barry Smith bsmith at mcs.anl.gov
Tue Oct 23 15:35:27 CDT 2007


  Lisandro,

   Yes make that change

   Thanks

   barry


On Tue, 23 Oct 2007, Lisandro Dalcin wrote:

> 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.
> 
> 
> 




More information about the petsc-dev mailing list