Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MueLu: Missing random_shuffle in std namespace #13299

Open
wudan9488 opened this issue Jul 30, 2024 · 2 comments
Open

MueLu: Missing random_shuffle in std namespace #13299

wudan9488 opened this issue Jul 30, 2024 · 2 comments
Labels
pkg: MueLu type: bug The primary issue is a bug in Trilinos code or tests

Comments

@wudan9488
Copy link

wudan9488 commented Jul 30, 2024

/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
@wudan9488 wudan9488 added the type: bug The primary issue is a bug in Trilinos code or tests label Jul 30, 2024
@kliegeois kliegeois changed the title PackageName: General Summary of the Bug MueLu: Missing random_shuffle in std namespace Jul 30, 2024
Copy link

Automatic mention of the @trilinos/muelu team

@kliegeois
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: MueLu type: bug The primary issue is a bug in Trilinos code or tests
Projects
Status: Backlog
Development

No branches or pull requests

2 participants