[petsc-dev] Copy scatter and change block size

Smith, Barry F. bsmith at mcs.anl.gov
Sat Nov 25 09:43:41 CST 2017


  Pierre,

    There is not. The block size is baked directly into the scatter data structure so not trivial to change in a copy.

  Barry


> On Nov 25, 2017, at 7:41 AM, Pierre Jolivet <pierre.jolivet at enseeiht.fr> wrote:
> 
> Hello,
> Given a VecScatter inctx that operates on vectors x and y, I’d like to create a VecScatter inctx_bs with the same pattern, but that operators on vectors x_bs and y_bs with different block sizes than the original x and y (and that are thus of sizes n * bs).
> Is there an easy way to do this (I’m a VecScatter noob, sorry in advance if this is trivial)?
> 
> Thank you,
> Pierre



More information about the petsc-dev mailing list