[petsc-users] Compilation of program including slepc

Eda Oktay eda.oktay at metu.edu.tr
Fri Feb 8 07:42:56 CST 2019


Dear Professor Roman,

Thank you for your answer.

Jose E. Roman <jroman at dsic.upv.es>, 8 Şub 2019 Cum, 16:26 tarihinde şunu
yazdı:

> You need to create a makefile for your program or add rules to an existing
> makefile. See section 1.4.2 of SLEPc's user manual.
> Jose
>
>
> > El 8 feb 2019, a las 14:24, Eda Oktay via petsc-users <
> petsc-users at mcs.anl.gov> escribió:
> >
> > Hello,
> >
> > I installed SLEPc during configuration of PETSc and now I am trying to
> write a program in PETSc including SLEPc library. For start, I just
> duplicated ex11 in EPS folder in
> petsc-3.10.3/arch-linux2-c-debug/share/slepc/examples/src/eps/examples and
> renamed as eda.c and tried to compile it by "make eda" and I got the
> following error:
> >
> >
> >
> > /home/edaoktay/petsc-3.10.3/arch-linux2-c-debug/bin/mpicc     eda.c   -o
> eda
> > In file included from
> /home/edaoktay/petsc-3.10.3/arch-linux2-c-debug/include/slepcst.h:16:0,
> >                  from
> /home/edaoktay/petsc-3.10.3/arch-linux2-c-debug/include/slepceps.h:16,
> >                  from eda.c:17:
> >
> /home/edaoktay/petsc-3.10.3/arch-linux2-c-debug/include/slepcsys.h:34:22:
> fatal error: petscmat.h: No such file or directory
> >  #include <petscmat.h>
> >                       ^
> > compilation terminated.
> > <builtin>: recipe for target 'eda' failed
> > make: *** [eda] Error 1
> >
> >
> >
> > I didn't understand the error since ex11 was compiled successfully but
> eda wasn't. Can you help me?
> >
> > Best regards,
> >
> > Eda
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190208/f6f5d276/attachment.html>


More information about the petsc-users mailing list