<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 14, 2013 at 2:55 PM, Dharmendar Reddy <span dir="ltr"><<a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div> Looks like there is a change in the DMPlexCreateSubMesh interface. </div><div><br></div>
<div>My code was running fine with petsc 3.4.3 but when i switched petsc to next. I am getting runtime error due to DMPlexCreateSubMesh..</div>
<div><br></div><div>The interface changed from: </div><div><div>(<a href="http://www.mcs.anl.gov/petsc/petsccurrent/src/dm/impls/plex/plexsubmesh.c.html#DMPlexCreateSubmesh" target="_blank">http://www.mcs.anl.gov/petsc/petsccurrent/src/dm/impls/plex/plexsubmesh.c.html#DMPlexCreateSubmesh</a>)</div>
<div><pre width="80"><a name="1425865f6777037d_line2087">2087: </a><strong><font color="#4169E1"><a name="1425865f6777037d_DMPlexCreateSubmesh"></a><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode" target="_blank">PetscErrorCode</a> <a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMPlexCreateSubmesh.html#DMPlexCreateSubmesh" target="_blank">DMPlexCreateSubmesh</a>(DM dm, const char vertexLabel[], <a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt" target="_blank">PetscInt</a> value, DM *subdm)</font></strong></pre>
</div><div><br></div><div>to </div><div>(<a href="https://bitbucket.org/petsc/petsc/src/1d94116c89ca7d6e640482ce2684b8b52bac7dff/src/dm/impls/plex/plexsubmesh.c?at=next#cl-2468" target="_blank">https://bitbucket.org/petsc/petsc/src/1d94116c89ca7d6e640482ce2684b8b52bac7dff/src/dm/impls/plex/plexsubmesh.c?at=next#cl-2468</a>)</div>
<div><br></div><div><pre>PetscErrorCode DMPlexCreateSubmesh(DM dm, DMLabel vertexLabel, PetscInt value, DM *subdm)</pre><pre><br></pre><pre><font face="arial, helvetica, sans-serif">How should i change my code to make use of the new interface ? I have had issue using DMLabel related function from my fortran code. </font></pre>
</div></div></div></blockquote><div><br></div><div>Okay, we should just fix using DMLabel in Fortran. I will write the binding for DMPlexGetLabel(), and I will</div><div>define the necessary DMLabel stuff for Fortran. I will mail when its pushed.</div>
<div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>
Reddy</div>-- <br>-----------------------------------------------------<br>Dharmendar Reddy Palle<br>Graduate Student<br>Microelectronics Research center,<br>University of Texas at Austin,<br>
10100 Burnet Road, Bldg. 160<br>MER 2.608F, TX 78758-4445<br>e-mail: <a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a><br>Phone: <a href="tel:%2B1-512-350-9082" value="+15123509082" target="_blank">+1-512-350-9082</a><br>
United States of America.<br>Homepage: <a href="https://webspace.utexas.edu/~dpr342" target="_blank">https://webspace.utexas.edu/~dpr342</a><br>
</font></span></div></div>
</blockquote></div><br><br clear="all"><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>