<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><br></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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">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 class="im">
<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>        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 class="im"><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><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 class="HOEnZb"><font color="#888888"><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
</font></span></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>