Currently, MatGetBlockSize[s]() fails before matrix preallocation because of the check MatCheckPreallocated(mat,1). Are there any objections to remove that check?
The rationale is to follow MatGet[Local]Size(), these calls do not fail before preallocation, why should MatGetBlockSize[s]()?. In petsc4py, I do need to query the block sizes before preallocation to do sanity checks on the arrays users pass for preallocating the matrix. -- Lisandro Dalcin --------------- CIMEC (UNL/CONICET) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo 3000 Santa Fe, Argentina Tel: +54-342-4511594 (ext 1016) Tel/Fax: +54-342-4511169
