[petsc-users] Type of Vec in rhs function of TS
Barry Smith
bsmith at mcs.anl.gov
Sun Jan 22 20:21:41 CST 2017
You would never pass in x a "ghosted" i.e. local vector. You would always pass in a "global" vector for x and the vector passed to the rhs function would be global. There is no way to call solvers with "ghosted" i.e. local vectors. It is the responsibility of the rhs function to communicate into a ghosted vector in order to do the function evaluation.
Barry
> On Jan 22, 2017, at 8:15 PM, Praveen C <cpraveen at gmail.com> wrote:
>
> Dear all
>
> If we do
>
> TSSetSolution(ts, x);
>
> TSSolve(ts, x);
>
> Is the type of Vec passed to rhs function same as "x" ?
>
> If "x" is ghosted vector, is the vector passed to rhs function also having ghost values ?
>
> Thanks
> praveen
More information about the petsc-users
mailing list