include file fortran

Satish Balay balay at
Fri May 15 17:29:59 CDT 2009

On Fri, 15 May 2009, Satish Balay wrote:

> Verify if PETSc examples work [both C and fortran] - and if so - use
> PETSc makefiles..
> Attaching one in the simplest form [after removing the unnecessary
> stuff from - src/ksp/ksp/examples/tutorials/makefile]

You are using PETSc from fortran - so use the attached makefile
and replace ex1f[.F] with the name of your source file[s].

-------------- next part --------------

CFLAGS	         =
FFLAGS	         =
CPPFLAGS         =
FPPFLAGS         =
LOCDIR           =

include ${PETSC_DIR}/conf/base

ex1f: ex1f.o  chkopts
	-${FLINKER} -o ex1f ex1f.o  ${PETSC_KSP_LIB}
	${RM} ex1f.o

More information about the petsc-users mailing list