ziran2020 icon indicating copy to clipboard operation
ziran2020 copied to clipboard

Error when compiling project - size must be POT static_assert

Open goofoo opened this issue 4 years ago • 0 comments

When compiling on ubuntu 18.04 - error: ziran2020/Lib/Ziran/../MPM/MpmGrid.h:44:1: error: static assertion failed: GridState<double, 2> size must be POT static_assert(is_power_of_two(sizeof(GridState<double, 2>)), "GridState<double, 2> size must be POT");

Projects/coupling/CMakeFiles/coupling.dir/build.make:81: recipe for target 'Projects/coupling/CMakeFiles/coupling.dir/main.cpp.o' failed make[2]: *** [Projects/coupling/CMakeFiles/coupling.dir/main.cpp.o] Error 1 Projects/coupling/CMakeFiles/coupling.dir/build.make:107: recipe for target 'Projects/coupling/CMakeFiles/coupling.dir//splitting/SplittingSimulationSolidSystemFast.cpp.o' failed make[2]: *** [Projects/coupling/CMakeFiles/coupling.dir//splitting/SplittingSimulationSolidSystemFast.cpp.o] Error 1 CMakeFiles/Makefile2:504: recipe for target 'Projects/coupling/CMakeFiles/coupling.dir/all' failed make[1]: *** [Projects/coupling/CMakeFiles/coupling.dir/all] Error 2 [ 94%] Linking CXX executable ../../../Projects/anisofracture/anisofracture [ 94%] Built target anisofracture Makefile:159: recipe for target 'all' failed make: *** [all] Error 2

goofoo avatar Dec 20 '20 19:12 goofoo