[petsc-dev] MatCreateMPIAIJ(), MatCreateMPIBAIJ(), MatCreateMPISBAIJ() wrongly named

Barry Smith bsmith at mcs.anl.gov
Thu Mar 1 11:03:27 CST 2012


    MatCreateMPIAIJ(), MatCreateMPIBAIJ(), MatCreateMPISBAIJ()   actually create Seq version of the matrices when run on one process.

    Meanwhile MatMPIXXXSetPreallocation() always do preallocation for MPI case.

    Shouldn't MatCreateMPIXXX() be MatCreateXXX()? 

    Also should we add MatXXXSetPreallocation() that calls both MatSeqXXXSetPreallocation() and MatMPIXXXSetPreallocation()?

    Barry




More information about the petsc-dev mailing list