[petsc-dev] Custom interpolation matrices for DA

Barry Smith bsmith at mcs.anl.gov
Tue Mar 24 13:14:12 CDT 2015


> On Mar 24, 2015, at 12:42 PM, Matthew Knepley <knepley at gmail.com> wrote:
> 
> Do we have something like MatSetValuesStencil() that can be used to create
> and interpolation matrix? If not, this sounds like something that would be useful.

 MatSetValuesStencil currently uses the same "starts" information for both rows and columns; this would need to be changed to use two sets and then, perhaps with a few tweaks it could be used for creating the interpolation matrix.

  Barry

> 
> Second, are these any examples of custom interpolation?
> 
>   Thanks,
> 
>      Matt
> 
> -- 
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
> -- Norbert Wiener




More information about the petsc-dev mailing list