<div dir="ltr">This sort of feedback is great in terms of learning what can move out of "tutorials" and into "tests". <div><a href="https://gitlab.com/petsc/petsc/-/merge_requests/2629">https://gitlab.com/petsc/petsc/-/merge_requests/2629</a><br><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 24. März 2020 um 16:22 Uhr schrieb Jed Brown <<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> writes:<br>
<br>
> Good question. It does look like there is Q1:<br>
><br>
> src/dm/impls/da/da.c:- ctype - DMDA_Q1 and DMDA_Q0 are currently the only<br>
> supported forms<br>
><br>
> And in looking at a cell centered<br>
> example src/snes/examples/tutorials/ex20.c, it looks like only DMDA_Q1<br>
> works. I get an error when I set it to DMDA_Q0 (DMDA_Q1 is the default).<br>
> This is puzzling, Q0 is natural in cell centered.<br>
<br>
The comments in those examples are kinda wrong -- they never told the DM<br>
it was cell-centered so it uses a multigrid that isn't compatible with<br>
the boundary conditions. The interpolation is Q1 on the dual grid, not<br>
conservative Q1 on cells.<br>
<br>
> I am not familiar with DMDA and I don't understand why, from ex20, that you<br>
> have an odd number of points on a cell centered grid and an even number for<br>
> vertex centered (eg, ex14). I would think that it should be the opposite.<br>
<br>
The example is bad.<br>
</blockquote></div>