Possible incompatibility issue with installation of PRISMS-Plasticity with deal.II-v9.5.1 during make

129 views
Skip to first unread message

KAUSHIK DAS

unread,
Aug 2, 2023, 7:27:43 AM8/2/23
to Prisms-CPFE-users
Dear Sir/Madam,

I have installed deal.II-v9.5.1 with hdf5, petsc and p4est packages using candi, following instructions available at 

deal.II has been installed successfully on Ubuntu 20.04.6 LTS. However, while installing PRISMS-Plasticity I am getting an error during make and am unable to proceed further.
I am using cmake version 3.27.0.

It appears that the PRISMS-Plasticity code is incompatible with the latest version of deal.II i.e. deal.II-v9.5.1.

Kindly check, and let me know if it is so.

kaushik@kaushik-HP-Pavilion-All-in-One-24-qa0xx:~/Software/candi$ cd plasticity/
kaushik@kaushik-HP-Pavilion-All-in-One-24-qa0xx:~/Software/candi/plasticity$ cmake .
CMake Deprecation Warning at CMakeLists.txt:5 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Using the deal.II-9.5.1 installation found at /home/kaushik/dealii-candi/deal.II-v9.5.1
-- Include macro /home/kaushik/dealii-candi/deal.II-v9.5.1/share/deal.II/macros/macro_deal_ii_add_test.cmake
-- Include macro /home/kaushik/dealii-candi/deal.II-v9.5.1/share/deal.II/macros/macro_deal_ii_initialize_cached_variables.cmake
-- Include macro /home/kaushik/dealii-candi/deal.II-v9.5.1/share/deal.II/macros/macro_deal_ii_invoke_autopilot.cmake
-- Include macro /home/kaushik/dealii-candi/deal.II-v9.5.1/share/deal.II/macros/macro_deal_ii_pickup_tests.cmake
-- Include macro /home/kaushik/dealii-candi/deal.II-v9.5.1/share/deal.II/macros/macro_deal_ii_query_git_information.cmake
-- Include macro /home/kaushik/dealii-candi/deal.II-v9.5.1/share/deal.II/macros/macro_deal_ii_setup_target.cmake
-- Include macro /home/kaushik/dealii-candi/deal.II-v9.5.1/share/deal.II/macros/macro_shell_escape_option_groups.cmake
-- Include macro /home/kaushik/dealii-candi/deal.II-v9.5.1/share/deal.II/macros/macro_target_compile_flags.cmake
-- Include macro /home/kaushik/dealii-candi/deal.II-v9.5.1/share/deal.II/macros/macro_target_link_flags.cmake
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/mpicxx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kaushik/Software/candi/plasticity
kaushik@kaushik-HP-Pavilion-All-in-One-24-qa0xx:~/Software/candi/plasticity$ make
Consolidate compiler generated dependencies of target prisms_cp_debug
[  1%] Building CXX object CMakeFiles/prisms_cp_debug.dir/src/ellipticBVP/applyInitialConditions.cc.o
/home/kaushik/Software/candi/plasticity/src/ellipticBVP/applyInitialConditions.cc: In member function ‘void ellipticBVP<dim>::applyInitialConditions()’:
/home/kaushik/Software/candi/plasticity/src/ellipticBVP/applyInitialConditions.cc:10:8: error: ‘ZeroFunction’ was not declared in this scope; did you mean ‘dealii::Functions::ZeroFunction’?
   10 |        ZeroFunction<dim>(dim),
      |        ^~~~~~~~~~~~
      |        dealii::Functions::ZeroFunction
In file included from /home/kaushik/Software/candi/plasticity/src/ellipticBVP/../../include/dealIIheaders.h:3,
                 from /home/kaushik/Software/candi/plasticity/src/ellipticBVP/../../include/ellipticBVP.h:6,
                 from /home/kaushik/Software/candi/plasticity/src/ellipticBVP/applyInitialConditions.cc:2:
/home/kaushik/dealii-candi/deal.II-v9.5.1/include/deal.II/base/function.h:510:9: note: ‘dealii::Functions::ZeroFunction’ declared here
  510 |   class ZeroFunction : public ConstantFunction<dim, RangeNumberType>
      |         ^~~~~~~~~~~~
make[2]: *** [CMakeFiles/prisms_cp_debug.dir/build.make:90: CMakeFiles/prisms_cp_debug.dir/src/ellipticBVP/applyInitialConditions.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:88: CMakeFiles/prisms_cp_debug.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Regards,
Kaushik Das

Mohammadreza Yaghoobi

unread,
Aug 9, 2023, 1:34:34 AM8/9/23
to KAUSHIK DAS, Prisms-CPFE-users
Hi,

I recommend using the older version of deal.ii (9.3) as we did not yet update the code for the latest deal.ii version.

Best
Reza

--
You received this message because you are subscribed to the Google Groups "Prisms-CPFE-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prisms-cpfe-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prisms-cpfe-users/630ae2a3-6a95-4118-b776-de53f2a077c5n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages