[petsc-users] petscmat.h: No such file or directory

Jose E. Roman jroman at dsic.upv.es
Wed Mar 20 04:39:48 CDT 2019


You must compile your program with 'make DENEME_TEMIZ_ENYENI_FINAL' or just 'make', not with 'mpicc DENEME_TEMIZ_ENYENI_FINAL.c'

> El 20 mar 2019, a las 8:25, Eda Oktay via petsc-users <petsc-users at mcs.anl.gov> escribió:
> 
> Hello,
> 
> I am trying to compile a parallel program DENEME_TEMIZ_ENYENI_FINAL.c in PETSc. I wrote the following makefile but it says that there is nothing to do with the program:
> 
> export CLINKER = gcc
> 
> DENEME_TEMIZ_ENYENI_FINAL: DENEME_TEMIZ_ENYENI_FINAL.o chkopts
> 	-${CLINKER} -o DENEME_TEMIZ_ENYENI_FINAL DENEME_TEMIZ_ENYENI_FINAL.o ${SLEPC_SYS_LIB}
> 	${RM} DENEME_TEMIZ_ENYENI_FINAL.o
> include ${SLEPC_DIR}/lib/slepc/conf/slepc_common
> 
> Then I tried to compile it via mpicc DENEME_TEMIZ_ENYENI_FINAL.c 
> but I got the error "petscmat.h: No such file or directory".
> 
> I wrote the following lines before compiling the program:
> export PETSC_DIR=/home/slurm_local/e200781/petsc-3.10.3
> export SLEPC_DIR=/home/slurm_local/e200781/petsc-3.10.3/arch-linux2-c-debug
> export PETSC_ARCH=arch-linux2-c-debug
> 
> Why I cannot compile the program?
> 
> Thanks,
> 
> Eda
> 



More information about the petsc-users mailing list