[petsc-users] DMMeshCreateMeshFromAdjacency

Dharmendar Reddy dharmareddy84 at gmail.com
Sat Mar 2 19:51:56 CST 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130302/e9a9978d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 569 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130302/e9a9978d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: petscDMTest_v2.F90
Type: application/octet-stream
Size: 1183 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130302/e9a9978d/attachment-0001.obj>


More information about the petsc-users mailing list