<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 29, 2014 at 5:28 PM, Justin Chang <span dir="ltr"><<a href="mailto:jychang48@gmail.com" target="_blank">jychang48@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>Hi all,<br><br></div>Is there a way to have DMPlexProjectFunction() work only on select DMPlex mesh points? Kind of like the way DMPlexAddBoundary() works where it projects the boundary values on certain mesh points with certain label values and ID's.<br></div></div></blockquote><div><br></div><div>I think what you want is DMPlexProjectFunctionLabelLocal()</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div></div>Also, I don't see anywhere in the online documentation regarding DMPlexAddBoundary. I think I saw an old post in the archives where it talks about what this function does, but can someone perhaps explain what each argument corresponds with? Thanks,<br><br>Justin<br></div>
</blockquote></div><br>I have not documented it yet since I am not sure its exactly what we want, but I will add it now:</div><div class="gmail_extra"><br></div><div class="gmail_extra">+ dm - The DM</div><div class="gmail_extra">. isEssential - Flag for essential boundary conditions, e.g. Dirichlet, rather than natural, e.g. Neumann</div><div class="gmail_extra">. name - The boundary condition name</div><div class="gmail_extra">. lablename - Name of the label marking points with constraints</div><div class="gmail_extra">. field - DM field constrained by the condition</div><div class="gmail_extra">. bcFunc - Function giving boundary values</div><div class="gmail_extra">. numids - The number of label ids for constrained points</div><div class="gmail_extra">. ids - An array of label ids for constrained points</div><div class="gmail_extra">- ctx - A user context which is passed to bcFunc</div><div class="gmail_extra"><br></div><div class="gmail_extra"><pre style="font-family:'Bitstream Vera Sans Mono','DejaVu Sans Mono',Monaco,Courier,monospace;font-size:12px;line-height:1.4;margin-top:0px;margin-bottom:0px;padding:0px;color:rgb(51,51,51)"><span class="">PetscErrorCode</span> <span class="" style="color:rgb(153,0,0);font-weight:bold">DMPlexAddBoundary</span><span class="">(</span><span class="">DM</span> <span class="">dm</span><span class="">,</span> <span class="">PetscBool</span> <span class="">isEssential</span><span class="">,</span> <span class="" style="font-weight:bold">const</span> <span class="" style="color:rgb(68,85,136);font-weight:bold">char</span> <span class="">name</span><span class="">[],</span> <span class="" style="font-weight:bold">const</span> <span class="" style="color:rgb(68,85,136);font-weight:bold">char</span> <span class="">labelname</span><span class="">[],</span> <span class="">PetscInt</span> <span class="">field</span><span class="">,</span> <span class="" style="color:rgb(68,85,136);font-weight:bold">void</span> <span class="">(</span><span class="" style="font-weight:bold">*</span><span class="">bcFunc</span><span class="">)(),</span> <span class="">PetscInt</span> <span class="">numids</span><span class="">,</span> <span class="" style="font-weight:bold">const</span> <span class="">PetscInt</span> <span class="" style="font-weight:bold">*</span><span class="">ids</span><span class="">,</span> <span class="" style="color:rgb(68,85,136);font-weight:bold">void</span> <span class="" style="font-weight:bold">*</span><span class="">ctx</span><span class="">)</span>
</pre><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div><br></div>-- <br>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>