Dear Jack, this code has not yet been fully ported to deal.II-v9.3.0. I realize that I am using the dealii:v9.2.0-focal docker container in my github actions workflow. On this container, the code compiles. If you want to compile inside the dealii:v9.3.0-focal container you need to add
SET(CMAKE_CXX_STANDARD 20) to line 13 of the main CMakeLists.txt file. This worked on my end. Best wishes, Sebastian jack urombo schrieb am Mittwoch, 6. April 2022 um 06:38:57 UTC+2: > I am running dealii in Docker container and because of issue to do with > using filesystem under c++17 i have: > > *[ 0%] Building CXX object > source/CMakeFiles/rotatingMHD.dir/problem_class.cc.o * > > > > > > > > > > */home/dealii/rotmhd/source/problem_class.cc: In constructor > ‘RMHD::Problem<dim>::Problem(const > RMHD::RunTimeParameters::ProblemBaseParameters&)’: > /home/dealii/rotmhd/source/problem_class.cc:185:13: error: > ‘std::filesystem’ has not been declared 185 | if > (!std::filesystem::exists(prm.graphical_output_directory) && | > ^~~~~~~~~~ /home/dealii/rotmhd/source/problem_class.cc:190:12: > error: ‘std::filesystem’ has not been declared 190 | > std::filesystem::create_directories(prm.graphical_output_directory); > | ^~~~~~~~~~ make[2]: *** > [source/CMakeFiles/rotatingMHD.dir/build.make:206: > source/CMakeFiles/rotatingMHD.dir/problem_class.cc.o] Error 1* > > Does the dealii Docker container support c++17? > > On Friday, 31 December 2021 at 21:44:54 UTC+2 luca....@gmail.com wrote: > >> This happened to me when I forgot to call `DEAL_II_SETUP_TARGET` from >> the CMakeLists.txt. Did you resolve this issue? >> >> On Tuesday, December 14, 2021 at 9:54:42 AM UTC+1 jack urombo wrote: >> >>> The current docker image is not finding mpi.h >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> *[ 50%] Building CXX object CMakeFiles/cdr.dir/cdr.cc.o In file included >>> from /usr/include/deal.II/base/conditional_ostream.h:19, >>> from /home/dealii/dealii/cdr/cdr.cc:1: >>> /usr/include/deal.II/base/config.h:490:12: fatal error: mpi.h: No such file >>> or directory 490 | # include <mpi.h> | ^~~~~~~ >>> compilation terminated. make[2]: *** [CMakeFiles/cdr.dir/build.make:63: >>> CMakeFiles/cdr.dir/cdr.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:76: >>> CMakeFiles/cdr.dir/all] Error 2 make: *** [Makefile:84: all] Error 2 >>> dealii@cdab72233c4c:~/dealii/cdr$ * >>> >> -- 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/a17f67f1-a3ff-4f70-8dc4-1eb3a8ef2fccn%40googlegroups.com.