[petsc-dev] MatGetBlockSize[s]() before prellocation

Barry Smith bsmith at mcs.anl.gov
Sun Nov 3 15:27:34 CST 2013


  Approved by me

On Nov 3, 2013, at 3:19 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote:

> On 1 November 2013 19:23, Barry Smith <bsmith at mcs.anl.gov> wrote:
>> 
>> On Nov 1, 2013, at 10:56 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>> 
>>> Lisandro Dalcin <dalcinl at gmail.com> writes:
>>> 
>>>> Currently, MatGetBlockSize[s]() fails before matrix preallocation
>>>> because of the check MatCheckPreallocated(mat,1). Are there any
>>>> objections to remove that check?
>>> 
>>> This is fine with me.
>> 
>>   Presumably if it has not been set yet it would return -1 and that would be documented?
>> 
> 
> https://bitbucket.org/petsc/petsc/pull-request/117/allow-calling-matgetblocksize-s-before/diff
> 
> Barry, are you happy with the notes in the doc section?
> 
> -- 
> 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




More information about the petsc-dev mailing list