include file fortran

Satish Balay balay at mcs.anl.gov
Fri May 15 17:26:17 CDT 2009


On Sat, 16 May 2009, Tahar Amari wrote:

> My configure was  (as you can see for  petsc-3.0.0-p5 )
> 
> configure -with-cc=gcc --download-mpich=1 --download-parmetis=1
> --with-#shared=0 --download-f-blas-lapack --with-clanguage=cxx --with-cxx=g++
> --with-fc=ifort --with-dynamic=0
> 
> sudo cp -R petsc-3.0.0-p5 /usr/local/
> set version=-3.0.0-p5
> sudo ln -s petsc${version} petsc
> 
> 
> You are right , once I did g++ , found after that those were symbols of the
> intel compiler.
> 
> 
> 
> So I am a little embarrassed because if I use as linker  ifort , It complains
> about g++ symbols
> and if I use g++ it complains about ifort symbols ?
> 
> Do you think there is a solution to this please ?

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]

Satish
-------------- next part --------------

CFLAGS	         =
FFLAGS	         =
CPPFLAGS         =
FPPFLAGS         =
CLEANFILES       =
include ${PETSC_DIR}/conf/base

ex1: ex1.o  chkopts
	-${CLINKER} -o ex1 ex1.o  ${PETSC_KSP_LIB}
	${RM} ex1.o


More information about the petsc-users mailing list