<div dir="ltr"><div><div><div>I did realize that after some digging. I fixed that part. Thanks for the updates to dmsneslocal. <br></div><br></div>If i am on the branch next, do i get access to all the changes you push to knepley/plex ? <br>
<br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 15, 2013 at 7:20 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@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"><div class="im">On Sat, Apr 13, 2013 at 9:51 PM, Dharmendar Reddy <span dir="ltr"><<a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello,<br></div><div class="im">         Got it. I understand the reason for errors. I was using XXXSetF90 functions in my code so i was using allocatable arrays. I thought all set/getvlaues had corresponding F90 functions. I was trying to define and use things consistently in the code. <br>


I can fix the compile errors using pointers now.<br><br></div></div><div class="im">Now, can i request for Fortran interface for DMPlexMatSetClosure ?<br></div></div></div></blockquote><div><br></div><div>Pushed.</div><div class="im">
<div><br></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><div>will you be adding Fortran interfaces to  the functions listed below ? <br>
<br>FEMModules.F90:(.text+0xbfe0): undefined reference to `dmplexgetdefaultsection_'<br></div></div></blockquote><div><br></div></div><div>This is just DMGetDefaultSection().</div><div><br></div><div>   Matt</div><div>
<div class="h5">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>FEMModules.F90:(.text+0xc048): undefined reference to `petscsectiongetconstraintdof_<br>


<br>Solver.F90:(.text+0xaa1): undefined reference to `dmsnessetjacobianlocal_'<br>Solver.F90:(.text+0xabc): undefined reference to `dmsnessetfunctionlocal_'<br></div><div><div><div>  <br></div><div>Thanks<br>Reddy<br>


</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 13, 2013 at 9:32 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@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"><div>On Sat, Apr 13, 2013 at 9:18 PM, Dharmendar Reddy <span dir="ltr"><<a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a>></span> wrote:<br>


</div><div class="gmail_extra"><div class="gmail_quote"><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><div><div>I am getting bunch of erros in my code related to DMPlex <br>



<br></div>If i use DMPlexVecSetClosure I get the following error. <br><br>A pointer dummy argument may only be argument associated with a pointer.   [FELM]<br>
    call DMPlexVecSetClosure(dm,PETSC_NULL_OBJECT,F,cellId,Felm,ADD_VALUES,ierr)<br></div><div><br></div><div>Felm is defined as  : PetscScalar,allocatable :: Felm(:)<br></div></div></div></div></blockquote><div><br></div>



</div><div>Did you look at the sample code?</div><div><br></div><div>  <a href="http://www.mcs.anl.gov/petsc/petsc-dev/src/dm/impls/plex/examples/tests/ex2f90.F.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-dev/src/dm/impls/plex/examples/tests/ex2f90.F.html</a></div>



<div><br></div><div>You define pointers. You can see what function I have defined by looking at the header</div><div><br></div><div>  <a href="https://bitbucket.org/petsc/petsc/src/62a20339e027b37fab44424f1466054586f1dc85/include/finclude/ftn-custom/petscdmplex.h90?at=master" target="_blank">https://bitbucket.org/petsc/petsc/src/62a20339e027b37fab44424f1466054586f1dc85/include/finclude/ftn-custom/petscdmplex.h90?at=master</a></div>



<div><br></div><div>and its clear from the file that DMPlexMatSetClosure() has not been defined in Fortran.</div><div><br></div><div>   Matt</div><div><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><div></div>I do a similar call to DMPlexMatSetClosure, i get no error.<br>
<br></div>Now if i use DMPlexVecSetClosureF90, code compiles, but i see undefined reference error during link stage:<br></div><br>FEMModules.F90:(.text+0xba77): undefined reference to `dmplexvecsetclosuref90_'<br><br>




FEMModules.F90:(.text+0xbea9): undefined reference to `dmplexmatsetclosure_'<br><br>FEMModules.F90:(.text+0xbfe0): undefined reference to `dmplexgetdefaultsection_'<br>FEMModules.F90:(.text+0xc048): undefined reference to `petscsectiongetconstraintdof_<br>




<br>Solver.F90:(.text+0xaa1): undefined reference to `dmsnessetjacobianlocal_'<br>Solver.F90:(.text+0xabc): undefined reference to `dmsnessetfunctionlocal_'<br><div><div><div><div><div><br><br></div></div></div></div>




</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 13, 2013 at 8:22 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@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>On Sat, Apr 13, 2013 at 8:20 PM, Dharmendar Reddy <span dir="ltr"><<a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a>></span> wrote:<br>




</div><div class="gmail_extra"><div class="gmail_quote"><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><div>Hello,<br></div>        I am getting an undefined reference error ::<br>



FEMModules.F90:(.text+0xba77): undefined reference to `dmplexvecsetclosuref90_'<br>

</div>FEMModules.F90:(.text+0xbea9): undefined reference to `dmplexmatsetclosuref90_'<br>
<br></div>I can see that DMPlexVecSetClosure is defined in <br> <br clear="all"><div><div><div><div><div>/finclude/ftn-custom/petscdmplex.h90:159: <br><br></div><div>but the name is DMPlexVecSetClosure instead of DMPlexVecSetClosureF90.<br>






<br></div><div>And there is no DMPlexMatSetClosureF90<br><br><br></div><div>What should i do ?<br></div></div></div></div></div></div></blockquote><div><br></div></div><div>I was not consistent here with the naming. Since an F77 version was not possible, I did not</div>





<div>add F90. That is probably wrong, however I would like to scrap the F77 version of Plex since</div><div>everyone uses F90 now and the extra letters are annoying. Go ahead and use the function.</div><div>
<br></div><div>    Matt</div><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><div><div><div>Thanks<span><font color="#888888"><br>

Reddy<br></font></span></div><span><font color="#888888"><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>






</div></font></span></div></div></div></div></div>
</blockquote></div></div><span><font color="#888888"><br><br clear="all"><span><font color="#888888"><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
</font></span></font></span></div></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <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>
</blockquote></div></div></div><div><div><br><br clear="all"><span><font color="#888888"><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
</font></span></div></div></div></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <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>
</blockquote></div></div></div><div><div class="h5"><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></div></div>
</blockquote></div><br><br clear="all"><br>-- <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: +1-512-350-9082<br>United States of America.<br>Homepage: <a href="https://webspace.utexas.edu/~dpr342" target="_blank">https://webspace.utexas.edu/~dpr342</a><br>

</div>