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

Eda Oktay eda.oktay at metu.edu.tr
Wed Mar 20 05:15:23 CDT 2019


Before using mpicc, I just tried to compile with make DENEME_ENYENI-FINAL.c
but it says there is nothing to do.

On Wed, Mar 20, 2019, 12:39 PM Jose E. Roman <jroman at dsic.upv.es> wrote:

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


More information about the petsc-users mailing list