[petsc-users] DMMeshCreateMeshFromAdjacency

Satish Balay balay at mcs.anl.gov
Sat Mar 2 19:10:39 CST 2013


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
> 
> 



More information about the petsc-users mailing list