Hi all,<br>
Can someone help me to understand the "Vec"?<br>
<br>
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.<br>
<br>
Vec a = b;<br>
Vec c;<br>
<br>
initalize c;<br>
SNESComputeFunction(snes, c, b);<br>
<br>
If the answer is yes, then I guess what is modified is actually "*b" in the above code, is that right? <br>
<br>
BTW, I am wondering is there any explicit way that one can compare two
variables in the instance above in PETSc , especially when the content
of the object is rich.<br>
<br>
Thanks you very much,<br>
<br>
Yan<br>
<br>