Re: [deal.II] Cannot find local compiled petsc library

2020-07-24 Thread yuesu jin
Dear all,
  This problem has been solved. I copied the petscversion.h file to the
arch/include folder therefore cmake found all petsc files and finished
compilation.
Best regards

On Fri, Jul 24, 2020 at 3:17 PM yuesu jin  wrote:

> Dear Daniel,
>  Thank you for the instruction! I gave the architecture directory, which
> is a sub-directory : /home/yjin6/petsc/arch-linux-c-debug. It returns
> message like this:
>
> ***
> -- Include
> /home/yjin6/Deal.II/dealii-9.2.0/cmake/configure/configure_3_petsc.cmake
> -- Found PETSC_LIBRARY
> -- Found PETSC_INCLUDE_DIR_ARCH
> -- PETSC_INCLUDE_DIR_COMMON not found! Call:
> -- FIND_PATH(PETSC_INCLUDE_DIR_COMMON petscversion.h HINTS
> /home/yjin6/petsc/arch-linux-c-debug /home/yjin6/petsc/arch-linux-c-debug/
> PATH_SUFFIXES petsc include include/petsc)
> -- Found PETSC_PETSCVARIABLES
> -- Found PETSC_LIBRARY_flapack
> -- Found PETSC_LIBRARY_fblas
> -- Found PETSC_LIBRARY_X11
> -- Performing Test PETSC_LIBRARY_m
> -- Performing Test PETSC_LIBRARY_m - Success
> -- Performing Test PETSC_LIBRARY_dl
> -- Performing Test PETSC_LIBRARY_dl - Success
> -- Found PETSC_LIBRARY_mpi_usempif08
> -- Found PETSC_LIBRARY_mpi_usempi_ignore_tkr
> -- Found PETSC_LIBRARY_mpi_mpifh
> -- Found PETSC_LIBRARY_mpi
> -- Performing Test PETSC_LIBRARY_gfortran
> -- Performing Test PETSC_LIBRARY_gfortran - Success
> -- Performing Test PETSC_LIBRARY_quadmath
> -- Performing Test PETSC_LIBRARY_quadmath - Success
> -- Performing Test PETSC_LIBRARY_pthread
> -- Performing Test PETSC_LIBRARY_pthread - Success
> --   PETSC_LIBRARIES:
> /home/yjin6/petsc/arch-linux-c-debug/lib/libpetsc.so;/home/yjin6/petsc/arch-linux-c-debug/lib/libflapack.a;/home/yjin6/petsc/arch-linux-c-debug/lib/libfblas.a;/usr/lib/x86_64-linux-gnu/libX11.so;m;dl;/usr/local/lib/libmpi_usempif08.so;/usr/local/lib/libmpi_usempi_ignore_tkr.so;/usr/local/lib/libmpi_mpifh.so;/usr/local/lib/libmpi.so;gfortran;m;gfortran;m;quadmath;pthread;quadmath;dl
> --   PETSC_INCLUDE_DIRS: *** Required variable "PETSC_INCLUDE_DIR_COMMON"
> set to NOTFOUND ***
> --   PETSC_USER_INCLUDE_DIRS: *** Required variable
> "PETSC_INCLUDE_DIR_COMMON" set to NOTFOUND ***
> -- Could NOT find PETSC
> -- DEAL_II_WITH_PETSC has unmet external dependencies.
>
>
> On Fri, Jul 24, 2020 at 1:39 PM Daniel Arndt 
> wrote:
>
>> Yuesun,
>>
>> Apparently, CMake was able to find the file petscvariables, but not the
>> include directories or the library.
>> Can you search for "libpetsc.so" yourself? Our CMake find module tries to
>> find this library in {PETSC_DIR}/lib or {PETSC_DIR}/lib64.
>> See if you can adjust PETSC_DIR accordingly.
>>
>> Best,
>> Daniel
>>
>> Am Fr., 24. Juli 2020 um 01:18 Uhr schrieb yuesu jin <
>> jinyues...@gmail.com>:
>>
>>> Dear all,
>>>   I am installing deal.ii with petsc on a cluster. After I compiled the
>>> petsc library (The arch folder name is arch-linux-c-debug) and gave a cmake
>>> argument -DPETSC_DIR=/home/yjin6/petsc
>>> cmake cannot find the petsc library .so file(It is in the folder), but
>>> it founds the version is 3.13.
>>> Could you tell me what's the possible reason why cmake cannot find the
>>> library?
>>> Best regards
>>> ***
>>> --- Include
>>> /home/yjin6/Deal.II/dealii-9.2.0/cmake/configure/configure_3_petsc.cmake
>>> -- PETSC_LIBRARY not found! Call:
>>> -- FIND_LIBRARY(PETSC_LIBRARY NAMES petsc libpetsc HINTS
>>> /home/yjin6/petsc /home/yjin6/petsc/ PATH_SUFFIXES lib lib64 lib)
>>> -- PETSC_INCLUDE_DIR_ARCH not found! Call:
>>> -- FIND_PATH(PETSC_INCLUDE_DIR_ARCH petscconf.h HINTS
>>> /home/yjin6/petsc /home/yjin6/petsc/ PATH_SUFFIXES petsc include
>>> include/petsc)
>>> -- Found PETSC_INCLUDE_DIR_COMMON
>>> -- Found PETSC_PETSCVARIABLES
>>> --   PETSC_VERSION: 3.13.3.0
>>> --   PETSC_LIBRARIES: *** Required variable "PETSC_LIBRARY" set to
>>> NOTFOUND ***
>>> --   PETSC_INCLUDE_DIRS: *** Required variable "PETSC_INCLUDE_DIR_ARCH"
>>> set to NOTFOUND ***
>>> --   PETSC_USER_INCLUDE_DIRS: *** Required variable
>>> "PETSC_INCLUDE_DIR_ARCH" set to NOTFOUND ***
>>> -- Could NOT find PETSC
>>> -- DEAL_II_WITH_PETSC has unmet external dependencies.
>>> --
>>> Yuesu Jin,
>>> Ph.D student,
>>> University of Houston,
>>> College of Natural Sciences and Mathematics,
>>> Department of Earth and Atmospheric Sciences,
>>> Houston, Texas 77204-5008
>>> 346-404-2062
>>>
>>> --
>>> The deal.II project is located at http://www.dealii.org/
>>> For mailing list/forum options, see
>>> https://groups.google.com/d/forum/dealii?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "deal.II User Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to dealii+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/dealii/CA%2B25a%3DJVi

Re: [deal.II] Cannot find local compiled petsc library

2020-07-24 Thread yuesu jin
Dear Daniel,
 Thank you for the instruction! I gave the architecture directory, which is
a sub-directory : /home/yjin6/petsc/arch-linux-c-debug. It returns message
like this:
***
-- Include
/home/yjin6/Deal.II/dealii-9.2.0/cmake/configure/configure_3_petsc.cmake
-- Found PETSC_LIBRARY
-- Found PETSC_INCLUDE_DIR_ARCH
-- PETSC_INCLUDE_DIR_COMMON not found! Call:
-- FIND_PATH(PETSC_INCLUDE_DIR_COMMON petscversion.h HINTS
/home/yjin6/petsc/arch-linux-c-debug /home/yjin6/petsc/arch-linux-c-debug/
PATH_SUFFIXES petsc include include/petsc)
-- Found PETSC_PETSCVARIABLES
-- Found PETSC_LIBRARY_flapack
-- Found PETSC_LIBRARY_fblas
-- Found PETSC_LIBRARY_X11
-- Performing Test PETSC_LIBRARY_m
-- Performing Test PETSC_LIBRARY_m - Success
-- Performing Test PETSC_LIBRARY_dl
-- Performing Test PETSC_LIBRARY_dl - Success
-- Found PETSC_LIBRARY_mpi_usempif08
-- Found PETSC_LIBRARY_mpi_usempi_ignore_tkr
-- Found PETSC_LIBRARY_mpi_mpifh
-- Found PETSC_LIBRARY_mpi
-- Performing Test PETSC_LIBRARY_gfortran
-- Performing Test PETSC_LIBRARY_gfortran - Success
-- Performing Test PETSC_LIBRARY_quadmath
-- Performing Test PETSC_LIBRARY_quadmath - Success
-- Performing Test PETSC_LIBRARY_pthread
-- Performing Test PETSC_LIBRARY_pthread - Success
--   PETSC_LIBRARIES:
/home/yjin6/petsc/arch-linux-c-debug/lib/libpetsc.so;/home/yjin6/petsc/arch-linux-c-debug/lib/libflapack.a;/home/yjin6/petsc/arch-linux-c-debug/lib/libfblas.a;/usr/lib/x86_64-linux-gnu/libX11.so;m;dl;/usr/local/lib/libmpi_usempif08.so;/usr/local/lib/libmpi_usempi_ignore_tkr.so;/usr/local/lib/libmpi_mpifh.so;/usr/local/lib/libmpi.so;gfortran;m;gfortran;m;quadmath;pthread;quadmath;dl
--   PETSC_INCLUDE_DIRS: *** Required variable "PETSC_INCLUDE_DIR_COMMON"
set to NOTFOUND ***
--   PETSC_USER_INCLUDE_DIRS: *** Required variable
"PETSC_INCLUDE_DIR_COMMON" set to NOTFOUND ***
-- Could NOT find PETSC
-- DEAL_II_WITH_PETSC has unmet external dependencies.


