trilinos / Trilinos

Primary repository for the Trilinos Project
https://trilinos.org/
Other
1.19k stars 565 forks source link

MueLu: Missing `random_shuffle` in `std` namespace #13299

Open wudan9488 opened 1 month ago

wudan9488 commented 1 month ago
/Users/danwu/workspace/Trilinos-trilinos-release-16-0-0/packages/muelu/test/unit_tests/Repartition.cpp:951:8: error: no member named 'random_shuffle' in namespace 'std'
  std::random_shuffle(eltsToShuffle.begin(), eltsToShuffle.end(), [](GlobalOrdinal i) { return std::rand() % i; });
  ~~~~~^
1 error generated.
make[2]: *** [packages/muelu/test/unit_tests/CMakeFiles/MueLu_UnitTests.dir/Repartition.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[100%] Linking CXX executable MueLu_Convergence.exe
[100%] Built target MueLu_Convergence
make[1]: *** [packages/muelu/test/unit_tests/CMakeFiles/MueLu_UnitTests.dir/all] Error 2
make: *** [all] Error 2
github-actions[bot] commented 1 month ago

Automatic mention of the @trilinos/muelu team

kliegeois commented 1 month ago

@wudan9488 can you provide more information on the system and the compiler that you used? Which version of the C++ standard do you use?