[petsc-dev] Negative blocksize

Václav Hapla vaclav.hapla at erdw.ethz.ch
Wed Sep 4 14:32:57 CDT 2019


Exactly.

Thanks,
Vaclav

4. září 2019 20:15:42 SELČ, "Smith, Barry F." <bsmith at mcs.anl.gov> napsal:
>
>It seems reasonable at SetUp time to make it 1. If we need to have the
>information that user never set it (I don't know why we would want
>this) then that can go into a new flag.
>
>   Barry
>
>
>> On Sep 4, 2019, at 11:15 AM, Matthew Knepley via petsc-dev
><petsc-dev at mcs.anl.gov> wrote:
>> 
>> On Wed, Sep 4, 2019 at 12:14 PM Václav Hapla via petsc-dev
><petsc-dev at mcs.anl.gov> wrote:
>> Is there any reason why PetscLayoutSetUp couldn't guarantee blocksize
>>= 1? I don't like the negative value being there forever requiring all
>that PetscAbs business. It seems to me it just complicates things
>unnecessarily.
>> 
>> We are using -1 to indicate "never set", but I don't see any reason
>to keep it after SetUp().
>> 
>>    Matt
>>  
>> Thanks,
>> Vaclav
>> 
>> 
>> -- 
>> What most experimenters take for granted before they begin their
>experiments is infinitely more interesting than any results to which
>their experiments lead.
>> -- Norbert Wiener
>> 
>> https://www.cse.buffalo.edu/~knepley/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20190904/56d77c19/attachment.html>


More information about the petsc-dev mailing list