Re: [petsc-users] Example 1 of Vector section

2018-09-24 Thread Fazlul Huq
Got it. Thanks a lot. Best, Huq On Mon, Sep 24, 2018 at 8:26 PM Matthew Knepley wrote: > On Mon, Sep 24, 2018 at 9:02 PM Fazlul Huq wrote: > >> Hello All, >> >> I am looking through the example problems given in PETSc. In the very >> first example, ex1 of vector section, I don't understand the

Re: [petsc-users] Example 1 of Vector section

2018-09-24 Thread Matthew Knepley
On Mon, Sep 24, 2018 at 9:02 PM Fazlul Huq wrote: > Hello All, > > I am looking through the example problems given in PETSc. In the very > first example, ex1 of vector section, I don't understand the following > part, especially the term "PETSC_SMALL". What does this mean? > This checks that we

[petsc-users] Example 1 of Vector section

2018-09-24 Thread Fazlul Huq
Hello All, I am looking through the example problems given in PETSc. In the very first example, ex1 of vector section, I don't understand the following part, especially the term "PETSC_SMALL". What does this mean? Here, in the second line we already assign zero to v. What is the meaning of "if" co