On Fri, Jul 24, 2020 at 1:39 PM Daniel Arndt  wrote:

> Yuesun,
>
> Apparently, CMake was able to find the file petscvariables, but not the
> include directories or the library.
> Can you search for "libpetsc.so" yourself? Our CMake find module tries to
> find this library in {PETSC_DIR}/lib or {PETSC_DIR}/lib64.
> See if you can adjust PETSC_DIR accordingly.
>
> Best,
> Daniel
>
> Am Fr., 24. Juli 2020 um 01:18 Uhr schrieb yuesu jin  >:
>
>> Dear all,
>>   I am installing deal.ii with petsc on a cluster. After I compiled the
>> petsc library (The arch folder name is arch-linux-c-debug) and gave a cmake
>> argument -DPETSC_DIR=/home/yjin6/petsc
>> cmake cannot find the petsc library .so file(It is in the folder), but it
>> founds the version is 3.13.
>> Could you tell me what's the possible reason why cmake cannot find the
>> library?
>> Best regards
>> ***
>> --- Include
>> /home/yjin6/Deal.II/dealii-9.2.0/cmake/configure/configure_3_petsc.cmake
>> -- PETSC_LIBRARY not found! Call:
>> -- FIND_LIBRARY(PETSC_LIBRARY NAMES petsc libpetsc HINTS
>> /home/yjin6/petsc /home/yjin6/petsc/ PATH_SUFFIXES lib lib64 lib)
>> -- PETSC_INCLUDE_DIR_ARCH not found! Call:
>> -- FIND_PATH(PETSC_INCLUDE_DIR_ARCH petscconf.h HINTS
>> /home/yjin6/petsc /home/yjin6/petsc/ PATH_SUFFIXES petsc include
>> include/petsc)
>> -- Found PETSC_INCLUDE_DIR_COMMON
>> -- Found PETSC_PETSCVARIABLES
>> --   PETSC_VERSION: 3.13.3.0
>> --   PETSC_LIBRARIES: *** Required variable "PETSC_LIBRARY" set to
>> NOTFOUND ***
>> --   PETSC_INCLUDE_DIRS: *** Required variable "PETSC_INCLUDE_DIR_ARCH"
>> set to NOTFOUND ***
>> --   PETSC_USER_INCLUDE_DIRS: *** Required variable
>> "PETSC_INCLUDE_DIR_ARCH" set to NOTFOUND ***
>> -- Could NOT find PETSC
>> -- DEAL_II_WITH_PETSC has unmet external dependencies.
>> --
>> Yuesu Jin,
>> Ph.D student,
>> University of Houston,
>> College of Natural Sciences and Mathematics,
>> Department of Earth and Atmospheric Sciences,
>> Houston, Texas 77204-5008
>> 346-404-2062
>>
>> --
>> The deal.II project is located at http://www.dealii.org/
>> For mailing list/forum options, see
>> https://groups.google.com/d/forum/dealii?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "deal.II User Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to dealii+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/dealii/CA%2B25a%3DJVitawqmwmYZ4-9XC8tcmc4EkgXC3_gTy6hjAcLL3Dxg%40mail.gmail.com
>> 
>> .
>>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message

