diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 8b14a9dc..7e703c9d 100755 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -70,6 +70,7 @@ ADD_LBPM_TEST_PARALLEL( TestCommD3Q19 8 ) ADD_LBPM_TEST_1_2_4( testCommunication ) ADD_LBPM_TEST( TestWriter ) ADD_LBPM_TEST( TestDatabase ) +ADD_LBPM_TEST( TestSetDevice ) ADD_LBPM_PROVISIONAL_TEST( TestMicroCTReader ) IF ( USE_NETCDF ) ADD_LBPM_TEST_PARALLEL( TestNetcdf 8 ) diff --git a/tests/TestSetDevice.cpp b/tests/TestSetDevice.cpp new file mode 100644 index 00000000..79627b88 --- /dev/null +++ b/tests/TestSetDevice.cpp @@ -0,0 +1,37 @@ +#include +#include "common/MPI_Helpers.h" +#include "common/Utilities.h" +#include "common/ScaLBL.h" + +int main (int argc, char **argv) +{ + MPI_Init(&argc,&argv); + int rank = MPI_WORLD_RANK(); + int nprocs = MPI_WORLD_SIZE(); + + for (int i=0; i