Regarding deal ii installation with PETSC

56 views
Skip to first unread message

anupama kanavu

unread,
Dec 27, 2022, 3:30:49 AM12/27/22
to deal.II User Group
Hello everyone,
I am very new to deal ii. I tried installing deal ii with PETSC and got the following error message.


--------------------------------------------------------------------------------------------------------------------------------------
-- Include /home/anupama/Documents/deal2_build_dir/dealii-9.4.1/cmake/configure/configure_30_petsc.cmake
-- Found PETSC_LIBRARY
-- Found PETSC_INCLUDE_DIR_ARCH
-- Found PETSC_INCLUDE_DIR_COMMON
-- PETSC_PETSCVARIABLES not found! The call was:
--     FIND_FILE(PETSC_PETSCVARIABLES NAMES petscvariables HINTS / PATH_SUFFIXES conf lib/petsc/conf)
--   PETSC_VERSION: 3.15.5.0
--   PETSC_INCLUDE_DIRS: /usr/include/petsc
--   PETSC_USER_INCLUDE_DIRS: /usr/include/petsc
--   PETSC_LIBRARIES: /usr/lib/x86_64-linux-gnu/libpetsc.so
-- Found PETSC
-- Could not find a sufficient PETSc installation: PETSc has to be configured with the same MPI configuration as deal.II.
-- DEAL_II_WITH_PETSC has unmet external dependencies.
CMake Error at cmake/configure/configure_30_petsc.cmake:141 (MESSAGE):
 

  Could not find the petsc library!

  Could not find a sufficient PETSc installation:

  PETSc has to be configured with the same MPI configuration as deal.II, but
  found:

    DEAL_II_WITH_MPI = OFF
    PETSC_WITH_MPI   = (NOT FALSE)

 

  Please ensure that the petsc library version 3.3.0 or newer is installed on
  your computer and is configured with the same mpi options as deal.II

  If the library is not at a default location, either provide some hints

  for the autodetection:

  PETSc installed with --prefix=<...> to a destination:

      $ PETSC_DIR="..." cmake <...>
      $ cmake -DPETSC_DIR="..." <...>

  PETSc compiled in source tree:

      $ PETSC_DIR="..."  PETSC_ARCH="..." cmake <...>
      $ cmake -DPETSC_DIR="..." -DPETSC_ARCH="..." <...>

  or set the relevant variables by hand in ccmake.

 

Call Stack (most recent call first):
  build/CMakeFiles/CMakeTmp/evaluate_expression.tmp:1 (FEATURE_PETSC_ERROR_MESSAGE)
  cmake/macros/macro_evaluate_expression.cmake:30 (INCLUDE)
  cmake/macros/macro_configure_feature.cmake:267 (EVALUATE_EXPRESSION)
  cmake/configure/configure_30_petsc.cmake:160 (CONFIGURE_FEATURE)
  cmake/macros/macro_verbose_include.cmake:19 (INCLUDE)
  CMakeLists.txt:130 (VERBOSE_INCLUDE)


-- Configuring incomplete, errors occurred!

-----------------------------------------------------------------------------------------------------------------------

Can anyone please help me install it?

Thanking you
Anupama

Bruno Turcksin

unread,
Dec 27, 2022, 8:24:18 AM12/27/22
to deal.II User Group
Anupama,

The error message tells you that PETSc was compiled with MPI support but deal.II was configured without MPI support. Either recompile PETSc without MPI or reconfigure deal.II with MPI support using -DDEAL_II_WITH_MPI=ON

Best,

Bruno

anupama kanavu

unread,
Jan 2, 2023, 2:52:52 AM1/2/23
to deal.II User Group

Thank you very much for the clarification. I have reinstalled both PETSC and deal ii . Deal ii is working fine now. 

Anupama


Reply all
Reply to author
Forward
0 new messages