Re: [petsc-users] Clarification of INSERT_VALUES for vec with ghost nodes

2019-09-26 Thread Aulisa, Eugenio via petsc-users
Yes it worked. I get exactly the same vector as reported in the output file I will test it now with my problem and if I see anything strange I will let you know. Thank you so much Eugenio Eugenio Aulisa Department of Mathematics and Statistics, Texas Tech University Lubbock TX, 79409-1042

Re: [petsc-users] Clarification of INSERT_VALUES for vec with ghost nodes

2019-09-26 Thread Zhang, Junchao via petsc-users
With VecGhostUpdateBegin(v, INSERT_VALUES, SCATTER_REVERSE), the owner will get updated by ghost values. So in your case 1, proc0 gets either value1 or value2 from proc1/2; in case 2; proc0 gets either value0 or value2 from proc1/2. In short, you could not achieve your goal with INSERT_VALUES.

Re: [petsc-users] Clarification of INSERT_VALUES for vec with ghost nodes

2019-09-26 Thread Aulisa, Eugenio via petsc-users
On Wed, Sep 25, 2019 at 9:11 AM Aulisa, Eugenio via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Hi, I have a vector with ghost nodes where each process may or may not change the value of a specific ghost node (using INSERT_VALUES). At the end I would like for each process, that

Re: [petsc-users] Clarification of INSERT_VALUES for vec with ghost nodes

2019-09-25 Thread Zhang, Junchao via petsc-users
On Wed, Sep 25, 2019 at 9:11 AM Aulisa, Eugenio via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Hi, I have a vector with ghost nodes where each process may or may not change the value of a specific ghost node (using INSERT_VALUES). At the end I would like for each process, that see a

[petsc-users] Clarification of INSERT_VALUES for vec with ghost nodes

2019-09-25 Thread Aulisa, Eugenio via petsc-users
Hi, I have a vector with ghost nodes where each process may or may not change the value of a specific ghost node (using INSERT_VALUES). At the end I would like for each process, that see a particular ghost node, to have the smallest of the set values. I do not think there is a