Re: [deal.II] Cannot find local compiled petsc library

2020-07-24 Thread Daniel Arndt
Yuesun,

Apparently, CMake was able to find the file petscvariables, but not the
include directories or the library.
Can you search for "libpetsc.so" yourself? Our CMake find module tries to
find this library in {PETSC_DIR}/lib or {PETSC_DIR}/lib64.
See if you can adjust PETSC_DIR accordingly.

Best,
Daniel

Am Fr., 24. Juli 2020 um 01:18 Uhr schrieb yuesu jin :

> Dear all,
>   I am installing deal.ii with petsc on a cluster. After I compiled the
> petsc library (The arch folder name is arch-linux-c-debug) and gave a cmake
> argument -DPETSC_DIR=/home/yjin6/petsc
> cmake cannot find the petsc library .so file(It is in the folder), but it
> founds the version is 3.13.
> Could you tell me what's the possible reason why cmake cannot find the
> library?
> Best regards
> ***
> --- Include
> /home/yjin6/Deal.II/dealii-9.2.0/cmake/configure/configure_3_petsc.cmake
> -- PETSC_LIBRARY not found! Call:
> -- FIND_LIBRARY(PETSC_LIBRARY NAMES petsc libpetsc HINTS
> /home/yjin6/petsc /home/yjin6/petsc/ PATH_SUFFIXES lib lib64 lib)
> -- PETSC_INCLUDE_DIR_ARCH not found! Call:
> -- FIND_PATH(PETSC_INCLUDE_DIR_ARCH petscconf.h HINTS
> /home/yjin6/petsc /home/yjin6/petsc/ PATH_SUFFIXES petsc include
> include/petsc)
> -- Found PETSC_INCLUDE_DIR_COMMON
> -- Found PETSC_PETSCVARIABLES
> --   PETSC_VERSION: 3.13.3.0
> --   PETSC_LIBRARIES: *** Required variable "PETSC_LIBRARY" set to
> NOTFOUND ***
> --   PETSC_INCLUDE_DIRS: *** Required variable "PETSC_INCLUDE_DIR_ARCH"
> set to NOTFOUND ***
> --   PETSC_USER_INCLUDE_DIRS: *** Required variable
> "PETSC_INCLUDE_DIR_ARCH" set to NOTFOUND ***
> -- Could NOT find PETSC
> -- DEAL_II_WITH_PETSC has unmet external dependencies.
> --
> Yuesu Jin,
> Ph.D student,
> University of Houston,
> College of Natural Sciences and Mathematics,
> Department of Earth and Atmospheric Sciences,
> Houston, Texas 77204-5008
> 346-404-2062
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/CA%2B25a%3DJVitawqmwmYZ4-9XC8tcmc4EkgXC3_gTy6hjAcLL3Dxg%40mail.gmail.com
> 
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAOYDWb%2BPuHRk%3DWAtNcwt8PPm469pUSeLR1iiqTa3HZ2FmED_oA%40mail.gmail.com.