[petsc-users] DMPlex Interpolation
Mike Michell
mi.mike1021 at gmail.com
Mon Aug 29 14:16:34 CDT 2022
Hi,
@Matt-This is exactly what I wanted to do. Thank you for the help. Mapping
for both directions (Q0->Q1 and Q1->Q0) works well.
@Lawrence-Thank you for the comment. So far, Matt's comment fits my
purpose.
Thanks,
> >
> > I am not sure Injection is going to "do the right thing" when you move
> between spaces. At least my memory of the implementation
> > was that it just did local interpolation, which is not right when
> injecting P0 into P1.
>
> Ah, that could be the case. For discontinuous things I think what you
> want is the L2 projection of the fine function into the coarse space
> (which on nested meshes you can compute locally), this is what I
> implemented in Firedrake IIRC.
>
> I agree that point interpolating won't work, and I guess in that case
> some kind of scaling of a dual thing is approximating the L2
> projection.
>
> Lawrence
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220829/c1bda675/attachment.html>
More information about the petsc-users
mailing list