As you said, I do not need, PETSC_USE_FORTRAN_INTERFACES. The interface to dmmeshcreatefromadjacency is not defined in <br><br>finclude/ftn-custom/petscdmmesh.h90<br><br>it is only defined in <br><br>finclude/ftn-auto/petscdmmesh.h90<br>
<br><br><div class="gmail_quote">On Sat, Mar 2, 2013 at 7:51 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">
Hello,<br> Sorry, I was going to create a test case. Anyways here is the error message<br><br>petscDMTest_v2.o: In function `MAIN__':<br>petscDMTest_v2.F90:(.text+0x354): undefined reference to `dmmeshcreatemeshfromad<br>
jacency_'<br>make: [testDMMesh] Error 1 (ignored)<br><br>I have attached a test case and makefile. make all should gen rate the executable.<br><br>Thanks<span class="HOEnZb"><font color="#888888"><br>Reddy</font></span><div class="HOEnZb">
<div class="h5"><br><br><div class="gmail_quote">On Sat, Mar 2, 2013 at 7:10 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Sat, 2 Mar 2013, Dharmendar Reddy wrote:<br>
<br>
> Hello,<br>
> I am trying to use DMMeshCreateMeshFromAdjacency in a Fortran code.<br>
> I get undefined reference error.<br>
<br>
</div>What error? please copy/paste<br>
<div><br>
> I include the following file in my program<br>
> #include "finclude/petsc.h90"<br>
><br>
> I see that fortran interface to DMMeshCreateMeshFromAdjacency is defined<br>
> only in<br>
><br>
> finclude/ftn-auto/petscdmmesh.h90<br>
><br>
> I am not able to figure out if PETSC_USE_FORTRAN_INTERFACES is defined. I<br>
> did not compile the code. I am runing the code on TACC stampede. I tried<br>
> adding<br>
><br>
> #define PETSC_USE_FORTRAN_INTERFACES 1<br>
> in my program before the petsc inlcude line but i still get error.<br>
<br>
</div>1. again 'get error' doesn't tell us anything.<br>
<br>
And you shouldn't need PETSC_USE_FORTRAN_INTERFACES to use DMMeshCreateMeshFromAdjacency<br>
<br>
Satish<br>
<br>
><br>
><br>
> Thanks<br>
> Reddy<br>
><br>
><br>
<br>
</blockquote></div><br><br clear="all"><br></div></div><div class="HOEnZb"><div class="h5">-- <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></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>