<div dir="ltr"><div dir="ltr">On Fri, Jul 15, 2022 at 7:08 AM Prateek Gupta <<a href="mailto:prateekgupta1709@gmail.com">prateekgupta1709@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div>Is it possible to generate data using PetscSection with varying degrees of freedom? I am building a sample example on a mixed grid (with both hexahedra and tetrahedra) and thinking if it is possible to generate the face data using PetscSection (or something else) on the resulting. The quad faces have p*p data points and tri faces have p*(p-1)/2 data points.</div></div></blockquote><div><br></div><div>Yes, you can set the size to whatever you want using</div><div><br></div><div>  PetscSectionSetDof()</div><div>  PetscSectionSetFieldDof()</div><div><br></div><div>The DMPlexCreateSection() routine is overly simplistic here since I assume all k-cells have the same layout.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><div>Thank you.<br>Sincerely,<br>Prateek Gupta, PhD</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>