plasticity icon indicating copy to clipboard operation
plasticity copied to clipboard

Error while installing Plasticity after deal.ii

Open kaushikrajpyla opened this issue 2 years ago • 3 comments

Hello, while following the installation procedure I am facing the following issue after "make" command.

/home/kaushikkinny/p4est_files/candi/plasticity/src/ellipticBVP/applyInitialConditions.cc:10:29: error: ‘ZeroFunction’ was not declared in this scope; did you mean ‘dealii::Functions::ZeroFunction’? 10 | ZeroFunction(dim), | ^~~~~~~~~~~~ | dealii::Functions::ZeroFunction In file included from /home/kaushikkinny/p4est_files/candi/plasticity/src/ellipticBVP/../../include/dealIIheaders.h:3, from /home/kaushikkinny/p4est_files/candi/plasticity/src/ellipticBVP/../../include/ellipticBVP.h:6, from /home/kaushikkinny/p4est_files/candi/plasticity/src/ellipticBVP/applyInitialConditions.cc:2: /home/kaushikkinny/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.dir/build.make:90: CMakeFiles/prisms_cp.dir/src/ellipticBVP/applyInitialConditions.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:166: CMakeFiles/prisms_cp.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

------Adding to this in the previous step 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 value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. I got this warning does this has anything to do with that..

Please suggest a solution

kaushikrajpyla avatar Aug 26 '23 23:08 kaushikrajpyla

Hi, In candi.cfg, please change dealii verrsion to 9.3.3 DEAL_II_VERSION=v9.3.3

vanthaitran avatar Nov 22 '23 14:11 vanthaitran

use Dealii v9.3.3 as vanthaitran said,

if the boost cannot work in your situation after swithing to 9.3.3, you can also use the boost within candi.

best regards, tianwen

Ttw0626 avatar Nov 27 '23 14:11 Ttw0626