As you said, I do not need, PETSC_USE_FORTRAN_INTERFACES. The interface to dmmeshcreatefromadjacency is not defined in
finclude/ftn-custom/petscdmmesh.h90 it is only defined in finclude/ftn-auto/petscdmmesh.h90 On Sat, Mar 2, 2013 at 7:51 PM, Dharmendar Reddy <dharmareddy84 at gmail.com>wrote: > Hello, > Sorry, I was going to create a test case. Anyways here is the > error message > > petscDMTest_v2.o: In function `MAIN__': > petscDMTest_v2.F90:(.text+0x354): undefined reference to > `dmmeshcreatemeshfromad > jacency_' > make: [testDMMesh] Error 1 (ignored) > > I have attached a test case and makefile. make all should gen rate the > executable. > > Thanks > Reddy > > > On Sat, Mar 2, 2013 at 7:10 PM, Satish Balay <balay at mcs.anl.gov> wrote: > >> On Sat, 2 Mar 2013, Dharmendar Reddy wrote: >> >> > Hello, >> > I am trying to use DMMeshCreateMeshFromAdjacency in a Fortran >> code. >> > I get undefined reference error. >> >> What error? please copy/paste >> >> > I include the following file in my program >> > #include "finclude/petsc.h90" >> > >> > I see that fortran interface to DMMeshCreateMeshFromAdjacency is defined >> > only in >> > >> > finclude/ftn-auto/petscdmmesh.h90 >> > >> > I am not able to figure out if PETSC_USE_FORTRAN_INTERFACES is defined. >> I >> > did not compile the code. I am runing the code on TACC stampede. I tried >> > adding >> > >> > #define PETSC_USE_FORTRAN_INTERFACES 1 >> > in my program before the petsc inlcude line but i still get error. >> >> 1. again 'get error' doesn't tell us anything. >> >> And you shouldn't need PETSC_USE_FORTRAN_INTERFACES to use >> DMMeshCreateMeshFromAdjacency >> >> Satish >> >> > >> > >> > Thanks >> > Reddy >> > >> > >> >> > > > -- > ----------------------------------------------------- > Dharmendar Reddy Palle > Graduate Student > Microelectronics Research center, > University of Texas at Austin, > 10100 Burnet Road, Bldg. 160 > MER 2.608F, TX 78758-4445 > e-mail: dharmareddy84 at gmail.com > Phone: +1-512-350-9082 > United States of America. > Homepage: https://webspace.utexas.edu/~dpr342 > -- ----------------------------------------------------- Dharmendar Reddy Palle Graduate Student Microelectronics Research center, University of Texas at Austin, 10100 Burnet Road, Bldg. 160 MER 2.608F, TX 78758-4445 e-mail: dharmareddy84 at gmail.com Phone: +1-512-350-9082 United States of America. Homepage: https://webspace.utexas.edu/~dpr342 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130302/1bf40d4f/attachment.html>