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

Eda Oktay eda.oktay at metu.edu.tr
Wed Mar 20 02:25:52 CDT 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190320/60c8a853/attachment.html>


More information about the petsc-users mailing list