Open gtheler opened 9 months ago
It looks like it is identifying your PETSc include directory as /home/gtheler/libs/petsc-3.20.0/double-int32-release/include
. If you look in that directory do you see a petscvec.h
file? If you do it is probably a problem with the CMake configuration.
I'm telling CMake to use this directory as one of the search directories for include files here: https://github.com/jam4375/plasmatic-cpp/blob/4cb9eb12419ed289d01b35cc64bc1ecf434535c3/libs/LinearAlgebra/CMakeLists.txt#L32
It looks like it is identifying your PETSc include directory as
/home/gtheler/libs/petsc-3.20.0/double-int32-release/include
. If you look in that directory do you see apetscvec.h
file? If you do it is probably a problem with the CMake configuration.
The PETSc includes are in $PETSC_DIR/include
, not $PETSC_DIR/$PETSC_ARCH/include
.
I'm telling CMake to use this directory as one of the search directories for include files here:
Again, I'm not sure about CMake (I don't know if I am not sure because I don't like it or I don't like it because I'm not sure), but what I do in FeenoX is
include $(PETSC_DIR)/lib/petsc/conf/variables
in Makefile.am
(https://github.com/seamplex/feenox/blob/main/src/Makefile-base.am#L5) and that takes care of everything.
Maybe this section of the PETSc manual helps? https://petsc.org/release/manual/getting_started/#sec-writing-application-codes