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 <[email protected]> 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
