diff --git a/tests/mpi/mpiio-save-load-test.cpp b/tests/mpi/mpiio-save-load-test.cpp index b669df776d6a945551942a5d64a82179f812a39d..f96843d7e26fcf7c64ed8448dd4926a70b4f5ced 100644 --- a/tests/mpi/mpiio-save-load-test.cpp +++ b/tests/mpi/mpiio-save-load-test.cpp @@ -2,6 +2,8 @@ #include <TNL/Meshes/DistributedMeshes/DistributedMesh.h> #include <TNL/Functions/MeshFunction.h> +#ifdef HAVE_MPI + #define MPIIO #include <TNL/Meshes/DistributedMeshes/DistributedGridIO.h> @@ -92,3 +94,9 @@ int main(int argc, char **argv) CommunicatorType::Finalize(); } + +#else + +main(){} +#endif + diff --git a/tests/mpi/mpiio-save-test.h b/tests/mpi/mpiio-save-test.h index 0100398fc11e8eab479cbf2f368f6b6405b77633..4b03e497683f0b8c86de1694f9af6567fc87d890 100644 --- a/tests/mpi/mpiio-save-test.h +++ b/tests/mpi/mpiio-save-test.h @@ -2,6 +2,8 @@ #include <TNL/Meshes/DistributedMeshes/DistributedMesh.h> #include <TNL/Functions/MeshFunction.h> +#ifdef HAVE_MPI + #define MPIIO #include <TNL/Meshes/DistributedMeshes/DistributedGridIO.h> @@ -81,3 +83,9 @@ int main(int argc, char **argv) CommunicatorType::Finalize(); } + +#else + +main(){} + +#endif