[petsc-users] A Question about Vec

2010-02-04 Thread Ryan Yan
Hi Satish, Thank you very much for the crystal clear explanation. Yan On Thu, Feb 4, 2010 at 12:24 AM, Satish Balay balay at mcs.anl.gov wrote: On Wed, 3 Feb 2010, Ryan Yan wrote: Hi all, Can someone help me to understand the Vec? My question is: in the following piece of code, will

[petsc-users] A Question about Vec

2010-02-03 Thread Ryan Yan
Hi all, Can someone help me to understand the Vec? My question is: in the following piece of code, will a be changed, if b is changed by the subroutine SNESComputeFunction? I did see that both a and b are both pointers to an object. Vec a = b; Vec c; initalize c; SNESComputeFunction(snes, c,

[petsc-users] A Question about Vec

2010-02-03 Thread Satish Balay
On Wed, 3 Feb 2010, Ryan Yan wrote: Hi all, Can someone help me to understand the Vec? My question is: in the following piece of code, will a be changed, if b is changed by the subroutine SNESComputeFunction? I did see that both a and b are both pointers to an object. Yes - all petsc