[petsc-users] DMMeshCreateMeshFromAdjacency
Satish Balay
balay at mcs.anl.gov
Sat Mar 2 21:55:50 CST 2013
Fortran compiler doesn't care about presence or absence of interface
defintions. If they exist - then it does extra prototype checks. If
they don't exist - it assumes f77 and chugs along].
Did you build petsc with sieve [and cxx]? send make.log for this
petsc build. Also what do you get for:
nm -Ao libpetsc.a |grep -i DMMeshCreateMeshFromAdjacency
You can followup this issue [with logs] on petsc-maint.
Satish
On Sat, 2 Mar 2013, Dharmendar Reddy wrote:
> 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
> >
>
>
>
>
More information about the petsc-users
mailing list