[petsc-users] Having some trouble creating a library
Alberto Cattaneo
bubu.cattaneo at gmail.com
Fri Sep 15 17:50:36 CDT 2023
Greetings
I hope this email reaches you well. I'm afraid I'm having a bit of trouble
using PETSC for a library I'm writing for myself, and I was hoping for some
clarification/help. I've been writing PETSC C code and compiling it using
the included makefiles in the tutorial section as that was sufficient.
However, I decided since there are a few functions I keep using it would be
beneficial to write them and make them into a little library for myself.
However, I'm having some difficulty understanding what I need to include
when trying to compile something as a library with PETSC stuff. The
makefiles are rather complicated, so I thought it may be more prudent to
just ask.
I'm trying to use #include <petscksp.h> and #include <petscmath.h> to have
access to the PETSC data types (PetscScalar, PetscInt) but I can't find
where those files are located, and I wanted to check if just using gcc with
those added was sufficient or if I needed some other compiler flags and
options.
Please forgive me if this is a silly question, but makefiles have always
been tricky for me.
Respectfully:
Alberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230915/16f6ed69/attachment.html>
More information about the petsc-users
mailing list