[petsc-dev] missing fortran stuff?
Jed Brown
jedbrown at mcs.anl.gov
Fri Jan 25 10:43:14 CST 2013
Are you missing an include?
$ git grep DMDA_BOUNDARY_ include/finclude
include/finclude/petscdmda.h: PetscEnum DMDA_BOUNDARY_NONE
include/finclude/petscdmda.h: PetscEnum DMDA_BOUNDARY_GHOSTED
include/finclude/petscdmda.h: PetscEnum DMDA_BOUNDARY_MIRROR
include/finclude/petscdmda.h: PetscEnum DMDA_BOUNDARY_PERIODIC
include/finclude/petscdmda.h: parameter (DMDA_BOUNDARY_NONE = 0)
include/finclude/petscdmda.h: parameter (DMDA_BOUNDARY_GHOSTED = 1)
include/finclude/petscdmda.h: parameter (DMDA_BOUNDARY_MIRROR = 2)
include/finclude/petscdmda.h: parameter (DMDA_BOUNDARY_PERIODIC = 3)
On Fri, Jan 25, 2013 at 10:41 AM, Mark F. Adams <mark.adams at columbia.edu>wrote:
> I get some errors when using 'implicit none':
>
> & DMDA_BOUNDARY_NONE, DMDA_BOUNDARY_NONE, &
> 1
> Error: Symbol 'dmda_boundary_none' at (1) has no IMPLICIT type
> petsc_kkt_solver.F90:144.27:
>
> & DMDA_STENCIL_BOX,nfour,nfour,PETSC_DECIDE,PETSC_DECIDE,
> &
> 1
> Error: Symbol 'dmda_stencil_box' at (1) has no IMPLICIT type
> petsc_kkt_solver.F90:207.61:
>
> call MatSetOption(Bmat,MAT_IGNORE_OFF_PROCESSOR_ENTRIES,PETSC_TRUE);
> 1
> Error: Symbol 'mat_ignore_off_processor_entries' at (1) has no IMPLICIT
> type
> petsc_kkt_solver.F90:177.38:
>
> call DMCreateMatrix(daphi,MPIAIJ,Amat,ierr)
> 1
> Error: Symbol 'mpiaij' at (1) has no IMPLICIT type
>
> And, when I link I get some missing stuff:
>
> Undefined symbols for architecture x86_64:
> "_dmsetoptionsprefix_", referenced from:
> _MAIN__ in petsc_kkt_solver.o
> "_matnestgetsubmat_", referenced from:
> _formjacobian_ in petsc_kkt_solver.o
> "_vecnestgetsubvec_", referenced from:
> _formjacobian_ in petsc_kkt_solver.o
> _formfunction_ in petsc_kkt_solver.o
>
> Are these missing fortran wrappers?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130125/681bd9c2/attachment.html>
More information about the petsc-dev
mailing list