<div dir="ltr"><div dir="ltr">On Fri, Jan 6, 2023 at 10:03 AM Nicholas Arnold-Medabalimi <<a href="mailto:narnoldm@umich.edu">narnoldm@umich.edu</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">Hi Petsc Users<br></div></blockquote><div><br></div><div>I apologize. I found this email today and it looks like no one answered.</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">I am trying to use the sequence of <br><div style="color:rgb(255,255,255);background-color:rgb(0,36,81);font-family:Consolas,"Courier New",monospace;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(235,187,255)">call</span> DMLabelPropagateBegin(synchLabel,sf,ierr)</div><div><span style="color:rgb(235,187,255)">call</span> DMLabelPropagatePush(synchLabel,sf,PETSC_NULL_OPTIONS,PETSC_NULL_INTEGER,ierr)</div><div><span style="color:rgb(235,187,255)">call</span> DMLabelPropagateEnd(synchLabel,sf, ierr)</div></div>in fortran.<br><br>I apologize if I messed something up, it appears as if the DMLabelPropagatePush command doesn't have an appropriate Fortran interface as I get an undefined reference when it is called.<br></div></blockquote><div><br></div><div>Yes, it takes a function pointer, and using function pointers with Fortran is not easy, although it can be done. It might be better to create a C function with some default marking and then wrap that. What do you want to do?</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">I would appreciate any assistance. <br><br>As a side note in practice, what is the proper Fortran NULL pointer to use for void arguments? I used an integer one temporarily to get to the undefined reference error but I assume it doesn't matter? <br><br><br>Sincerely<br>Nicholas<br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small"><font color="#000000">Nicholas Arnold-Medabalimi<br><br></font><span style="font-family:sans-serif;font-size:14px">Ph.D. Candidate</span><font color="#000000"><br>Computational Aeroscience Lab<br>University of Michigan</font></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><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>