calling PETSc from Fortan main routine

Satish Balay balay at mcs.anl.gov
Mon Aug 13 16:55:02 CDT 2007


On Mon, 13 Aug 2007, Waad Subber wrote:

> And what about the makefile how can I include my subroutines inside the petsc makefile
> 
> Thanks

I'm ataching a minimal petsc makefile.

You can add your stuff as 

OBJS = foo.o bar.o

[and then replace ex1.o with $(OBJS)]

Satish
-------------- next part --------------
CFLAGS	         =
FFLAGS	         =
CPPFLAGS         =
FPPFLAGS         =
CLEANFILES       =

include ${PETSC_DIR}/conf/base

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


More information about the petsc-users mailing list